AWS SDK for C++  1.9.153
AWS SDK for C++
NetworkInterface.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ECS
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetAttachmentId() const{ return m_attachmentId; }
45 
49  inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
50 
54  inline void SetAttachmentId(const Aws::String& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = value; }
55 
59  inline void SetAttachmentId(Aws::String&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::move(value); }
60 
64  inline void SetAttachmentId(const char* value) { m_attachmentIdHasBeenSet = true; m_attachmentId.assign(value); }
65 
69  inline NetworkInterface& WithAttachmentId(const Aws::String& value) { SetAttachmentId(value); return *this;}
70 
74  inline NetworkInterface& WithAttachmentId(Aws::String&& value) { SetAttachmentId(std::move(value)); return *this;}
75 
79  inline NetworkInterface& WithAttachmentId(const char* value) { SetAttachmentId(value); return *this;}
80 
81 
85  inline const Aws::String& GetPrivateIpv4Address() const{ return m_privateIpv4Address; }
86 
90  inline bool PrivateIpv4AddressHasBeenSet() const { return m_privateIpv4AddressHasBeenSet; }
91 
95  inline void SetPrivateIpv4Address(const Aws::String& value) { m_privateIpv4AddressHasBeenSet = true; m_privateIpv4Address = value; }
96 
100  inline void SetPrivateIpv4Address(Aws::String&& value) { m_privateIpv4AddressHasBeenSet = true; m_privateIpv4Address = std::move(value); }
101 
105  inline void SetPrivateIpv4Address(const char* value) { m_privateIpv4AddressHasBeenSet = true; m_privateIpv4Address.assign(value); }
106 
110  inline NetworkInterface& WithPrivateIpv4Address(const Aws::String& value) { SetPrivateIpv4Address(value); return *this;}
111 
115  inline NetworkInterface& WithPrivateIpv4Address(Aws::String&& value) { SetPrivateIpv4Address(std::move(value)); return *this;}
116 
120  inline NetworkInterface& WithPrivateIpv4Address(const char* value) { SetPrivateIpv4Address(value); return *this;}
121 
122 
126  inline const Aws::String& GetIpv6Address() const{ return m_ipv6Address; }
127 
131  inline bool Ipv6AddressHasBeenSet() const { return m_ipv6AddressHasBeenSet; }
132 
136  inline void SetIpv6Address(const Aws::String& value) { m_ipv6AddressHasBeenSet = true; m_ipv6Address = value; }
137 
141  inline void SetIpv6Address(Aws::String&& value) { m_ipv6AddressHasBeenSet = true; m_ipv6Address = std::move(value); }
142 
146  inline void SetIpv6Address(const char* value) { m_ipv6AddressHasBeenSet = true; m_ipv6Address.assign(value); }
147 
151  inline NetworkInterface& WithIpv6Address(const Aws::String& value) { SetIpv6Address(value); return *this;}
152 
156  inline NetworkInterface& WithIpv6Address(Aws::String&& value) { SetIpv6Address(std::move(value)); return *this;}
157 
161  inline NetworkInterface& WithIpv6Address(const char* value) { SetIpv6Address(value); return *this;}
162 
163  private:
164 
165  Aws::String m_attachmentId;
166  bool m_attachmentIdHasBeenSet;
167 
168  Aws::String m_privateIpv4Address;
169  bool m_privateIpv4AddressHasBeenSet;
170 
171  Aws::String m_ipv6Address;
172  bool m_ipv6AddressHasBeenSet;
173  };
174 
175 } // namespace Model
176 } // namespace ECS
177 } // namespace Aws
Aws::ECS::Model::NetworkInterface::SetAttachmentId
void SetAttachmentId(const Aws::String &value)
Definition: NetworkInterface.h:54
Aws::ECS::Model::NetworkInterface::WithPrivateIpv4Address
NetworkInterface & WithPrivateIpv4Address(const char *value)
Definition: NetworkInterface.h:120
Aws::ECS::Model::NetworkInterface::WithAttachmentId
NetworkInterface & WithAttachmentId(const char *value)
Definition: NetworkInterface.h:79
Aws::ECS::Model::NetworkInterface::WithAttachmentId
NetworkInterface & WithAttachmentId(Aws::String &&value)
Definition: NetworkInterface.h:74
Aws::ECS::Model::NetworkInterface::WithAttachmentId
NetworkInterface & WithAttachmentId(const Aws::String &value)
Definition: NetworkInterface.h:69
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::NetworkInterface::SetIpv6Address
void SetIpv6Address(const Aws::String &value)
Definition: NetworkInterface.h:136
Aws::ECS::Model::NetworkInterface::GetPrivateIpv4Address
const Aws::String & GetPrivateIpv4Address() const
Definition: NetworkInterface.h:85
Aws::ECS::Model::NetworkInterface::SetAttachmentId
void SetAttachmentId(Aws::String &&value)
Definition: NetworkInterface.h:59
Aws::ECS::Model::NetworkInterface::NetworkInterface
NetworkInterface()
Aws::ECS::Model::NetworkInterface::SetPrivateIpv4Address
void SetPrivateIpv4Address(const Aws::String &value)
Definition: NetworkInterface.h:95
Aws::ECS::Model::NetworkInterface::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::NetworkInterface::operator=
NetworkInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::NetworkInterface::WithPrivateIpv4Address
NetworkInterface & WithPrivateIpv4Address(const Aws::String &value)
Definition: NetworkInterface.h:110
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::NetworkInterface::AttachmentIdHasBeenSet
bool AttachmentIdHasBeenSet() const
Definition: NetworkInterface.h:49
Aws::ECS::Model::NetworkInterface::PrivateIpv4AddressHasBeenSet
bool PrivateIpv4AddressHasBeenSet() const
Definition: NetworkInterface.h:90
Aws::ECS::Model::NetworkInterface::SetAttachmentId
void SetAttachmentId(const char *value)
Definition: NetworkInterface.h:64
Aws::ECS::Model::NetworkInterface::GetIpv6Address
const Aws::String & GetIpv6Address() const
Definition: NetworkInterface.h:126
Aws::ECS::Model::NetworkInterface::WithIpv6Address
NetworkInterface & WithIpv6Address(const char *value)
Definition: NetworkInterface.h:161
Aws::ECS::Model::NetworkInterface
Definition: NetworkInterface.h:33
Aws::ECS::Model::NetworkInterface::Ipv6AddressHasBeenSet
bool Ipv6AddressHasBeenSet() const
Definition: NetworkInterface.h:131
Aws::ECS::Model::NetworkInterface::SetIpv6Address
void SetIpv6Address(Aws::String &&value)
Definition: NetworkInterface.h:141
Aws::ECS::Model::NetworkInterface::WithIpv6Address
NetworkInterface & WithIpv6Address(const Aws::String &value)
Definition: NetworkInterface.h:151
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::NetworkInterface::SetIpv6Address
void SetIpv6Address(const char *value)
Definition: NetworkInterface.h:146
Aws::ECS::Model::NetworkInterface::WithIpv6Address
NetworkInterface & WithIpv6Address(Aws::String &&value)
Definition: NetworkInterface.h:156
Aws::ECS::Model::NetworkInterface::NetworkInterface
NetworkInterface(Aws::Utils::Json::JsonView jsonValue)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::NetworkInterface::GetAttachmentId
const Aws::String & GetAttachmentId() const
Definition: NetworkInterface.h:44
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::NetworkInterface::SetPrivateIpv4Address
void SetPrivateIpv4Address(const char *value)
Definition: NetworkInterface.h:105
Aws::ECS::Model::NetworkInterface::SetPrivateIpv4Address
void SetPrivateIpv4Address(Aws::String &&value)
Definition: NetworkInterface.h:100
Aws::ECS::Model::NetworkInterface::WithPrivateIpv4Address
NetworkInterface & WithPrivateIpv4Address(Aws::String &&value)
Definition: NetworkInterface.h:115
ECS_EXPORTS.h