AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AcceptAddressTransferRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/TagSpecification.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EC2_API AcceptAddressTransferRequest() = 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 "AcceptAddressTransfer"; }
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::String& GetAddress() const { return m_address; }
46 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
47 template<typename AddressT = Aws::String>
48 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
49 template<typename AddressT = Aws::String>
50 AcceptAddressTransferRequest& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
52
54
62 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
63 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
64 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
65 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
66 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
67 AcceptAddressTransferRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
68 template<typename TagSpecificationsT = TagSpecification>
69 AcceptAddressTransferRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
71
73
79 inline bool GetDryRun() const { return m_dryRun; }
80 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
81 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
82 inline AcceptAddressTransferRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
84 private:
85
86 Aws::String m_address;
87 bool m_addressHasBeenSet = false;
88
89 Aws::Vector<TagSpecification> m_tagSpecifications;
90 bool m_tagSpecificationsHasBeenSet = false;
91
92 bool m_dryRun{false};
93 bool m_dryRunHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace EC2
98} // 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