AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssignPrivateIpAddressesRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_EC2_API AssignPrivateIpAddressesRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "AssignPrivateIpAddresses"; }
36
37 AWS_EC2_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
49 inline const Aws::Vector<Aws::String>& GetIpv4Prefixes() const { return m_ipv4Prefixes; }
50 inline bool Ipv4PrefixesHasBeenSet() const { return m_ipv4PrefixesHasBeenSet; }
51 template<typename Ipv4PrefixesT = Aws::Vector<Aws::String>>
52 void SetIpv4Prefixes(Ipv4PrefixesT&& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes = std::forward<Ipv4PrefixesT>(value); }
53 template<typename Ipv4PrefixesT = Aws::Vector<Aws::String>>
54 AssignPrivateIpAddressesRequest& WithIpv4Prefixes(Ipv4PrefixesT&& value) { SetIpv4Prefixes(std::forward<Ipv4PrefixesT>(value)); return *this;}
55 template<typename Ipv4PrefixesT = Aws::String>
56 AssignPrivateIpAddressesRequest& AddIpv4Prefixes(Ipv4PrefixesT&& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes.emplace_back(std::forward<Ipv4PrefixesT>(value)); return *this; }
58
60
65 inline int GetIpv4PrefixCount() const { return m_ipv4PrefixCount; }
66 inline bool Ipv4PrefixCountHasBeenSet() const { return m_ipv4PrefixCountHasBeenSet; }
67 inline void SetIpv4PrefixCount(int value) { m_ipv4PrefixCountHasBeenSet = true; m_ipv4PrefixCount = value; }
70
72
75 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
76 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
77 template<typename NetworkInterfaceIdT = Aws::String>
78 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value); }
79 template<typename NetworkInterfaceIdT = Aws::String>
80 AssignPrivateIpAddressesRequest& WithNetworkInterfaceId(NetworkInterfaceIdT&& value) { SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value)); return *this;}
82
84
90 inline const Aws::Vector<Aws::String>& GetPrivateIpAddresses() const { return m_privateIpAddresses; }
91 inline bool PrivateIpAddressesHasBeenSet() const { return m_privateIpAddressesHasBeenSet; }
92 template<typename PrivateIpAddressesT = Aws::Vector<Aws::String>>
93 void SetPrivateIpAddresses(PrivateIpAddressesT&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = std::forward<PrivateIpAddressesT>(value); }
94 template<typename PrivateIpAddressesT = Aws::Vector<Aws::String>>
95 AssignPrivateIpAddressesRequest& WithPrivateIpAddresses(PrivateIpAddressesT&& value) { SetPrivateIpAddresses(std::forward<PrivateIpAddressesT>(value)); return *this;}
96 template<typename PrivateIpAddressesT = Aws::String>
97 AssignPrivateIpAddressesRequest& AddPrivateIpAddresses(PrivateIpAddressesT&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.emplace_back(std::forward<PrivateIpAddressesT>(value)); return *this; }
99
101
105 inline int GetSecondaryPrivateIpAddressCount() const { return m_secondaryPrivateIpAddressCount; }
106 inline bool SecondaryPrivateIpAddressCountHasBeenSet() const { return m_secondaryPrivateIpAddressCountHasBeenSet; }
107 inline void SetSecondaryPrivateIpAddressCount(int value) { m_secondaryPrivateIpAddressCountHasBeenSet = true; m_secondaryPrivateIpAddressCount = value; }
110
112
117 inline bool GetAllowReassignment() const { return m_allowReassignment; }
118 inline bool AllowReassignmentHasBeenSet() const { return m_allowReassignmentHasBeenSet; }
119 inline void SetAllowReassignment(bool value) { m_allowReassignmentHasBeenSet = true; m_allowReassignment = value; }
122 private:
123
124 Aws::Vector<Aws::String> m_ipv4Prefixes;
125 bool m_ipv4PrefixesHasBeenSet = false;
126
127 int m_ipv4PrefixCount{0};
128 bool m_ipv4PrefixCountHasBeenSet = false;
129
130 Aws::String m_networkInterfaceId;
131 bool m_networkInterfaceIdHasBeenSet = false;
132
133 Aws::Vector<Aws::String> m_privateIpAddresses;
134 bool m_privateIpAddressesHasBeenSet = false;
135
136 int m_secondaryPrivateIpAddressCount{0};
137 bool m_secondaryPrivateIpAddressCountHasBeenSet = false;
138
139 bool m_allowReassignment{false};
140 bool m_allowReassignmentHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace EC2
145} // namespace Aws
AssignPrivateIpAddressesRequest & AddPrivateIpAddresses(PrivateIpAddressesT &&value)
AssignPrivateIpAddressesRequest & WithIpv4PrefixCount(int value)
AssignPrivateIpAddressesRequest & WithSecondaryPrivateIpAddressCount(int value)
AssignPrivateIpAddressesRequest & WithPrivateIpAddresses(PrivateIpAddressesT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AssignPrivateIpAddressesRequest & AddIpv4Prefixes(Ipv4PrefixesT &&value)
AssignPrivateIpAddressesRequest & WithAllowReassignment(bool value)
AssignPrivateIpAddressesRequest & WithIpv4Prefixes(Ipv4PrefixesT &&value)
const Aws::Vector< Aws::String > & GetIpv4Prefixes() const
AssignPrivateIpAddressesRequest & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
const Aws::Vector< Aws::String > & GetPrivateIpAddresses() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector