AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetIpv4Prefixes(const Aws::Vector<Aws::String>& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes = value; }
52 inline void SetIpv4Prefixes(Aws::Vector<Aws::String>&& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes = std::move(value); }
55 inline AssignPrivateIpAddressesRequest& AddIpv4Prefixes(const Aws::String& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes.push_back(value); return *this; }
56 inline AssignPrivateIpAddressesRequest& AddIpv4Prefixes(Aws::String&& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes.push_back(std::move(value)); return *this; }
57 inline AssignPrivateIpAddressesRequest& AddIpv4Prefixes(const char* value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes.push_back(value); return *this; }
59
61
66 inline int GetIpv4PrefixCount() const{ return m_ipv4PrefixCount; }
67 inline bool Ipv4PrefixCountHasBeenSet() const { return m_ipv4PrefixCountHasBeenSet; }
68 inline void SetIpv4PrefixCount(int value) { m_ipv4PrefixCountHasBeenSet = true; m_ipv4PrefixCount = value; }
71
73
76 inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
77 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
78 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
79 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
80 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
83 inline AssignPrivateIpAddressesRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
85
87
93 inline const Aws::Vector<Aws::String>& GetPrivateIpAddresses() const{ return m_privateIpAddresses; }
94 inline bool PrivateIpAddressesHasBeenSet() const { return m_privateIpAddressesHasBeenSet; }
95 inline void SetPrivateIpAddresses(const Aws::Vector<Aws::String>& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; }
96 inline void SetPrivateIpAddresses(Aws::Vector<Aws::String>&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = std::move(value); }
99 inline AssignPrivateIpAddressesRequest& AddPrivateIpAddresses(const Aws::String& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
100 inline AssignPrivateIpAddressesRequest& AddPrivateIpAddresses(Aws::String&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(std::move(value)); return *this; }
101 inline AssignPrivateIpAddressesRequest& AddPrivateIpAddresses(const char* value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; }
103
105
109 inline int GetSecondaryPrivateIpAddressCount() const{ return m_secondaryPrivateIpAddressCount; }
110 inline bool SecondaryPrivateIpAddressCountHasBeenSet() const { return m_secondaryPrivateIpAddressCountHasBeenSet; }
111 inline void SetSecondaryPrivateIpAddressCount(int value) { m_secondaryPrivateIpAddressCountHasBeenSet = true; m_secondaryPrivateIpAddressCount = value; }
114
116
121 inline bool GetAllowReassignment() const{ return m_allowReassignment; }
122 inline bool AllowReassignmentHasBeenSet() const { return m_allowReassignmentHasBeenSet; }
123 inline void SetAllowReassignment(bool value) { m_allowReassignmentHasBeenSet = true; m_allowReassignment = value; }
126 private:
127
128 Aws::Vector<Aws::String> m_ipv4Prefixes;
129 bool m_ipv4PrefixesHasBeenSet = false;
130
131 int m_ipv4PrefixCount;
132 bool m_ipv4PrefixCountHasBeenSet = false;
133
134 Aws::String m_networkInterfaceId;
135 bool m_networkInterfaceIdHasBeenSet = false;
136
137 Aws::Vector<Aws::String> m_privateIpAddresses;
138 bool m_privateIpAddressesHasBeenSet = false;
139
140 int m_secondaryPrivateIpAddressCount;
141 bool m_secondaryPrivateIpAddressCountHasBeenSet = false;
142
143 bool m_allowReassignment;
144 bool m_allowReassignmentHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace EC2
149} // namespace Aws
AssignPrivateIpAddressesRequest & AddIpv4Prefixes(Aws::String &&value)
AssignPrivateIpAddressesRequest & WithPrivateIpAddresses(Aws::Vector< Aws::String > &&value)
void SetPrivateIpAddresses(Aws::Vector< Aws::String > &&value)
AssignPrivateIpAddressesRequest & WithIpv4PrefixCount(int value)
AssignPrivateIpAddressesRequest & WithSecondaryPrivateIpAddressCount(int value)
AssignPrivateIpAddressesRequest & WithPrivateIpAddresses(const Aws::Vector< Aws::String > &value)
AWS_EC2_API Aws::String SerializePayload() const override
AssignPrivateIpAddressesRequest & AddIpv4Prefixes(const char *value)
AssignPrivateIpAddressesRequest & WithNetworkInterfaceId(Aws::String &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AssignPrivateIpAddressesRequest & WithNetworkInterfaceId(const Aws::String &value)
AssignPrivateIpAddressesRequest & WithIpv4Prefixes(const Aws::Vector< Aws::String > &value)
AssignPrivateIpAddressesRequest & AddIpv4Prefixes(const Aws::String &value)
AssignPrivateIpAddressesRequest & WithIpv4Prefixes(Aws::Vector< Aws::String > &&value)
AssignPrivateIpAddressesRequest & AddPrivateIpAddresses(const char *value)
AssignPrivateIpAddressesRequest & WithAllowReassignment(bool value)
void SetPrivateIpAddresses(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetIpv4Prefixes() const
AssignPrivateIpAddressesRequest & AddPrivateIpAddresses(const Aws::String &value)
AssignPrivateIpAddressesRequest & AddPrivateIpAddresses(Aws::String &&value)
AssignPrivateIpAddressesRequest & WithNetworkInterfaceId(const char *value)
const Aws::Vector< Aws::String > & GetPrivateIpAddresses() const
void SetIpv4Prefixes(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector