AWS SDK for C++  1.8.95
AWS SDK for C++
DescribeInstancesHealthRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ElasticBeanstalk
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "DescribeInstancesHealth"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
48  inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
49 
53  inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
54 
58  inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
59 
63  inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
64 
68  inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
69 
73  inline DescribeInstancesHealthRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
74 
78  inline DescribeInstancesHealthRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
79 
83  inline DescribeInstancesHealthRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
84 
85 
89  inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
90 
94  inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
95 
99  inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
100 
104  inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
105 
109  inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
110 
114  inline DescribeInstancesHealthRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
115 
119  inline DescribeInstancesHealthRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
120 
124  inline DescribeInstancesHealthRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
125 
126 
132  inline const Aws::Vector<InstancesHealthAttribute>& GetAttributeNames() const{ return m_attributeNames; }
133 
139  inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; }
140 
146  inline void SetAttributeNames(const Aws::Vector<InstancesHealthAttribute>& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = value; }
147 
153  inline void SetAttributeNames(Aws::Vector<InstancesHealthAttribute>&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = std::move(value); }
154 
160  inline DescribeInstancesHealthRequest& WithAttributeNames(const Aws::Vector<InstancesHealthAttribute>& value) { SetAttributeNames(value); return *this;}
161 
167  inline DescribeInstancesHealthRequest& WithAttributeNames(Aws::Vector<InstancesHealthAttribute>&& value) { SetAttributeNames(std::move(value)); return *this;}
168 
174  inline DescribeInstancesHealthRequest& AddAttributeNames(const InstancesHealthAttribute& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; }
175 
181  inline DescribeInstancesHealthRequest& AddAttributeNames(InstancesHealthAttribute&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(std::move(value)); return *this; }
182 
183 
187  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
188 
192  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
193 
197  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
198 
202  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
203 
207  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
208 
212  inline DescribeInstancesHealthRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
213 
217  inline DescribeInstancesHealthRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
218 
222  inline DescribeInstancesHealthRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
223 
224  private:
225 
226  Aws::String m_environmentName;
227  bool m_environmentNameHasBeenSet;
228 
229  Aws::String m_environmentId;
230  bool m_environmentIdHasBeenSet;
231 
232  Aws::Vector<InstancesHealthAttribute> m_attributeNames;
233  bool m_attributeNamesHasBeenSet;
234 
235  Aws::String m_nextToken;
236  bool m_nextTokenHasBeenSet;
237  };
238 
239 } // namespace Model
240 } // namespace ElasticBeanstalk
241 } // namespace Aws
void SetAttributeNames(const Aws::Vector< InstancesHealthAttribute > &value)
DescribeInstancesHealthRequest & WithEnvironmentName(const char *value)
DescribeInstancesHealthRequest & WithEnvironmentId(const Aws::String &value)
DescribeInstancesHealthRequest & WithEnvironmentName(Aws::String &&value)
DescribeInstancesHealthRequest & WithEnvironmentId(Aws::String &&value)
#define AWS_ELASTICBEANSTALK_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DescribeInstancesHealthRequest & WithEnvironmentId(const char *value)
DescribeInstancesHealthRequest & WithNextToken(Aws::String &&value)
void SetAttributeNames(Aws::Vector< InstancesHealthAttribute > &&value)
DescribeInstancesHealthRequest & WithEnvironmentName(const Aws::String &value)
DescribeInstancesHealthRequest & AddAttributeNames(const InstancesHealthAttribute &value)
DescribeInstancesHealthRequest & WithAttributeNames(Aws::Vector< InstancesHealthAttribute > &&value)
DescribeInstancesHealthRequest & WithNextToken(const char *value)
DescribeInstancesHealthRequest & WithNextToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeInstancesHealthRequest & WithAttributeNames(const Aws::Vector< InstancesHealthAttribute > &value)
const Aws::Vector< InstancesHealthAttribute > & GetAttributeNames() const
DescribeInstancesHealthRequest & AddAttributeNames(InstancesHealthAttribute &&value)