AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AcceptAddressTransferRequest.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/TagSpecification.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API AcceptAddressTransferRequest() = 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 "AcceptAddressTransfer"; }
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::String& GetAddress() const { return m_address; }
42 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
43 template <typename AddressT = Aws::String>
44 void SetAddress(AddressT&& value) {
45 m_addressHasBeenSet = true;
46 m_address = std::forward<AddressT>(value);
47 }
48 template <typename AddressT = Aws::String>
50 SetAddress(std::forward<AddressT>(value));
51 return *this;
52 }
54
56
64 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
65 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
66 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
67 void SetTagSpecifications(TagSpecificationsT&& value) {
68 m_tagSpecificationsHasBeenSet = true;
69 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
70 }
71 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
73 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
74 return *this;
75 }
76 template <typename TagSpecificationsT = TagSpecification>
78 m_tagSpecificationsHasBeenSet = true;
79 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
80 return *this;
81 }
83
85
91 inline bool GetDryRun() const { return m_dryRun; }
92 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
93 inline void SetDryRun(bool value) {
94 m_dryRunHasBeenSet = true;
95 m_dryRun = value;
96 }
98 SetDryRun(value);
99 return *this;
100 }
102 private:
103 Aws::String m_address;
104
105 Aws::Vector<TagSpecification> m_tagSpecifications;
106
107 bool m_dryRun{false};
108 bool m_addressHasBeenSet = false;
109 bool m_tagSpecificationsHasBeenSet = false;
110 bool m_dryRunHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace EC2
115} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
AcceptAddressTransferRequest & WithAddress(AddressT &&value)
AcceptAddressTransferRequest & AddTagSpecifications(TagSpecificationsT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
AcceptAddressTransferRequest & WithTagSpecifications(TagSpecificationsT &&value)
virtual const char * GetServiceRequestName() const override
AcceptAddressTransferRequest & WithDryRun(bool value)
AWS_EC2_API AcceptAddressTransferRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector