AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NetworkInterface.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Batch {
20namespace Model {
21
29 public:
30 AWS_BATCH_API NetworkInterface() = default;
33 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
40 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
41 template <typename AttachmentIdT = Aws::String>
42 void SetAttachmentId(AttachmentIdT&& value) {
43 m_attachmentIdHasBeenSet = true;
44 m_attachmentId = std::forward<AttachmentIdT>(value);
45 }
46 template <typename AttachmentIdT = Aws::String>
47 NetworkInterface& WithAttachmentId(AttachmentIdT&& value) {
48 SetAttachmentId(std::forward<AttachmentIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetIpv6Address() const { return m_ipv6Address; }
58 inline bool Ipv6AddressHasBeenSet() const { return m_ipv6AddressHasBeenSet; }
59 template <typename Ipv6AddressT = Aws::String>
60 void SetIpv6Address(Ipv6AddressT&& value) {
61 m_ipv6AddressHasBeenSet = true;
62 m_ipv6Address = std::forward<Ipv6AddressT>(value);
63 }
64 template <typename Ipv6AddressT = Aws::String>
65 NetworkInterface& WithIpv6Address(Ipv6AddressT&& value) {
66 SetIpv6Address(std::forward<Ipv6AddressT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetPrivateIpv4Address() const { return m_privateIpv4Address; }
76 inline bool PrivateIpv4AddressHasBeenSet() const { return m_privateIpv4AddressHasBeenSet; }
77 template <typename PrivateIpv4AddressT = Aws::String>
78 void SetPrivateIpv4Address(PrivateIpv4AddressT&& value) {
79 m_privateIpv4AddressHasBeenSet = true;
80 m_privateIpv4Address = std::forward<PrivateIpv4AddressT>(value);
81 }
82 template <typename PrivateIpv4AddressT = Aws::String>
83 NetworkInterface& WithPrivateIpv4Address(PrivateIpv4AddressT&& value) {
84 SetPrivateIpv4Address(std::forward<PrivateIpv4AddressT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_attachmentId;
90
91 Aws::String m_ipv6Address;
92
93 Aws::String m_privateIpv4Address;
94 bool m_attachmentIdHasBeenSet = false;
95 bool m_ipv6AddressHasBeenSet = false;
96 bool m_privateIpv4AddressHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Batch
101} // namespace Aws
void SetPrivateIpv4Address(PrivateIpv4AddressT &&value)
NetworkInterface & WithAttachmentId(AttachmentIdT &&value)
void SetIpv6Address(Ipv6AddressT &&value)
AWS_BATCH_API NetworkInterface(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAttachmentId() const
AWS_BATCH_API NetworkInterface()=default
NetworkInterface & WithIpv6Address(Ipv6AddressT &&value)
NetworkInterface & WithPrivateIpv4Address(PrivateIpv4AddressT &&value)
const Aws::String & GetPrivateIpv4Address() const
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetIpv6Address() const
AWS_BATCH_API NetworkInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAttachmentId(AttachmentIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue