AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
NatGatewayAttachment.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/NatGatewayAttachmentStatus.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
31 public:
32 AWS_NETWORKFIREWALL_API NatGatewayAttachment() = default;
33 AWS_NETWORKFIREWALL_API NatGatewayAttachment(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_NETWORKFIREWALL_API NatGatewayAttachment& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const Aws::String& GetNatGatewayId() const { return m_natGatewayId; }
42 inline bool NatGatewayIdHasBeenSet() const { return m_natGatewayIdHasBeenSet; }
43 template <typename NatGatewayIdT = Aws::String>
44 void SetNatGatewayId(NatGatewayIdT&& value) {
45 m_natGatewayIdHasBeenSet = true;
46 m_natGatewayId = std::forward<NatGatewayIdT>(value);
47 }
48 template <typename NatGatewayIdT = Aws::String>
49 NatGatewayAttachment& WithNatGatewayId(NatGatewayIdT&& value) {
50 SetNatGatewayId(std::forward<NatGatewayIdT>(value));
51 return *this;
52 }
54
56
62 inline NatGatewayAttachmentStatus GetStatus() const { return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
65 m_statusHasBeenSet = true;
66 m_status = value;
67 }
69 SetStatus(value);
70 return *this;
71 }
73
75
79 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
80 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
81 template <typename StatusMessageT = Aws::String>
82 void SetStatusMessage(StatusMessageT&& value) {
83 m_statusMessageHasBeenSet = true;
84 m_statusMessage = std::forward<StatusMessageT>(value);
85 }
86 template <typename StatusMessageT = Aws::String>
87 NatGatewayAttachment& WithStatusMessage(StatusMessageT&& value) {
88 SetStatusMessage(std::forward<StatusMessageT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetDnsName() const { return m_dnsName; }
99 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
100 template <typename DnsNameT = Aws::String>
101 void SetDnsName(DnsNameT&& value) {
102 m_dnsNameHasBeenSet = true;
103 m_dnsName = std::forward<DnsNameT>(value);
104 }
105 template <typename DnsNameT = Aws::String>
107 SetDnsName(std::forward<DnsNameT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_natGatewayId;
113
115
116 Aws::String m_statusMessage;
117
118 Aws::String m_dnsName;
119 bool m_natGatewayIdHasBeenSet = false;
120 bool m_statusHasBeenSet = false;
121 bool m_statusMessageHasBeenSet = false;
122 bool m_dnsNameHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace NetworkFirewall
127} // namespace Aws
NatGatewayAttachment & WithDnsName(DnsNameT &&value)
void SetStatus(NatGatewayAttachmentStatus value)
AWS_NETWORKFIREWALL_API NatGatewayAttachment & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
NatGatewayAttachment & WithStatus(NatGatewayAttachmentStatus value)
AWS_NETWORKFIREWALL_API NatGatewayAttachment(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
NatGatewayAttachment & WithNatGatewayId(NatGatewayIdT &&value)
AWS_NETWORKFIREWALL_API NatGatewayAttachment()=default
NatGatewayAttachment & WithStatusMessage(StatusMessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String