AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InternetGatewayAttachment.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/AttachmentStatus.h>
10#include <aws/core/utils/memory/stl/AWSString.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:
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
50 inline const AttachmentStatus& GetState() const{ return m_state; }
51 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
52 inline void SetState(const AttachmentStatus& value) { m_stateHasBeenSet = true; m_state = value; }
53 inline void SetState(AttachmentStatus&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
54 inline InternetGatewayAttachment& WithState(const AttachmentStatus& value) { SetState(value); return *this;}
55 inline InternetGatewayAttachment& WithState(AttachmentStatus&& value) { SetState(std::move(value)); return *this;}
57
59
62 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
63 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
64 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
65 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
66 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
67 inline InternetGatewayAttachment& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
68 inline InternetGatewayAttachment& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
69 inline InternetGatewayAttachment& WithVpcId(const char* value) { SetVpcId(value); return *this;}
71 private:
72
73 AttachmentStatus m_state;
74 bool m_stateHasBeenSet = false;
75
76 Aws::String m_vpcId;
77 bool m_vpcIdHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace EC2
82} // namespace Aws
InternetGatewayAttachment & WithState(AttachmentStatus &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InternetGatewayAttachment & WithVpcId(Aws::String &&value)
InternetGatewayAttachment & WithVpcId(const char *value)
InternetGatewayAttachment & WithState(const AttachmentStatus &value)
InternetGatewayAttachment & WithVpcId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API InternetGatewayAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API InternetGatewayAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetState(const AttachmentStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream