AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeAddressesAttributeRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/AddressAttributeName.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EC2_API DescribeAddressesAttributeRequest() = default;
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_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::Vector<Aws::String>& GetAllocationIds() const { return m_allocationIds; }
46 inline bool AllocationIdsHasBeenSet() const { return m_allocationIdsHasBeenSet; }
47 template<typename AllocationIdsT = Aws::Vector<Aws::String>>
48 void SetAllocationIds(AllocationIdsT&& value) { m_allocationIdsHasBeenSet = true; m_allocationIds = std::forward<AllocationIdsT>(value); }
49 template<typename AllocationIdsT = Aws::Vector<Aws::String>>
50 DescribeAddressesAttributeRequest& WithAllocationIds(AllocationIdsT&& value) { SetAllocationIds(std::forward<AllocationIdsT>(value)); return *this;}
51 template<typename AllocationIdsT = Aws::String>
52 DescribeAddressesAttributeRequest& AddAllocationIds(AllocationIdsT&& value) { m_allocationIdsHasBeenSet = true; m_allocationIds.emplace_back(std::forward<AllocationIdsT>(value)); return *this; }
54
56
59 inline AddressAttributeName GetAttribute() const { return m_attribute; }
60 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
61 inline void SetAttribute(AddressAttributeName value) { m_attributeHasBeenSet = true; m_attribute = value; }
64
66
69 inline const Aws::String& GetNextToken() const { return m_nextToken; }
70 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
71 template<typename NextTokenT = Aws::String>
72 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
73 template<typename NextTokenT = Aws::String>
74 DescribeAddressesAttributeRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
76
78
83 inline int GetMaxResults() const { return m_maxResults; }
84 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
85 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
86 inline DescribeAddressesAttributeRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
88
90
96 inline bool GetDryRun() const { return m_dryRun; }
97 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
98 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
99 inline DescribeAddressesAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
101 private:
102
103 Aws::Vector<Aws::String> m_allocationIds;
104 bool m_allocationIdsHasBeenSet = false;
105
107 bool m_attributeHasBeenSet = false;
108
109 Aws::String m_nextToken;
110 bool m_nextTokenHasBeenSet = false;
111
112 int m_maxResults{0};
113 bool m_maxResultsHasBeenSet = false;
114
115 bool m_dryRun{false};
116 bool m_dryRunHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace EC2
121} // 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