AWS SDK for C++  1.9.129
AWS SDK for C++
DescribeAddressesAttributeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "DescribeAddressesAttribute"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::Vector<Aws::String>& GetAllocationIds() const{ return m_allocationIds; }
45 
49  inline bool AllocationIdsHasBeenSet() const { return m_allocationIdsHasBeenSet; }
50 
54  inline void SetAllocationIds(const Aws::Vector<Aws::String>& value) { m_allocationIdsHasBeenSet = true; m_allocationIds = value; }
55 
59  inline void SetAllocationIds(Aws::Vector<Aws::String>&& value) { m_allocationIdsHasBeenSet = true; m_allocationIds = std::move(value); }
60 
64  inline DescribeAddressesAttributeRequest& WithAllocationIds(const Aws::Vector<Aws::String>& value) { SetAllocationIds(value); return *this;}
65 
69  inline DescribeAddressesAttributeRequest& WithAllocationIds(Aws::Vector<Aws::String>&& value) { SetAllocationIds(std::move(value)); return *this;}
70 
74  inline DescribeAddressesAttributeRequest& AddAllocationIds(const Aws::String& value) { m_allocationIdsHasBeenSet = true; m_allocationIds.push_back(value); return *this; }
75 
79  inline DescribeAddressesAttributeRequest& AddAllocationIds(Aws::String&& value) { m_allocationIdsHasBeenSet = true; m_allocationIds.push_back(std::move(value)); return *this; }
80 
84  inline DescribeAddressesAttributeRequest& AddAllocationIds(const char* value) { m_allocationIdsHasBeenSet = true; m_allocationIds.push_back(value); return *this; }
85 
86 
90  inline const AddressAttributeName& GetAttribute() const{ return m_attribute; }
91 
95  inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
96 
100  inline void SetAttribute(const AddressAttributeName& value) { m_attributeHasBeenSet = true; m_attribute = value; }
101 
105  inline void SetAttribute(AddressAttributeName&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
106 
110  inline DescribeAddressesAttributeRequest& WithAttribute(const AddressAttributeName& value) { SetAttribute(value); return *this;}
111 
115  inline DescribeAddressesAttributeRequest& WithAttribute(AddressAttributeName&& value) { SetAttribute(std::move(value)); return *this;}
116 
117 
121  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
122 
126  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
127 
131  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
132 
136  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
137 
141  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
142 
146  inline DescribeAddressesAttributeRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
147 
151  inline DescribeAddressesAttributeRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
152 
156  inline DescribeAddressesAttributeRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
157 
158 
164  inline int GetMaxResults() const{ return m_maxResults; }
165 
171  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
172 
178  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
179 
185  inline DescribeAddressesAttributeRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
186 
187 
194  inline bool GetDryRun() const{ return m_dryRun; }
195 
202  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
203 
210  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
211 
218  inline DescribeAddressesAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
219 
220  private:
221 
222  Aws::Vector<Aws::String> m_allocationIds;
223  bool m_allocationIdsHasBeenSet;
224 
225  AddressAttributeName m_attribute;
226  bool m_attributeHasBeenSet;
227 
228  Aws::String m_nextToken;
229  bool m_nextTokenHasBeenSet;
230 
231  int m_maxResults;
232  bool m_maxResultsHasBeenSet;
233 
234  bool m_dryRun;
235  bool m_dryRunHasBeenSet;
236  };
237 
238 } // namespace Model
239 } // namespace EC2
240 } // namespace Aws
Aws::EC2::Model::DescribeAddressesAttributeRequest::WithAttribute
DescribeAddressesAttributeRequest & WithAttribute(const AddressAttributeName &value)
Definition: DescribeAddressesAttributeRequest.h:110
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeAddressesAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeAddressesAttributeRequest.h:32
Aws::EC2::Model::DescribeAddressesAttributeRequest::WithNextToken
DescribeAddressesAttributeRequest & WithNextToken(const char *value)
Definition: DescribeAddressesAttributeRequest.h:156
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeAddressesAttributeRequest::DescribeAddressesAttributeRequest
DescribeAddressesAttributeRequest()
Aws::EC2::Model::DescribeAddressesAttributeRequest::SetAllocationIds
void SetAllocationIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeAddressesAttributeRequest.h:54
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeAddressesAttributeRequest::AllocationIdsHasBeenSet
bool AllocationIdsHasBeenSet() const
Definition: DescribeAddressesAttributeRequest.h:49
Aws::EC2::Model::DescribeAddressesAttributeRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeAddressesAttributeRequest.h:164
AWSVector.h
Aws::EC2::Model::DescribeAddressesAttributeRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeAddressesAttributeRequest.h:126
Aws::EC2::Model::DescribeAddressesAttributeRequest::GetAllocationIds
const Aws::Vector< Aws::String > & GetAllocationIds() const
Definition: DescribeAddressesAttributeRequest.h:44
Aws::EC2::Model::DescribeAddressesAttributeRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeAddressesAttributeRequest.h:141
Aws::EC2::Model::DescribeAddressesAttributeRequest::WithAllocationIds
DescribeAddressesAttributeRequest & WithAllocationIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeAddressesAttributeRequest.h:69
Aws::EC2::Model::DescribeAddressesAttributeRequest::WithAllocationIds
DescribeAddressesAttributeRequest & WithAllocationIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeAddressesAttributeRequest.h:64
Aws::EC2::Model::DescribeAddressesAttributeRequest::WithNextToken
DescribeAddressesAttributeRequest & WithNextToken(const Aws::String &value)
Definition: DescribeAddressesAttributeRequest.h:146
EC2Request.h
Aws::EC2::Model::DescribeAddressesAttributeRequest::WithDryRun
DescribeAddressesAttributeRequest & WithDryRun(bool value)
Definition: DescribeAddressesAttributeRequest.h:218
Aws::EC2::Model::DescribeAddressesAttributeRequest::GetAttribute
const AddressAttributeName & GetAttribute() const
Definition: DescribeAddressesAttributeRequest.h:90
Aws::EC2::Model::DescribeAddressesAttributeRequest::SetAttribute
void SetAttribute(AddressAttributeName &&value)
Definition: DescribeAddressesAttributeRequest.h:105
AWSString.h
Aws::EC2::Model::DescribeAddressesAttributeRequest::WithNextToken
DescribeAddressesAttributeRequest & WithNextToken(Aws::String &&value)
Definition: DescribeAddressesAttributeRequest.h:151
Aws::EC2::Model::DescribeAddressesAttributeRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeAddressesAttributeRequest.h:210
Aws::EC2::Model::DescribeAddressesAttributeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeAddressesAttributeRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeAddressesAttributeRequest.h:136
Aws::EC2::Model::DescribeAddressesAttributeRequest::WithAttribute
DescribeAddressesAttributeRequest & WithAttribute(AddressAttributeName &&value)
Definition: DescribeAddressesAttributeRequest.h:115
Aws::EC2::Model::DescribeAddressesAttributeRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeAddressesAttributeRequest.h:171
Aws::EC2::Model::DescribeAddressesAttributeRequest::WithMaxResults
DescribeAddressesAttributeRequest & WithMaxResults(int value)
Definition: DescribeAddressesAttributeRequest.h:185
Aws::EC2::Model::DescribeAddressesAttributeRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeAddressesAttributeRequest.h:194
Aws::EC2::Model::DescribeAddressesAttributeRequest::AddAllocationIds
DescribeAddressesAttributeRequest & AddAllocationIds(Aws::String &&value)
Definition: DescribeAddressesAttributeRequest.h:79
Aws::EC2::Model::DescribeAddressesAttributeRequest
Definition: DescribeAddressesAttributeRequest.h:24
Aws::EC2::Model::DescribeAddressesAttributeRequest::AddAllocationIds
DescribeAddressesAttributeRequest & AddAllocationIds(const char *value)
Definition: DescribeAddressesAttributeRequest.h:84
Aws::EC2::Model::DescribeAddressesAttributeRequest::SetAllocationIds
void SetAllocationIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeAddressesAttributeRequest.h:59
Aws::EC2::Model::DescribeAddressesAttributeRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeAddressesAttributeRequest.h:121
Aws::EC2::Model::DescribeAddressesAttributeRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeAddressesAttributeRequest.h:178
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeAddressesAttributeRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeAddressesAttributeRequest.h:202
Aws::EC2::Model::AddressAttributeName
AddressAttributeName
Definition: AddressAttributeName.h:17
Aws::EC2::Model::DescribeAddressesAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeAddressesAttributeRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeAddressesAttributeRequest.h:131
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeAddressesAttributeRequest::AttributeHasBeenSet
bool AttributeHasBeenSet() const
Definition: DescribeAddressesAttributeRequest.h:95
Aws::EC2::Model::DescribeAddressesAttributeRequest::SetAttribute
void SetAttribute(const AddressAttributeName &value)
Definition: DescribeAddressesAttributeRequest.h:100
AddressAttributeName.h
Aws::EC2::Model::DescribeAddressesAttributeRequest::AddAllocationIds
DescribeAddressesAttributeRequest & AddAllocationIds(const Aws::String &value)
Definition: DescribeAddressesAttributeRequest.h:74
EC2_EXPORTS.h