AWS SDK for C++  1.9.107
AWS SDK for C++
InternetGatewayAttachment.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
49  inline const AttachmentStatus& GetState() const{ return m_state; }
50 
56  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
57 
63  inline void SetState(const AttachmentStatus& value) { m_stateHasBeenSet = true; m_state = value; }
64 
70  inline void SetState(AttachmentStatus&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
71 
77  inline InternetGatewayAttachment& WithState(const AttachmentStatus& value) { SetState(value); return *this;}
78 
84  inline InternetGatewayAttachment& WithState(AttachmentStatus&& value) { SetState(std::move(value)); return *this;}
85 
86 
90  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
91 
95  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
96 
100  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
101 
105  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
106 
110  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
111 
115  inline InternetGatewayAttachment& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
116 
120  inline InternetGatewayAttachment& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
121 
125  inline InternetGatewayAttachment& WithVpcId(const char* value) { SetVpcId(value); return *this;}
126 
127  private:
128 
129  AttachmentStatus m_state;
130  bool m_stateHasBeenSet;
131 
132  Aws::String m_vpcId;
133  bool m_vpcIdHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace EC2
138 } // namespace Aws
Aws::EC2::Model::InternetGatewayAttachment::SetVpcId
void SetVpcId(const char *value)
Definition: InternetGatewayAttachment.h:110
Aws::EC2::Model::InternetGatewayAttachment::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::InternetGatewayAttachment::operator=
InternetGatewayAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InternetGatewayAttachment::WithVpcId
InternetGatewayAttachment & WithVpcId(Aws::String &&value)
Definition: InternetGatewayAttachment.h:120
Aws::EC2::Model::AttachmentStatus
AttachmentStatus
Definition: AttachmentStatus.h:17
Aws::EC2::Model::InternetGatewayAttachment::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: InternetGatewayAttachment.h:100
Aws::EC2::Model::InternetGatewayAttachment::GetState
const AttachmentStatus & GetState() const
Definition: InternetGatewayAttachment.h:49
Aws::EC2::Model::InternetGatewayAttachment::SetState
void SetState(AttachmentStatus &&value)
Definition: InternetGatewayAttachment.h:70
Aws::EC2::Model::InternetGatewayAttachment::WithVpcId
InternetGatewayAttachment & WithVpcId(const Aws::String &value)
Definition: InternetGatewayAttachment.h:115
Aws::EC2::Model::InternetGatewayAttachment::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: InternetGatewayAttachment.h:95
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::InternetGatewayAttachment::SetState
void SetState(const AttachmentStatus &value)
Definition: InternetGatewayAttachment.h:63
Aws::EC2::Model::InternetGatewayAttachment::StateHasBeenSet
bool StateHasBeenSet() const
Definition: InternetGatewayAttachment.h:56
AWSStreamFwd.h
Aws::EC2::Model::InternetGatewayAttachment
Definition: InternetGatewayAttachment.h:34
Aws::EC2::Model::InternetGatewayAttachment::WithState
InternetGatewayAttachment & WithState(AttachmentStatus &&value)
Definition: InternetGatewayAttachment.h:84
Aws::EC2::Model::InternetGatewayAttachment::GetVpcId
const Aws::String & GetVpcId() const
Definition: InternetGatewayAttachment.h:90
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
AttachmentStatus.h
Aws::EC2::Model::InternetGatewayAttachment::WithState
InternetGatewayAttachment & WithState(const AttachmentStatus &value)
Definition: InternetGatewayAttachment.h:77
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::InternetGatewayAttachment::InternetGatewayAttachment
InternetGatewayAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InternetGatewayAttachment::InternetGatewayAttachment
InternetGatewayAttachment()
AWSString.h
Aws::EC2::Model::InternetGatewayAttachment::WithVpcId
InternetGatewayAttachment & WithVpcId(const char *value)
Definition: InternetGatewayAttachment.h:125
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::InternetGatewayAttachment::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: InternetGatewayAttachment.h:105
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
EC2_EXPORTS.h
Aws::EC2::Model::InternetGatewayAttachment::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const