AWS SDK for C++  1.9.68
AWS SDK for C++
VpcAttachment.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 
47  inline const AttachmentStatus& GetState() const{ return m_state; }
48 
52  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
53 
57  inline void SetState(const AttachmentStatus& value) { m_stateHasBeenSet = true; m_state = value; }
58 
62  inline void SetState(AttachmentStatus&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
63 
67  inline VpcAttachment& WithState(const AttachmentStatus& value) { SetState(value); return *this;}
68 
72  inline VpcAttachment& WithState(AttachmentStatus&& value) { SetState(std::move(value)); return *this;}
73 
74 
78  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
79 
83  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
84 
88  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
89 
93  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
94 
98  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
99 
103  inline VpcAttachment& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
104 
108  inline VpcAttachment& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
109 
113  inline VpcAttachment& WithVpcId(const char* value) { SetVpcId(value); return *this;}
114 
115  private:
116 
117  AttachmentStatus m_state;
118  bool m_stateHasBeenSet;
119 
120  Aws::String m_vpcId;
121  bool m_vpcIdHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace EC2
126 } // namespace Aws
Aws::EC2::Model::VpcAttachment::WithState
VpcAttachment & WithState(AttachmentStatus &&value)
Definition: VpcAttachment.h:72
Aws::EC2::Model::VpcAttachment::VpcAttachment
VpcAttachment()
Aws::EC2::Model::AttachmentStatus
AttachmentStatus
Definition: AttachmentStatus.h:17
Aws::EC2::Model::VpcAttachment::WithVpcId
VpcAttachment & WithVpcId(const Aws::String &value)
Definition: VpcAttachment.h:103
Aws::EC2::Model::VpcAttachment::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: VpcAttachment.h:93
Aws::EC2::Model::VpcAttachment
Definition: VpcAttachment.h:34
Aws::EC2::Model::VpcAttachment::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: VpcAttachment.h:88
Aws::EC2::Model::VpcAttachment::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::VpcAttachment::operator=
VpcAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::VpcAttachment::GetVpcId
const Aws::String & GetVpcId() const
Definition: VpcAttachment.h:78
Aws::EC2::Model::VpcAttachment::WithVpcId
VpcAttachment & WithVpcId(const char *value)
Definition: VpcAttachment.h:113
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::VpcAttachment::SetVpcId
void SetVpcId(const char *value)
Definition: VpcAttachment.h:98
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
AttachmentStatus.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::VpcAttachment::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: VpcAttachment.h:83
Aws::EC2::Model::VpcAttachment::WithState
VpcAttachment & WithState(const AttachmentStatus &value)
Definition: VpcAttachment.h:67
Aws::EC2::Model::VpcAttachment::SetState
void SetState(const AttachmentStatus &value)
Definition: VpcAttachment.h:57
Aws::EC2::Model::VpcAttachment::StateHasBeenSet
bool StateHasBeenSet() const
Definition: VpcAttachment.h:52
Aws::EC2::Model::VpcAttachment::VpcAttachment
VpcAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::EC2::Model::VpcAttachment::WithVpcId
VpcAttachment & WithVpcId(Aws::String &&value)
Definition: VpcAttachment.h:108
Aws::EC2::Model::VpcAttachment::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
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::VpcAttachment::GetState
const AttachmentStatus & GetState() const
Definition: VpcAttachment.h:47
Aws::EC2::Model::VpcAttachment::SetState
void SetState(AttachmentStatus &&value)
Definition: VpcAttachment.h:62
EC2_EXPORTS.h