AWS SDK for C++  1.9.107
AWS SDK for C++
DescribeElasticIpsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace OpsWorks
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DescribeElasticIps"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
43  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
44 
50  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
51 
57  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
58 
64  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
65 
71  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
72 
78  inline DescribeElasticIpsRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
79 
85  inline DescribeElasticIpsRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
86 
92  inline DescribeElasticIpsRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
93 
94 
100  inline const Aws::String& GetStackId() const{ return m_stackId; }
101 
107  inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
108 
114  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
115 
121  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
122 
128  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
129 
135  inline DescribeElasticIpsRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
136 
142  inline DescribeElasticIpsRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
143 
149  inline DescribeElasticIpsRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
150 
151 
158  inline const Aws::Vector<Aws::String>& GetIps() const{ return m_ips; }
159 
166  inline bool IpsHasBeenSet() const { return m_ipsHasBeenSet; }
167 
174  inline void SetIps(const Aws::Vector<Aws::String>& value) { m_ipsHasBeenSet = true; m_ips = value; }
175 
182  inline void SetIps(Aws::Vector<Aws::String>&& value) { m_ipsHasBeenSet = true; m_ips = std::move(value); }
183 
190  inline DescribeElasticIpsRequest& WithIps(const Aws::Vector<Aws::String>& value) { SetIps(value); return *this;}
191 
198  inline DescribeElasticIpsRequest& WithIps(Aws::Vector<Aws::String>&& value) { SetIps(std::move(value)); return *this;}
199 
206  inline DescribeElasticIpsRequest& AddIps(const Aws::String& value) { m_ipsHasBeenSet = true; m_ips.push_back(value); return *this; }
207 
214  inline DescribeElasticIpsRequest& AddIps(Aws::String&& value) { m_ipsHasBeenSet = true; m_ips.push_back(std::move(value)); return *this; }
215 
222  inline DescribeElasticIpsRequest& AddIps(const char* value) { m_ipsHasBeenSet = true; m_ips.push_back(value); return *this; }
223 
224  private:
225 
226  Aws::String m_instanceId;
227  bool m_instanceIdHasBeenSet;
228 
229  Aws::String m_stackId;
230  bool m_stackIdHasBeenSet;
231 
233  bool m_ipsHasBeenSet;
234  };
235 
236 } // namespace Model
237 } // namespace OpsWorks
238 } // namespace Aws
Aws::OpsWorks::Model::DescribeElasticIpsRequest::WithStackId
DescribeElasticIpsRequest & WithStackId(const Aws::String &value)
Definition: DescribeElasticIpsRequest.h:135
Aws::OpsWorks::Model::DescribeElasticIpsRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: DescribeElasticIpsRequest.h:64
Aws::OpsWorks::Model::DescribeElasticIpsRequest::GetIps
const Aws::Vector< Aws::String > & GetIps() const
Definition: DescribeElasticIpsRequest.h:158
Aws::OpsWorks::Model::DescribeElasticIpsRequest::SetStackId
void SetStackId(Aws::String &&value)
Definition: DescribeElasticIpsRequest.h:121
Aws::OpsWorks::Model::DescribeElasticIpsRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: DescribeElasticIpsRequest.h:50
Aws::OpsWorks::Model::DescribeElasticIpsRequest::WithIps
DescribeElasticIpsRequest & WithIps(Aws::Vector< Aws::String > &&value)
Definition: DescribeElasticIpsRequest.h:198
Aws::OpsWorks::Model::DescribeElasticIpsRequest::DescribeElasticIpsRequest
DescribeElasticIpsRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::OpsWorks::Model::DescribeElasticIpsRequest::WithInstanceId
DescribeElasticIpsRequest & WithInstanceId(const char *value)
Definition: DescribeElasticIpsRequest.h:92
Aws::OpsWorks::Model::DescribeElasticIpsRequest::SetStackId
void SetStackId(const char *value)
Definition: DescribeElasticIpsRequest.h:128
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::DescribeElasticIpsRequest::WithInstanceId
DescribeElasticIpsRequest & WithInstanceId(const Aws::String &value)
Definition: DescribeElasticIpsRequest.h:78
Aws::OpsWorks::Model::DescribeElasticIpsRequest::SetIps
void SetIps(Aws::Vector< Aws::String > &&value)
Definition: DescribeElasticIpsRequest.h:182
Aws::OpsWorks::Model::DescribeElasticIpsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::OpsWorks::Model::DescribeElasticIpsRequest
Definition: DescribeElasticIpsRequest.h:23
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::OpsWorksRequest
Definition: OpsWorksRequest.h:17
OpsWorksRequest.h
Aws::OpsWorks::Model::DescribeElasticIpsRequest::AddIps
DescribeElasticIpsRequest & AddIps(const char *value)
Definition: DescribeElasticIpsRequest.h:222
Aws::OpsWorks::Model::DescribeElasticIpsRequest::GetStackId
const Aws::String & GetStackId() const
Definition: DescribeElasticIpsRequest.h:100
Aws::OpsWorks::Model::DescribeElasticIpsRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: DescribeElasticIpsRequest.h:57
Aws::OpsWorks::Model::DescribeElasticIpsRequest::AddIps
DescribeElasticIpsRequest & AddIps(const Aws::String &value)
Definition: DescribeElasticIpsRequest.h:206
Aws::OpsWorks::Model::DescribeElasticIpsRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: DescribeElasticIpsRequest.h:71
Aws::OpsWorks::Model::DescribeElasticIpsRequest::WithStackId
DescribeElasticIpsRequest & WithStackId(Aws::String &&value)
Definition: DescribeElasticIpsRequest.h:142
AWSString.h
Aws::OpsWorks::Model::DescribeElasticIpsRequest::SetIps
void SetIps(const Aws::Vector< Aws::String > &value)
Definition: DescribeElasticIpsRequest.h:174
Aws::OpsWorks::Model::DescribeElasticIpsRequest::WithIps
DescribeElasticIpsRequest & WithIps(const Aws::Vector< Aws::String > &value)
Definition: DescribeElasticIpsRequest.h:190
Aws::OpsWorks::Model::DescribeElasticIpsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeElasticIpsRequest.h:31
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::DescribeElasticIpsRequest::AddIps
DescribeElasticIpsRequest & AddIps(Aws::String &&value)
Definition: DescribeElasticIpsRequest.h:214
Aws::OpsWorks::Model::DescribeElasticIpsRequest::StackIdHasBeenSet
bool StackIdHasBeenSet() const
Definition: DescribeElasticIpsRequest.h:107
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::DescribeElasticIpsRequest::SetStackId
void SetStackId(const Aws::String &value)
Definition: DescribeElasticIpsRequest.h:114
Aws::OpsWorks::Model::DescribeElasticIpsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::OpsWorks::Model::DescribeElasticIpsRequest::IpsHasBeenSet
bool IpsHasBeenSet() const
Definition: DescribeElasticIpsRequest.h:166
Aws::OpsWorks::Model::DescribeElasticIpsRequest::WithInstanceId
DescribeElasticIpsRequest & WithInstanceId(Aws::String &&value)
Definition: DescribeElasticIpsRequest.h:85
Aws::OpsWorks::Model::DescribeElasticIpsRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: DescribeElasticIpsRequest.h:43
Aws::OpsWorks::Model::DescribeElasticIpsRequest::WithStackId
DescribeElasticIpsRequest & WithStackId(const char *value)
Definition: DescribeElasticIpsRequest.h:149