AWS SDK for C++  1.8.95
AWS SDK for C++
DescribeApplicationsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ElasticBeanstalk
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "DescribeApplications"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
47  inline const Aws::Vector<Aws::String>& GetApplicationNames() const{ return m_applicationNames; }
48 
53  inline bool ApplicationNamesHasBeenSet() const { return m_applicationNamesHasBeenSet; }
54 
59  inline void SetApplicationNames(const Aws::Vector<Aws::String>& value) { m_applicationNamesHasBeenSet = true; m_applicationNames = value; }
60 
65  inline void SetApplicationNames(Aws::Vector<Aws::String>&& value) { m_applicationNamesHasBeenSet = true; m_applicationNames = std::move(value); }
66 
71  inline DescribeApplicationsRequest& WithApplicationNames(const Aws::Vector<Aws::String>& value) { SetApplicationNames(value); return *this;}
72 
77  inline DescribeApplicationsRequest& WithApplicationNames(Aws::Vector<Aws::String>&& value) { SetApplicationNames(std::move(value)); return *this;}
78 
83  inline DescribeApplicationsRequest& AddApplicationNames(const Aws::String& value) { m_applicationNamesHasBeenSet = true; m_applicationNames.push_back(value); return *this; }
84 
89  inline DescribeApplicationsRequest& AddApplicationNames(Aws::String&& value) { m_applicationNamesHasBeenSet = true; m_applicationNames.push_back(std::move(value)); return *this; }
90 
95  inline DescribeApplicationsRequest& AddApplicationNames(const char* value) { m_applicationNamesHasBeenSet = true; m_applicationNames.push_back(value); return *this; }
96 
97  private:
98 
99  Aws::Vector<Aws::String> m_applicationNames;
100  bool m_applicationNamesHasBeenSet;
101  };
102 
103 } // namespace Model
104 } // namespace ElasticBeanstalk
105 } // namespace Aws
DescribeApplicationsRequest & AddApplicationNames(Aws::String &&value)
#define AWS_ELASTICBEANSTALK_API
DescribeApplicationsRequest & WithApplicationNames(Aws::Vector< Aws::String > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
void SetApplicationNames(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetApplicationNames() const
DescribeApplicationsRequest & AddApplicationNames(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeApplicationsRequest & WithApplicationNames(const Aws::Vector< Aws::String > &value)
DescribeApplicationsRequest & AddApplicationNames(const Aws::String &value)