AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VpcAttachment.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/AttachmentStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EC2_API VpcAttachment();
37 AWS_EC2_API VpcAttachment(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_EC2_API VpcAttachment& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
49 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
50 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
51 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
52 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
53 inline VpcAttachment& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
54 inline VpcAttachment& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
55 inline VpcAttachment& WithVpcId(const char* value) { SetVpcId(value); return *this;}
57
59
62 inline const AttachmentStatus& GetState() const{ return m_state; }
63 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
64 inline void SetState(const AttachmentStatus& value) { m_stateHasBeenSet = true; m_state = value; }
65 inline void SetState(AttachmentStatus&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
66 inline VpcAttachment& WithState(const AttachmentStatus& value) { SetState(value); return *this;}
67 inline VpcAttachment& WithState(AttachmentStatus&& value) { SetState(std::move(value)); return *this;}
69 private:
70
71 Aws::String m_vpcId;
72 bool m_vpcIdHasBeenSet = false;
73
74 AttachmentStatus m_state;
75 bool m_stateHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace EC2
80} // namespace Aws
void SetVpcId(const Aws::String &value)
VpcAttachment & WithVpcId(const char *value)
VpcAttachment & WithVpcId(Aws::String &&value)
VpcAttachment & WithVpcId(const Aws::String &value)
void SetVpcId(const char *value)
void SetState(AttachmentStatus &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetVpcId(Aws::String &&value)
AWS_EC2_API VpcAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetVpcId() const
AWS_EC2_API VpcAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
VpcAttachment & WithState(const AttachmentStatus &value)
void SetState(const AttachmentStatus &value)
VpcAttachment & WithState(AttachmentStatus &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const AttachmentStatus & GetState() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream