AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssignIpv6AddressesRequest.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
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 "AssignIpv6Addresses"; }
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
46 inline int GetIpv6PrefixCount() const{ return m_ipv6PrefixCount; }
47 inline bool Ipv6PrefixCountHasBeenSet() const { return m_ipv6PrefixCountHasBeenSet; }
48 inline void SetIpv6PrefixCount(int value) { m_ipv6PrefixCountHasBeenSet = true; m_ipv6PrefixCount = value; }
49 inline AssignIpv6AddressesRequest& WithIpv6PrefixCount(int value) { SetIpv6PrefixCount(value); return *this;}
51
53
57 inline const Aws::Vector<Aws::String>& GetIpv6Prefixes() const{ return m_ipv6Prefixes; }
58 inline bool Ipv6PrefixesHasBeenSet() const { return m_ipv6PrefixesHasBeenSet; }
59 inline void SetIpv6Prefixes(const Aws::Vector<Aws::String>& value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes = value; }
60 inline void SetIpv6Prefixes(Aws::Vector<Aws::String>&& value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes = std::move(value); }
62 inline AssignIpv6AddressesRequest& WithIpv6Prefixes(Aws::Vector<Aws::String>&& value) { SetIpv6Prefixes(std::move(value)); return *this;}
63 inline AssignIpv6AddressesRequest& AddIpv6Prefixes(const Aws::String& value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes.push_back(value); return *this; }
64 inline AssignIpv6AddressesRequest& AddIpv6Prefixes(Aws::String&& value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes.push_back(std::move(value)); return *this; }
65 inline AssignIpv6AddressesRequest& AddIpv6Prefixes(const char* value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes.push_back(value); return *this; }
67
69
72 inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
73 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
74 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
75 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
76 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
78 inline AssignIpv6AddressesRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
79 inline AssignIpv6AddressesRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
81
83
87 inline const Aws::Vector<Aws::String>& GetIpv6Addresses() const{ return m_ipv6Addresses; }
88 inline bool Ipv6AddressesHasBeenSet() const { return m_ipv6AddressesHasBeenSet; }
89 inline void SetIpv6Addresses(const Aws::Vector<Aws::String>& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = value; }
90 inline void SetIpv6Addresses(Aws::Vector<Aws::String>&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = std::move(value); }
93 inline AssignIpv6AddressesRequest& AddIpv6Addresses(const Aws::String& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; }
94 inline AssignIpv6AddressesRequest& AddIpv6Addresses(Aws::String&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(std::move(value)); return *this; }
95 inline AssignIpv6AddressesRequest& AddIpv6Addresses(const char* value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; }
97
99
106 inline int GetIpv6AddressCount() const{ return m_ipv6AddressCount; }
107 inline bool Ipv6AddressCountHasBeenSet() const { return m_ipv6AddressCountHasBeenSet; }
108 inline void SetIpv6AddressCount(int value) { m_ipv6AddressCountHasBeenSet = true; m_ipv6AddressCount = value; }
109 inline AssignIpv6AddressesRequest& WithIpv6AddressCount(int value) { SetIpv6AddressCount(value); return *this;}
111 private:
112
113 int m_ipv6PrefixCount;
114 bool m_ipv6PrefixCountHasBeenSet = false;
115
116 Aws::Vector<Aws::String> m_ipv6Prefixes;
117 bool m_ipv6PrefixesHasBeenSet = false;
118
119 Aws::String m_networkInterfaceId;
120 bool m_networkInterfaceIdHasBeenSet = false;
121
122 Aws::Vector<Aws::String> m_ipv6Addresses;
123 bool m_ipv6AddressesHasBeenSet = false;
124
125 int m_ipv6AddressCount;
126 bool m_ipv6AddressCountHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace EC2
131} // namespace Aws
AssignIpv6AddressesRequest & AddIpv6Prefixes(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AssignIpv6AddressesRequest & WithIpv6Prefixes(Aws::Vector< Aws::String > &&value)
AssignIpv6AddressesRequest & AddIpv6Prefixes(Aws::String &&value)
AssignIpv6AddressesRequest & WithNetworkInterfaceId(const char *value)
const Aws::Vector< Aws::String > & GetIpv6Prefixes() const
AssignIpv6AddressesRequest & WithNetworkInterfaceId(Aws::String &&value)
AssignIpv6AddressesRequest & AddIpv6Addresses(Aws::String &&value)
void SetIpv6Prefixes(const Aws::Vector< Aws::String > &value)
AssignIpv6AddressesRequest & AddIpv6Addresses(const char *value)
AssignIpv6AddressesRequest & AddIpv6Addresses(const Aws::String &value)
AssignIpv6AddressesRequest & WithIpv6Addresses(Aws::Vector< Aws::String > &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AssignIpv6AddressesRequest & WithIpv6Prefixes(const Aws::Vector< Aws::String > &value)
AssignIpv6AddressesRequest & WithNetworkInterfaceId(const Aws::String &value)
AssignIpv6AddressesRequest & WithIpv6AddressCount(int value)
void SetIpv6Addresses(Aws::Vector< Aws::String > &&value)
AssignIpv6AddressesRequest & WithIpv6PrefixCount(int value)
const Aws::Vector< Aws::String > & GetIpv6Addresses() const
void SetIpv6Addresses(const Aws::Vector< Aws::String > &value)
AssignIpv6AddressesRequest & AddIpv6Prefixes(const char *value)
void SetIpv6Prefixes(Aws::Vector< Aws::String > &&value)
AssignIpv6AddressesRequest & WithIpv6Addresses(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