AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetNatGatewayId(const Aws::String& value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId = value; }
47 inline void SetNatGatewayId(Aws::String&& value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId = std::move(value); }
48 inline void SetNatGatewayId(const char* value) { m_natGatewayIdHasBeenSet = true; m_natGatewayId.assign(value); }
50 inline AssociateNatGatewayAddressRequest& WithNatGatewayId(Aws::String&& value) { SetNatGatewayId(std::move(value)); return *this;}
51 inline AssociateNatGatewayAddressRequest& WithNatGatewayId(const char* value) { SetNatGatewayId(value); return *this;}
53
55
59 inline const Aws::Vector<Aws::String>& GetAllocationIds() const{ return m_allocationIds; }
60 inline bool AllocationIdsHasBeenSet() const { return m_allocationIdsHasBeenSet; }
61 inline void SetAllocationIds(const Aws::Vector<Aws::String>& value) { m_allocationIdsHasBeenSet = true; m_allocationIds = value; }
62 inline void SetAllocationIds(Aws::Vector<Aws::String>&& value) { m_allocationIdsHasBeenSet = true; m_allocationIds = std::move(value); }
65 inline AssociateNatGatewayAddressRequest& AddAllocationIds(const Aws::String& value) { m_allocationIdsHasBeenSet = true; m_allocationIds.push_back(value); return *this; }
66 inline AssociateNatGatewayAddressRequest& AddAllocationIds(Aws::String&& value) { m_allocationIdsHasBeenSet = true; m_allocationIds.push_back(std::move(value)); return *this; }
67 inline AssociateNatGatewayAddressRequest& AddAllocationIds(const char* value) { m_allocationIdsHasBeenSet = true; m_allocationIds.push_back(value); return *this; }
69
71
74 inline const Aws::Vector<Aws::String>& GetPrivateIpAddresses() const{ return m_privateIpAddresses; }
75 inline bool PrivateIpAddressesHasBeenSet() const { return m_privateIpAddressesHasBeenSet; }
76 inline void SetPrivateIpAddresses(const Aws::Vector<Aws::String>& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; }
77 inline void SetPrivateIpAddresses(Aws::Vector<Aws::String>&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = std::move(value); }
80 inline AssociateNatGatewayAddressRequest& AddPrivateIpAddresses(const Aws::String& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
81 inline AssociateNatGatewayAddressRequest& AddPrivateIpAddresses(Aws::String&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(std::move(value)); return *this; }
82 inline AssociateNatGatewayAddressRequest& AddPrivateIpAddresses(const char* value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
84
86
92 inline bool GetDryRun() const{ return m_dryRun; }
93 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
94 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
95 inline AssociateNatGatewayAddressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
97 private:
98
99 Aws::String m_natGatewayId;
100 bool m_natGatewayIdHasBeenSet = false;
101
102 Aws::Vector<Aws::String> m_allocationIds;
103 bool m_allocationIdsHasBeenSet = false;
104
105 Aws::Vector<Aws::String> m_privateIpAddresses;
106 bool m_privateIpAddressesHasBeenSet = false;
107
108 bool m_dryRun;
109 bool m_dryRunHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace EC2
114} // namespace Aws
AssociateNatGatewayAddressRequest & AddPrivateIpAddresses(const Aws::String &value)
AssociateNatGatewayAddressRequest & AddAllocationIds(const char *value)
AssociateNatGatewayAddressRequest & WithPrivateIpAddresses(Aws::Vector< Aws::String > &&value)
AssociateNatGatewayAddressRequest & AddPrivateIpAddresses(const char *value)
AssociateNatGatewayAddressRequest & AddAllocationIds(Aws::String &&value)
AssociateNatGatewayAddressRequest & WithAllocationIds(const Aws::Vector< Aws::String > &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetPrivateIpAddresses(const Aws::Vector< Aws::String > &value)
AssociateNatGatewayAddressRequest & WithNatGatewayId(const char *value)
const Aws::Vector< Aws::String > & GetPrivateIpAddresses() const
AssociateNatGatewayAddressRequest & AddPrivateIpAddresses(Aws::String &&value)
AssociateNatGatewayAddressRequest & WithNatGatewayId(Aws::String &&value)
AssociateNatGatewayAddressRequest & WithNatGatewayId(const Aws::String &value)
AssociateNatGatewayAddressRequest & AddAllocationIds(const Aws::String &value)
void SetAllocationIds(const Aws::Vector< Aws::String > &value)
AssociateNatGatewayAddressRequest & WithPrivateIpAddresses(const Aws::Vector< Aws::String > &value)
AssociateNatGatewayAddressRequest & WithAllocationIds(Aws::Vector< Aws::String > &&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