AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssignPrivateNatGatewayAddressRequest.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 "AssignPrivateNatGatewayAddress"; }
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 AssignPrivateNatGatewayAddressRequest& WithNatGatewayId(NatGatewayIdT&& value) { SetNatGatewayId(std::forward<NatGatewayIdT>(value)); return *this;}
51
53
56 inline const Aws::Vector<Aws::String>& GetPrivateIpAddresses() const { return m_privateIpAddresses; }
57 inline bool PrivateIpAddressesHasBeenSet() const { return m_privateIpAddressesHasBeenSet; }
58 template<typename PrivateIpAddressesT = Aws::Vector<Aws::String>>
59 void SetPrivateIpAddresses(PrivateIpAddressesT&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = std::forward<PrivateIpAddressesT>(value); }
60 template<typename PrivateIpAddressesT = Aws::Vector<Aws::String>>
61 AssignPrivateNatGatewayAddressRequest& WithPrivateIpAddresses(PrivateIpAddressesT&& value) { SetPrivateIpAddresses(std::forward<PrivateIpAddressesT>(value)); return *this;}
62 template<typename PrivateIpAddressesT = Aws::String>
63 AssignPrivateNatGatewayAddressRequest& AddPrivateIpAddresses(PrivateIpAddressesT&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.emplace_back(std::forward<PrivateIpAddressesT>(value)); return *this; }
65
67
71 inline int GetPrivateIpAddressCount() const { return m_privateIpAddressCount; }
72 inline bool PrivateIpAddressCountHasBeenSet() const { return m_privateIpAddressCountHasBeenSet; }
73 inline void SetPrivateIpAddressCount(int value) { m_privateIpAddressCountHasBeenSet = true; m_privateIpAddressCount = value; }
76
78
84 inline bool GetDryRun() const { return m_dryRun; }
85 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
86 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
87 inline AssignPrivateNatGatewayAddressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
89 private:
90
91 Aws::String m_natGatewayId;
92 bool m_natGatewayIdHasBeenSet = false;
93
94 Aws::Vector<Aws::String> m_privateIpAddresses;
95 bool m_privateIpAddressesHasBeenSet = false;
96
97 int m_privateIpAddressCount{0};
98 bool m_privateIpAddressCountHasBeenSet = false;
99
100 bool m_dryRun{false};
101 bool m_dryRunHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace EC2
106} // namespace Aws
AssignPrivateNatGatewayAddressRequest & WithPrivateIpAddressCount(int value)
AssignPrivateNatGatewayAddressRequest & WithDryRun(bool value)
AssignPrivateNatGatewayAddressRequest & WithNatGatewayId(NatGatewayIdT &&value)
AssignPrivateNatGatewayAddressRequest & AddPrivateIpAddresses(PrivateIpAddressesT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AssignPrivateNatGatewayAddressRequest & WithPrivateIpAddresses(PrivateIpAddressesT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector