AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
NatGatewayAttachedAppliance.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/NatGatewayApplianceModifyState.h>
11#include <aws/ec2/model/NatGatewayApplianceState.h>
12#include <aws/ec2/model/NatGatewayApplianceType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
33 public:
34 AWS_EC2_API NatGatewayAttachedAppliance() = default;
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
46 inline NatGatewayApplianceType GetType() const { return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(NatGatewayApplianceType value) {
49 m_typeHasBeenSet = true;
50 m_type = value;
51 }
53 SetType(value);
54 return *this;
55 }
57
59
63 inline const Aws::String& GetApplianceArn() const { return m_applianceArn; }
64 inline bool ApplianceArnHasBeenSet() const { return m_applianceArnHasBeenSet; }
65 template <typename ApplianceArnT = Aws::String>
66 void SetApplianceArn(ApplianceArnT&& value) {
67 m_applianceArnHasBeenSet = true;
68 m_applianceArn = std::forward<ApplianceArnT>(value);
69 }
70 template <typename ApplianceArnT = Aws::String>
72 SetApplianceArn(std::forward<ApplianceArnT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
83 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
84 template <typename VpcEndpointIdT = Aws::String>
85 void SetVpcEndpointId(VpcEndpointIdT&& value) {
86 m_vpcEndpointIdHasBeenSet = true;
87 m_vpcEndpointId = std::forward<VpcEndpointIdT>(value);
88 }
89 template <typename VpcEndpointIdT = Aws::String>
91 SetVpcEndpointId(std::forward<VpcEndpointIdT>(value));
92 return *this;
93 }
95
97
100 inline NatGatewayApplianceState GetAttachmentState() const { return m_attachmentState; }
101 inline bool AttachmentStateHasBeenSet() const { return m_attachmentStateHasBeenSet; }
103 m_attachmentStateHasBeenSet = true;
104 m_attachmentState = value;
105 }
107 SetAttachmentState(value);
108 return *this;
109 }
111
113
116 inline NatGatewayApplianceModifyState GetModificationState() const { return m_modificationState; }
117 inline bool ModificationStateHasBeenSet() const { return m_modificationStateHasBeenSet; }
119 m_modificationStateHasBeenSet = true;
120 m_modificationState = value;
121 }
124 return *this;
125 }
127
129
133 inline const Aws::String& GetFailureCode() const { return m_failureCode; }
134 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
135 template <typename FailureCodeT = Aws::String>
136 void SetFailureCode(FailureCodeT&& value) {
137 m_failureCodeHasBeenSet = true;
138 m_failureCode = std::forward<FailureCodeT>(value);
139 }
140 template <typename FailureCodeT = Aws::String>
142 SetFailureCode(std::forward<FailureCodeT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
153 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
154 template <typename FailureMessageT = Aws::String>
155 void SetFailureMessage(FailureMessageT&& value) {
156 m_failureMessageHasBeenSet = true;
157 m_failureMessage = std::forward<FailureMessageT>(value);
158 }
159 template <typename FailureMessageT = Aws::String>
161 SetFailureMessage(std::forward<FailureMessageT>(value));
162 return *this;
163 }
165 private:
167
168 Aws::String m_applianceArn;
169
170 Aws::String m_vpcEndpointId;
171
173
175
176 Aws::String m_failureCode;
177
178 Aws::String m_failureMessage;
179 bool m_typeHasBeenSet = false;
180 bool m_applianceArnHasBeenSet = false;
181 bool m_vpcEndpointIdHasBeenSet = false;
182 bool m_attachmentStateHasBeenSet = false;
183 bool m_modificationStateHasBeenSet = false;
184 bool m_failureCodeHasBeenSet = false;
185 bool m_failureMessageHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace EC2
190} // namespace Aws
NatGatewayAttachedAppliance & WithAttachmentState(NatGatewayApplianceState value)
NatGatewayApplianceModifyState GetModificationState() const
NatGatewayAttachedAppliance & WithModificationState(NatGatewayApplianceModifyState value)
NatGatewayAttachedAppliance & WithVpcEndpointId(VpcEndpointIdT &&value)
AWS_EC2_API NatGatewayAttachedAppliance()=default
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
NatGatewayAttachedAppliance & WithFailureCode(FailureCodeT &&value)
void SetModificationState(NatGatewayApplianceModifyState value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
NatGatewayAttachedAppliance & WithApplianceArn(ApplianceArnT &&value)
AWS_EC2_API NatGatewayAttachedAppliance & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
NatGatewayAttachedAppliance & WithFailureMessage(FailureMessageT &&value)
void SetAttachmentState(NatGatewayApplianceState value)
AWS_EC2_API NatGatewayAttachedAppliance(const Aws::Utils::Xml::XmlNode &xmlNode)
NatGatewayAttachedAppliance & WithType(NatGatewayApplianceType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream