AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeAddressesAttributeRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/AddressAttributeName.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API DescribeAddressesAttributeRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeAddressesAttribute"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::Vector<Aws::String>& GetAllocationIds() const { return m_allocationIds; }
42 inline bool AllocationIdsHasBeenSet() const { return m_allocationIdsHasBeenSet; }
43 template <typename AllocationIdsT = Aws::Vector<Aws::String>>
44 void SetAllocationIds(AllocationIdsT&& value) {
45 m_allocationIdsHasBeenSet = true;
46 m_allocationIds = std::forward<AllocationIdsT>(value);
47 }
48 template <typename AllocationIdsT = Aws::Vector<Aws::String>>
50 SetAllocationIds(std::forward<AllocationIdsT>(value));
51 return *this;
52 }
53 template <typename AllocationIdsT = Aws::String>
55 m_allocationIdsHasBeenSet = true;
56 m_allocationIds.emplace_back(std::forward<AllocationIdsT>(value));
57 return *this;
58 }
60
62
65 inline AddressAttributeName GetAttribute() const { return m_attribute; }
66 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
68 m_attributeHasBeenSet = true;
69 m_attribute = value;
70 }
72 SetAttribute(value);
73 return *this;
74 }
76
78
81 inline const Aws::String& GetNextToken() const { return m_nextToken; }
82 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
83 template <typename NextTokenT = Aws::String>
84 void SetNextToken(NextTokenT&& value) {
85 m_nextTokenHasBeenSet = true;
86 m_nextToken = std::forward<NextTokenT>(value);
87 }
88 template <typename NextTokenT = Aws::String>
90 SetNextToken(std::forward<NextTokenT>(value));
91 return *this;
92 }
94
96
101 inline int GetMaxResults() const { return m_maxResults; }
102 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
103 inline void SetMaxResults(int value) {
104 m_maxResultsHasBeenSet = true;
105 m_maxResults = value;
106 }
108 SetMaxResults(value);
109 return *this;
110 }
112
114
120 inline bool GetDryRun() const { return m_dryRun; }
121 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
122 inline void SetDryRun(bool value) {
123 m_dryRunHasBeenSet = true;
124 m_dryRun = value;
125 }
127 SetDryRun(value);
128 return *this;
129 }
131 private:
132 Aws::Vector<Aws::String> m_allocationIds;
133
135
136 Aws::String m_nextToken;
137
138 int m_maxResults{0};
139
140 bool m_dryRun{false};
141 bool m_allocationIdsHasBeenSet = false;
142 bool m_attributeHasBeenSet = false;
143 bool m_nextTokenHasBeenSet = false;
144 bool m_maxResultsHasBeenSet = false;
145 bool m_dryRunHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace EC2
150} // namespace Aws
DescribeAddressesAttributeRequest & WithAllocationIds(AllocationIdsT &&value)
DescribeAddressesAttributeRequest & WithDryRun(bool value)
DescribeAddressesAttributeRequest & WithNextToken(NextTokenT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeAddressesAttributeRequest & AddAllocationIds(AllocationIdsT &&value)
DescribeAddressesAttributeRequest & WithAttribute(AddressAttributeName value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeAddressesAttributeRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector