AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssociateNatGatewayAddressRequest.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 <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_EC2_API AssociateNatGatewayAddressRequest() = 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 "AssociateNatGatewayAddress"; }
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::String& GetNatGatewayId() const { return m_natGatewayId; }
45 inline bool NatGatewayIdHasBeenSet() const { return m_natGatewayIdHasBeenSet; }
46 template<typename NatGatewayIdT = Aws::String>
47 void SetNatGatewayId(NatGatewayIdT&& value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId = std::forward<NatGatewayIdT>(value); }
48 template<typename NatGatewayIdT = Aws::String>
49 AssociateNatGatewayAddressRequest& WithNatGatewayId(NatGatewayIdT&& value) { SetNatGatewayId(std::forward<NatGatewayIdT>(value)); return *this;}
51
53
57 inline const Aws::Vector<Aws::String>& GetAllocationIds() const { return m_allocationIds; }
58 inline bool AllocationIdsHasBeenSet() const { return m_allocationIdsHasBeenSet; }
59 template<typename AllocationIdsT = Aws::Vector<Aws::String>>
60 void SetAllocationIds(AllocationIdsT&& value) { m_allocationIdsHasBeenSet = true; m_allocationIds = std::forward<AllocationIdsT>(value); }
61 template<typename AllocationIdsT = Aws::Vector<Aws::String>>
62 AssociateNatGatewayAddressRequest& WithAllocationIds(AllocationIdsT&& value) { SetAllocationIds(std::forward<AllocationIdsT>(value)); return *this;}
63 template<typename AllocationIdsT = Aws::String>
64 AssociateNatGatewayAddressRequest& AddAllocationIds(AllocationIdsT&& value) { m_allocationIdsHasBeenSet = true; m_allocationIds.emplace_back(std::forward<AllocationIdsT>(value)); return *this; }
66
68
71 inline const Aws::Vector<Aws::String>& GetPrivateIpAddresses() const { return m_privateIpAddresses; }
72 inline bool PrivateIpAddressesHasBeenSet() const { return m_privateIpAddressesHasBeenSet; }
73 template<typename PrivateIpAddressesT = Aws::Vector<Aws::String>>
74 void SetPrivateIpAddresses(PrivateIpAddressesT&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = std::forward<PrivateIpAddressesT>(value); }
75 template<typename PrivateIpAddressesT = Aws::Vector<Aws::String>>
76 AssociateNatGatewayAddressRequest& WithPrivateIpAddresses(PrivateIpAddressesT&& value) { SetPrivateIpAddresses(std::forward<PrivateIpAddressesT>(value)); return *this;}
77 template<typename PrivateIpAddressesT = Aws::String>
78 AssociateNatGatewayAddressRequest& AddPrivateIpAddresses(PrivateIpAddressesT&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.emplace_back(std::forward<PrivateIpAddressesT>(value)); return *this; }
80
82
88 inline bool GetDryRun() const { return m_dryRun; }
89 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
90 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
91 inline AssociateNatGatewayAddressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
93 private:
94
95 Aws::String m_natGatewayId;
96 bool m_natGatewayIdHasBeenSet = false;
97
98 Aws::Vector<Aws::String> m_allocationIds;
99 bool m_allocationIdsHasBeenSet = false;
100
101 Aws::Vector<Aws::String> m_privateIpAddresses;
102 bool m_privateIpAddressesHasBeenSet = false;
103
104 bool m_dryRun{false};
105 bool m_dryRunHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace EC2
110} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AssociateNatGatewayAddressRequest & AddPrivateIpAddresses(PrivateIpAddressesT &&value)
AssociateNatGatewayAddressRequest & WithAllocationIds(AllocationIdsT &&value)
AssociateNatGatewayAddressRequest & AddAllocationIds(AllocationIdsT &&value)
const Aws::Vector< Aws::String > & GetPrivateIpAddresses() const
AssociateNatGatewayAddressRequest & WithPrivateIpAddresses(PrivateIpAddressesT &&value)
AssociateNatGatewayAddressRequest & WithNatGatewayId(NatGatewayIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AssociateNatGatewayAddressRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector