AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
InternetGatewayAttachment.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/AttachmentStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API InternetGatewayAttachment() = default;
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
44 inline AttachmentStatus GetState() const { return m_state; }
45 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
46 inline void SetState(AttachmentStatus value) {
47 m_stateHasBeenSet = true;
48 m_state = value;
49 }
51 SetState(value);
52 return *this;
53 }
55
57
60 inline const Aws::String& GetVpcId() const { return m_vpcId; }
61 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
62 template <typename VpcIdT = Aws::String>
63 void SetVpcId(VpcIdT&& value) {
64 m_vpcIdHasBeenSet = true;
65 m_vpcId = std::forward<VpcIdT>(value);
66 }
67 template <typename VpcIdT = Aws::String>
69 SetVpcId(std::forward<VpcIdT>(value));
70 return *this;
71 }
73 private:
75
76 Aws::String m_vpcId;
77 bool m_stateHasBeenSet = false;
78 bool m_vpcIdHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace EC2
83} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API InternetGatewayAttachment()=default
InternetGatewayAttachment & WithVpcId(VpcIdT &&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)
InternetGatewayAttachment & WithState(AttachmentStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream