AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
Attachment.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
10#include <aws/network-firewall/model/AttachmentStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace NetworkFirewall {
21namespace Model {
22
39 public:
40 AWS_NETWORKFIREWALL_API Attachment() = default;
41 AWS_NETWORKFIREWALL_API Attachment(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
42 AWS_NETWORKFIREWALL_API Attachment& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
43 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
44
46
50 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
51 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
52 template <typename SubnetIdT = Aws::String>
53 void SetSubnetId(SubnetIdT&& value) {
54 m_subnetIdHasBeenSet = true;
55 m_subnetId = std::forward<SubnetIdT>(value);
56 }
57 template <typename SubnetIdT = Aws::String>
58 Attachment& WithSubnetId(SubnetIdT&& value) {
59 SetSubnetId(std::forward<SubnetIdT>(value));
60 return *this;
61 }
63
65
71 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
72 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
73 template <typename EndpointIdT = Aws::String>
74 void SetEndpointId(EndpointIdT&& value) {
75 m_endpointIdHasBeenSet = true;
76 m_endpointId = std::forward<EndpointIdT>(value);
77 }
78 template <typename EndpointIdT = Aws::String>
79 Attachment& WithEndpointId(EndpointIdT&& value) {
80 SetEndpointId(std::forward<EndpointIdT>(value));
81 return *this;
82 }
84
86
95 inline AttachmentStatus GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 inline void SetStatus(AttachmentStatus value) {
98 m_statusHasBeenSet = true;
99 m_status = value;
100 }
102 SetStatus(value);
103 return *this;
104 }
106
108
120 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
121 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
122 template <typename StatusMessageT = Aws::String>
123 void SetStatusMessage(StatusMessageT&& value) {
124 m_statusMessageHasBeenSet = true;
125 m_statusMessage = std::forward<StatusMessageT>(value);
126 }
127 template <typename StatusMessageT = Aws::String>
128 Attachment& WithStatusMessage(StatusMessageT&& value) {
129 SetStatusMessage(std::forward<StatusMessageT>(value));
130 return *this;
131 }
133
135
146 inline const Aws::String& GetDnsName() const { return m_dnsName; }
147 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
148 template <typename DnsNameT = Aws::String>
149 void SetDnsName(DnsNameT&& value) {
150 m_dnsNameHasBeenSet = true;
151 m_dnsName = std::forward<DnsNameT>(value);
152 }
153 template <typename DnsNameT = Aws::String>
154 Attachment& WithDnsName(DnsNameT&& value) {
155 SetDnsName(std::forward<DnsNameT>(value));
156 return *this;
157 }
159 private:
160 Aws::String m_subnetId;
161
162 Aws::String m_endpointId;
163
165
166 Aws::String m_statusMessage;
167
168 Aws::String m_dnsName;
169 bool m_subnetIdHasBeenSet = false;
170 bool m_endpointIdHasBeenSet = false;
171 bool m_statusHasBeenSet = false;
172 bool m_statusMessageHasBeenSet = false;
173 bool m_dnsNameHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace NetworkFirewall
178} // namespace Aws
void SetStatusMessage(StatusMessageT &&value)
Definition Attachment.h:123
Attachment & WithDnsName(DnsNameT &&value)
Definition Attachment.h:154
Attachment & WithStatus(AttachmentStatus value)
Definition Attachment.h:101
Attachment & WithSubnetId(SubnetIdT &&value)
Definition Attachment.h:58
AWS_NETWORKFIREWALL_API Attachment(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Attachment & WithEndpointId(EndpointIdT &&value)
Definition Attachment.h:79
const Aws::String & GetStatusMessage() const
Definition Attachment.h:120
void SetStatus(AttachmentStatus value)
Definition Attachment.h:97
const Aws::String & GetSubnetId() const
Definition Attachment.h:50
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetEndpointId() const
Definition Attachment.h:71
void SetEndpointId(EndpointIdT &&value)
Definition Attachment.h:74
AWS_NETWORKFIREWALL_API Attachment()=default
AttachmentStatus GetStatus() const
Definition Attachment.h:95
Attachment & WithStatusMessage(StatusMessageT &&value)
Definition Attachment.h:128
const Aws::String & GetDnsName() const
Definition Attachment.h:146
void SetSubnetId(SubnetIdT &&value)
Definition Attachment.h:53
AWS_NETWORKFIREWALL_API Attachment & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String