AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NetworkInterface.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_ECS_API NetworkInterface() = default;
39
40
42
45 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
46 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
47 template<typename AttachmentIdT = Aws::String>
48 void SetAttachmentId(AttachmentIdT&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::forward<AttachmentIdT>(value); }
49 template<typename AttachmentIdT = Aws::String>
50 NetworkInterface& WithAttachmentId(AttachmentIdT&& value) { SetAttachmentId(std::forward<AttachmentIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetPrivateIpv4Address() const { return m_privateIpv4Address; }
58 inline bool PrivateIpv4AddressHasBeenSet() const { return m_privateIpv4AddressHasBeenSet; }
59 template<typename PrivateIpv4AddressT = Aws::String>
60 void SetPrivateIpv4Address(PrivateIpv4AddressT&& value) { m_privateIpv4AddressHasBeenSet = true; m_privateIpv4Address = std::forward<PrivateIpv4AddressT>(value); }
61 template<typename PrivateIpv4AddressT = Aws::String>
62 NetworkInterface& WithPrivateIpv4Address(PrivateIpv4AddressT&& value) { SetPrivateIpv4Address(std::forward<PrivateIpv4AddressT>(value)); return *this;}
64
66
69 inline const Aws::String& GetIpv6Address() const { return m_ipv6Address; }
70 inline bool Ipv6AddressHasBeenSet() const { return m_ipv6AddressHasBeenSet; }
71 template<typename Ipv6AddressT = Aws::String>
72 void SetIpv6Address(Ipv6AddressT&& value) { m_ipv6AddressHasBeenSet = true; m_ipv6Address = std::forward<Ipv6AddressT>(value); }
73 template<typename Ipv6AddressT = Aws::String>
74 NetworkInterface& WithIpv6Address(Ipv6AddressT&& value) { SetIpv6Address(std::forward<Ipv6AddressT>(value)); return *this;}
76 private:
77
78 Aws::String m_attachmentId;
79 bool m_attachmentIdHasBeenSet = false;
80
81 Aws::String m_privateIpv4Address;
82 bool m_privateIpv4AddressHasBeenSet = false;
83
84 Aws::String m_ipv6Address;
85 bool m_ipv6AddressHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace ECS
90} // namespace Aws
const Aws::String & GetPrivateIpv4Address() const
NetworkInterface & WithIpv6Address(Ipv6AddressT &&value)
const Aws::String & GetIpv6Address() const
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAttachmentId(AttachmentIdT &&value)
const Aws::String & GetAttachmentId() const
NetworkInterface & WithAttachmentId(AttachmentIdT &&value)
AWS_ECS_API NetworkInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIpv6Address(Ipv6AddressT &&value)
void SetPrivateIpv4Address(PrivateIpv4AddressT &&value)
AWS_ECS_API NetworkInterface(Aws::Utils::Json::JsonView jsonValue)
NetworkInterface & WithPrivateIpv4Address(PrivateIpv4AddressT &&value)
AWS_ECS_API NetworkInterface()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue