AWS SDK for C++  1.9.71
AWS SDK for C++
CarrierGateway.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <aws/ec2/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
28 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetCarrierGatewayId() const{ return m_carrierGatewayId; }
49 
53  inline bool CarrierGatewayIdHasBeenSet() const { return m_carrierGatewayIdHasBeenSet; }
54 
58  inline void SetCarrierGatewayId(const Aws::String& value) { m_carrierGatewayIdHasBeenSet = true; m_carrierGatewayId = value; }
59 
63  inline void SetCarrierGatewayId(Aws::String&& value) { m_carrierGatewayIdHasBeenSet = true; m_carrierGatewayId = std::move(value); }
64 
68  inline void SetCarrierGatewayId(const char* value) { m_carrierGatewayIdHasBeenSet = true; m_carrierGatewayId.assign(value); }
69 
73  inline CarrierGateway& WithCarrierGatewayId(const Aws::String& value) { SetCarrierGatewayId(value); return *this;}
74 
78  inline CarrierGateway& WithCarrierGatewayId(Aws::String&& value) { SetCarrierGatewayId(std::move(value)); return *this;}
79 
83  inline CarrierGateway& WithCarrierGatewayId(const char* value) { SetCarrierGatewayId(value); return *this;}
84 
85 
89  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
90 
94  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
95 
99  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
100 
104  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
105 
109  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
110 
114  inline CarrierGateway& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
115 
119  inline CarrierGateway& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
120 
124  inline CarrierGateway& WithVpcId(const char* value) { SetVpcId(value); return *this;}
125 
126 
130  inline const CarrierGatewayState& GetState() const{ return m_state; }
131 
135  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
136 
140  inline void SetState(const CarrierGatewayState& value) { m_stateHasBeenSet = true; m_state = value; }
141 
145  inline void SetState(CarrierGatewayState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
146 
150  inline CarrierGateway& WithState(const CarrierGatewayState& value) { SetState(value); return *this;}
151 
155  inline CarrierGateway& WithState(CarrierGatewayState&& value) { SetState(std::move(value)); return *this;}
156 
157 
161  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
162 
166  inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
167 
171  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
172 
176  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
177 
181  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
182 
186  inline CarrierGateway& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
187 
191  inline CarrierGateway& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
192 
196  inline CarrierGateway& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
197 
198 
202  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
203 
207  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
208 
212  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
213 
217  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
218 
222  inline CarrierGateway& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
223 
227  inline CarrierGateway& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
228 
232  inline CarrierGateway& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
233 
237  inline CarrierGateway& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
238 
239  private:
240 
241  Aws::String m_carrierGatewayId;
242  bool m_carrierGatewayIdHasBeenSet;
243 
244  Aws::String m_vpcId;
245  bool m_vpcIdHasBeenSet;
246 
247  CarrierGatewayState m_state;
248  bool m_stateHasBeenSet;
249 
250  Aws::String m_ownerId;
251  bool m_ownerIdHasBeenSet;
252 
253  Aws::Vector<Tag> m_tags;
254  bool m_tagsHasBeenSet;
255  };
256 
257 } // namespace Model
258 } // namespace EC2
259 } // namespace Aws
Aws::EC2::Model::CarrierGateway::SetCarrierGatewayId
void SetCarrierGatewayId(const char *value)
Definition: CarrierGateway.h:68
Aws::EC2::Model::CarrierGateway::WithCarrierGatewayId
CarrierGateway & WithCarrierGatewayId(const char *value)
Definition: CarrierGateway.h:83
Aws::EC2::Model::CarrierGateway::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: CarrierGateway.h:176
Aws::EC2::Model::CarrierGateway::GetVpcId
const Aws::String & GetVpcId() const
Definition: CarrierGateway.h:89
Aws::EC2::Model::CarrierGateway::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: CarrierGateway.h:161
Aws::EC2::Model::CarrierGateway::AddTags
CarrierGateway & AddTags(const Tag &value)
Definition: CarrierGateway.h:232
Aws::EC2::Model::Tag
Definition: Tag.h:32
CarrierGatewayState.h
Aws::EC2::Model::CarrierGateway::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CarrierGateway.h:202
Aws::EC2::Model::CarrierGateway::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: CarrierGateway.h:104
Aws::EC2::Model::CarrierGateway::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CarrierGateway.h:207
Aws::EC2::Model::CarrierGateway::CarrierGatewayIdHasBeenSet
bool CarrierGatewayIdHasBeenSet() const
Definition: CarrierGateway.h:53
Aws::EC2::Model::CarrierGateway::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CarrierGateway::CarrierGateway
CarrierGateway(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CarrierGateway::WithTags
CarrierGateway & WithTags(const Aws::Vector< Tag > &value)
Definition: CarrierGateway.h:222
AWSStreamFwd.h
AWSVector.h
Tag.h
Aws::EC2::Model::CarrierGateway::SetCarrierGatewayId
void SetCarrierGatewayId(Aws::String &&value)
Definition: CarrierGateway.h:63
Aws::EC2::Model::CarrierGateway::SetCarrierGatewayId
void SetCarrierGatewayId(const Aws::String &value)
Definition: CarrierGateway.h:58
Aws::EC2::Model::CarrierGateway
Definition: CarrierGateway.h:35
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::CarrierGateway::CarrierGateway
CarrierGateway()
Aws::EC2::Model::CarrierGateway::SetOwnerId
void SetOwnerId(const char *value)
Definition: CarrierGateway.h:181
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::CarrierGateway::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::CarrierGateway::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: CarrierGateway.h:171
Aws::EC2::Model::CarrierGateway::operator=
CarrierGateway & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::EC2::Model::CarrierGateway::WithCarrierGatewayId
CarrierGateway & WithCarrierGatewayId(Aws::String &&value)
Definition: CarrierGateway.h:78
Aws::EC2::Model::CarrierGateway::WithState
CarrierGateway & WithState(CarrierGatewayState &&value)
Definition: CarrierGateway.h:155
Aws::EC2::Model::CarrierGateway::AddTags
CarrierGateway & AddTags(Tag &&value)
Definition: CarrierGateway.h:237
Aws::EC2::Model::CarrierGateway::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: CarrierGateway.h:99
Aws::EC2::Model::CarrierGateway::SetState
void SetState(CarrierGatewayState &&value)
Definition: CarrierGateway.h:145
Aws::EC2::Model::CarrierGateway::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CarrierGateway.h:212
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CarrierGateway::WithOwnerId
CarrierGateway & WithOwnerId(Aws::String &&value)
Definition: CarrierGateway.h:191
Aws::EC2::Model::CarrierGateway::WithOwnerId
CarrierGateway & WithOwnerId(const char *value)
Definition: CarrierGateway.h:196
Aws::EC2::Model::CarrierGateway::WithVpcId
CarrierGateway & WithVpcId(const Aws::String &value)
Definition: CarrierGateway.h:114
Aws::EC2::Model::CarrierGateway::OwnerIdHasBeenSet
bool OwnerIdHasBeenSet() const
Definition: CarrierGateway.h:166
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::CarrierGateway::WithVpcId
CarrierGateway & WithVpcId(const char *value)
Definition: CarrierGateway.h:124
Aws::EC2::Model::CarrierGateway::WithCarrierGatewayId
CarrierGateway & WithCarrierGatewayId(const Aws::String &value)
Definition: CarrierGateway.h:73
Aws::EC2::Model::CarrierGateway::SetVpcId
void SetVpcId(const char *value)
Definition: CarrierGateway.h:109
Aws::EC2::Model::CarrierGateway::SetState
void SetState(const CarrierGatewayState &value)
Definition: CarrierGateway.h:140
Aws::EC2::Model::CarrierGateway::WithTags
CarrierGateway & WithTags(Aws::Vector< Tag > &&value)
Definition: CarrierGateway.h:227
EC2_EXPORTS.h
Aws::EC2::Model::CarrierGateway::StateHasBeenSet
bool StateHasBeenSet() const
Definition: CarrierGateway.h:135
Aws::EC2::Model::CarrierGateway::WithVpcId
CarrierGateway & WithVpcId(Aws::String &&value)
Definition: CarrierGateway.h:119
Aws::EC2::Model::CarrierGateway::WithOwnerId
CarrierGateway & WithOwnerId(const Aws::String &value)
Definition: CarrierGateway.h:186
Aws::EC2::Model::CarrierGatewayState
CarrierGatewayState
Definition: CarrierGatewayState.h:17
Aws::EC2::Model::CarrierGateway::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: CarrierGateway.h:94
Aws::EC2::Model::CarrierGateway::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CarrierGateway.h:217
Aws::EC2::Model::CarrierGateway::GetCarrierGatewayId
const Aws::String & GetCarrierGatewayId() const
Definition: CarrierGateway.h:48
Aws::EC2::Model::CarrierGateway::GetState
const CarrierGatewayState & GetState() const
Definition: CarrierGateway.h:130
Aws::EC2::Model::CarrierGateway::WithState
CarrierGateway & WithState(const CarrierGatewayState &value)
Definition: CarrierGateway.h:150