AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetAllocationIds(const Aws::Vector<Aws::String>& value) { m_allocationIdsHasBeenSet = true; m_allocationIds = value; }
47 inline void SetAllocationIds(Aws::Vector<Aws::String>&& value) { m_allocationIdsHasBeenSet = true; m_allocationIds = std::move(value); }
50 inline DescribeAddressTransfersRequest& AddAllocationIds(const Aws::String& value) { m_allocationIdsHasBeenSet = true; m_allocationIds.push_back(value); return *this; }
51 inline DescribeAddressTransfersRequest& AddAllocationIds(Aws::String&& value) { m_allocationIdsHasBeenSet = true; m_allocationIds.push_back(std::move(value)); return *this; }
52 inline DescribeAddressTransfersRequest& AddAllocationIds(const char* value) { m_allocationIdsHasBeenSet = true; m_allocationIds.push_back(value); return *this; }
54
56
60 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
61 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
62 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
63 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
64 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
65 inline DescribeAddressTransfersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
66 inline DescribeAddressTransfersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
67 inline DescribeAddressTransfersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
69
71
74 inline int GetMaxResults() const{ return m_maxResults; }
75 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
76 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
77 inline DescribeAddressTransfersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
79
81
87 inline bool GetDryRun() const{ return m_dryRun; }
88 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
89 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
90 inline DescribeAddressTransfersRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
92 private:
93
94 Aws::Vector<Aws::String> m_allocationIds;
95 bool m_allocationIdsHasBeenSet = false;
96
97 Aws::String m_nextToken;
98 bool m_nextTokenHasBeenSet = false;
99
100 int m_maxResults;
101 bool m_maxResultsHasBeenSet = false;
102
103 bool m_dryRun;
104 bool m_dryRunHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace EC2
109} // namespace Aws
DescribeAddressTransfersRequest & AddAllocationIds(Aws::String &&value)
void SetAllocationIds(Aws::Vector< Aws::String > &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeAddressTransfersRequest & WithAllocationIds(Aws::Vector< Aws::String > &&value)
DescribeAddressTransfersRequest & WithNextToken(Aws::String &&value)
DescribeAddressTransfersRequest & WithMaxResults(int value)
DescribeAddressTransfersRequest & WithAllocationIds(const Aws::Vector< Aws::String > &value)
DescribeAddressTransfersRequest & WithNextToken(const char *value)
DescribeAddressTransfersRequest & WithDryRun(bool value)
const Aws::Vector< Aws::String > & GetAllocationIds() const
void SetAllocationIds(const Aws::Vector< Aws::String > &value)
DescribeAddressTransfersRequest & AddAllocationIds(const char *value)
DescribeAddressTransfersRequest & AddAllocationIds(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeAddressTransfersRequest & WithNextToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector