AWS SDK for C++  1.9.129
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
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeInstancesHealthRequest.h:207
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::WithEnvironmentId
DescribeInstancesHealthRequest & WithEnvironmentId(Aws::String &&value)
Definition: DescribeInstancesHealthRequest.h:119
Aws::Http::URI
Definition: URI.h:32
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_ELASTICBEANSTALK_API
#define AWS_ELASTICBEANSTALK_API
Definition: ElasticBeanstalk_EXPORTS.h:28
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::SetEnvironmentId
void SetEnvironmentId(const Aws::String &value)
Definition: DescribeInstancesHealthRequest.h:99
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::WithEnvironmentName
DescribeInstancesHealthRequest & WithEnvironmentName(const Aws::String &value)
Definition: DescribeInstancesHealthRequest.h:73
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::SetEnvironmentId
void SetEnvironmentId(Aws::String &&value)
Definition: DescribeInstancesHealthRequest.h:104
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::GetAttributeNames
const Aws::Vector< InstancesHealthAttribute > & GetAttributeNames() const
Definition: DescribeInstancesHealthRequest.h:132
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::AddAttributeNames
DescribeInstancesHealthRequest & AddAttributeNames(const InstancesHealthAttribute &value)
Definition: DescribeInstancesHealthRequest.h:174
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::SetAttributeNames
void SetAttributeNames(const Aws::Vector< InstancesHealthAttribute > &value)
Definition: DescribeInstancesHealthRequest.h:146
ElasticBeanstalkRequest.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::WithEnvironmentId
DescribeInstancesHealthRequest & WithEnvironmentId(const Aws::String &value)
Definition: DescribeInstancesHealthRequest.h:114
Aws::ElasticBeanstalk::Model::InstancesHealthAttribute
InstancesHealthAttribute
Definition: InstancesHealthAttribute.h:17
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::WithEnvironmentId
DescribeInstancesHealthRequest & WithEnvironmentId(const char *value)
Definition: DescribeInstancesHealthRequest.h:124
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::SetEnvironmentName
void SetEnvironmentName(Aws::String &&value)
Definition: DescribeInstancesHealthRequest.h:63
AWSVector.h
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::GetEnvironmentName
const Aws::String & GetEnvironmentName() const
Definition: DescribeInstancesHealthRequest.h:48
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeInstancesHealthRequest.h:36
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::WithEnvironmentName
DescribeInstancesHealthRequest & WithEnvironmentName(Aws::String &&value)
Definition: DescribeInstancesHealthRequest.h:78
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::WithAttributeNames
DescribeInstancesHealthRequest & WithAttributeNames(const Aws::Vector< InstancesHealthAttribute > &value)
Definition: DescribeInstancesHealthRequest.h:160
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::WithNextToken
DescribeInstancesHealthRequest & WithNextToken(const char *value)
Definition: DescribeInstancesHealthRequest.h:222
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::GetEnvironmentId
const Aws::String & GetEnvironmentId() const
Definition: DescribeInstancesHealthRequest.h:89
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::SetEnvironmentName
void SetEnvironmentName(const Aws::String &value)
Definition: DescribeInstancesHealthRequest.h:58
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeInstancesHealthRequest.h:197
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::WithAttributeNames
DescribeInstancesHealthRequest & WithAttributeNames(Aws::Vector< InstancesHealthAttribute > &&value)
Definition: DescribeInstancesHealthRequest.h:167
AWSString.h
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::WithNextToken
DescribeInstancesHealthRequest & WithNextToken(Aws::String &&value)
Definition: DescribeInstancesHealthRequest.h:217
ElasticBeanstalk_EXPORTS.h
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::AddAttributeNames
DescribeInstancesHealthRequest & AddAttributeNames(InstancesHealthAttribute &&value)
Definition: DescribeInstancesHealthRequest.h:181
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::SetAttributeNames
void SetAttributeNames(Aws::Vector< InstancesHealthAttribute > &&value)
Definition: DescribeInstancesHealthRequest.h:153
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::DescribeInstancesHealthRequest
DescribeInstancesHealthRequest()
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeInstancesHealthRequest.h:192
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeInstancesHealthRequest.h:202
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::EnvironmentIdHasBeenSet
bool EnvironmentIdHasBeenSet() const
Definition: DescribeInstancesHealthRequest.h:94
Aws::ElasticBeanstalk::ElasticBeanstalkRequest
Definition: ElasticBeanstalkRequest.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::EnvironmentNameHasBeenSet
bool EnvironmentNameHasBeenSet() const
Definition: DescribeInstancesHealthRequest.h:53
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::SetEnvironmentName
void SetEnvironmentName(const char *value)
Definition: DescribeInstancesHealthRequest.h:68
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest
Definition: DescribeInstancesHealthRequest.h:28
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::SetEnvironmentId
void SetEnvironmentId(const char *value)
Definition: DescribeInstancesHealthRequest.h:109
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::WithNextToken
DescribeInstancesHealthRequest & WithNextToken(const Aws::String &value)
Definition: DescribeInstancesHealthRequest.h:212
InstancesHealthAttribute.h
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::WithEnvironmentName
DescribeInstancesHealthRequest & WithEnvironmentName(const char *value)
Definition: DescribeInstancesHealthRequest.h:83
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::AttributeNamesHasBeenSet
bool AttributeNamesHasBeenSet() const
Definition: DescribeInstancesHealthRequest.h:139
Aws::ElasticBeanstalk::Model::DescribeInstancesHealthRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeInstancesHealthRequest.h:187