AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeAddressTransfersRequest.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
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
21 public:
22 AWS_EC2_API DescribeAddressTransfersRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DescribeAddressTransfers"; }
29
30 AWS_EC2_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const Aws::Vector<Aws::String>& GetAllocationIds() const { return m_allocationIds; }
41 inline bool AllocationIdsHasBeenSet() const { return m_allocationIdsHasBeenSet; }
42 template <typename AllocationIdsT = Aws::Vector<Aws::String>>
43 void SetAllocationIds(AllocationIdsT&& value) {
44 m_allocationIdsHasBeenSet = true;
45 m_allocationIds = std::forward<AllocationIdsT>(value);
46 }
47 template <typename AllocationIdsT = Aws::Vector<Aws::String>>
49 SetAllocationIds(std::forward<AllocationIdsT>(value));
50 return *this;
51 }
52 template <typename AllocationIdsT = Aws::String>
54 m_allocationIdsHasBeenSet = true;
55 m_allocationIds.emplace_back(std::forward<AllocationIdsT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetNextToken() const { return m_nextToken; }
66 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
67 template <typename NextTokenT = Aws::String>
68 void SetNextToken(NextTokenT&& value) {
69 m_nextTokenHasBeenSet = true;
70 m_nextToken = std::forward<NextTokenT>(value);
71 }
72 template <typename NextTokenT = Aws::String>
74 SetNextToken(std::forward<NextTokenT>(value));
75 return *this;
76 }
78
80
83 inline int GetMaxResults() const { return m_maxResults; }
84 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
85 inline void SetMaxResults(int value) {
86 m_maxResultsHasBeenSet = true;
87 m_maxResults = value;
88 }
90 SetMaxResults(value);
91 return *this;
92 }
94
96
102 inline bool GetDryRun() const { return m_dryRun; }
103 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
104 inline void SetDryRun(bool value) {
105 m_dryRunHasBeenSet = true;
106 m_dryRun = value;
107 }
109 SetDryRun(value);
110 return *this;
111 }
113 private:
114 Aws::Vector<Aws::String> m_allocationIds;
115
116 Aws::String m_nextToken;
117
118 int m_maxResults{0};
119
120 bool m_dryRun{false};
121 bool m_allocationIdsHasBeenSet = false;
122 bool m_nextTokenHasBeenSet = false;
123 bool m_maxResultsHasBeenSet = false;
124 bool m_dryRunHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace EC2
129} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeAddressTransfersRequest & WithMaxResults(int value)
DescribeAddressTransfersRequest & WithDryRun(bool value)
const Aws::Vector< Aws::String > & GetAllocationIds() const
DescribeAddressTransfersRequest & WithAllocationIds(AllocationIdsT &&value)
DescribeAddressTransfersRequest & AddAllocationIds(AllocationIdsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeAddressTransfersRequest & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector