AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeAddressTransfersRequest.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/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_EC2_API DescribeAddressTransfersRequest() = default;
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 "DescribeAddressTransfers"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::Vector<Aws::String>& GetAllocationIds() const { return m_allocationIds; }
45 inline bool AllocationIdsHasBeenSet() const { return m_allocationIdsHasBeenSet; }
46 template<typename AllocationIdsT = Aws::Vector<Aws::String>>
47 void SetAllocationIds(AllocationIdsT&& value) { m_allocationIdsHasBeenSet = true; m_allocationIds = std::forward<AllocationIdsT>(value); }
48 template<typename AllocationIdsT = Aws::Vector<Aws::String>>
49 DescribeAddressTransfersRequest& WithAllocationIds(AllocationIdsT&& value) { SetAllocationIds(std::forward<AllocationIdsT>(value)); return *this;}
50 template<typename AllocationIdsT = Aws::String>
51 DescribeAddressTransfersRequest& AddAllocationIds(AllocationIdsT&& value) { m_allocationIdsHasBeenSet = true; m_allocationIds.emplace_back(std::forward<AllocationIdsT>(value)); return *this; }
53
55
59 inline const Aws::String& GetNextToken() const { return m_nextToken; }
60 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
61 template<typename NextTokenT = Aws::String>
62 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
63 template<typename NextTokenT = Aws::String>
64 DescribeAddressTransfersRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
66
68
71 inline int GetMaxResults() const { return m_maxResults; }
72 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
73 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
74 inline DescribeAddressTransfersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
76
78
84 inline bool GetDryRun() const { return m_dryRun; }
85 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
86 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
87 inline DescribeAddressTransfersRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
89 private:
90
91 Aws::Vector<Aws::String> m_allocationIds;
92 bool m_allocationIdsHasBeenSet = false;
93
94 Aws::String m_nextToken;
95 bool m_nextTokenHasBeenSet = false;
96
97 int m_maxResults{0};
98 bool m_maxResultsHasBeenSet = false;
99
100 bool m_dryRun{false};
101 bool m_dryRunHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace EC2
106} // 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