AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
VpcAttachment.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 VpcAttachment() = default;
32 AWS_EC2_API VpcAttachment(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_EC2_API VpcAttachment& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
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
42 inline const Aws::String& GetVpcId() const { return m_vpcId; }
43 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
44 template <typename VpcIdT = Aws::String>
45 void SetVpcId(VpcIdT&& value) {
46 m_vpcIdHasBeenSet = true;
47 m_vpcId = std::forward<VpcIdT>(value);
48 }
49 template <typename VpcIdT = Aws::String>
50 VpcAttachment& WithVpcId(VpcIdT&& value) {
51 SetVpcId(std::forward<VpcIdT>(value));
52 return *this;
53 }
55
57
60 inline AttachmentStatus GetState() const { return m_state; }
61 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
62 inline void SetState(AttachmentStatus value) {
63 m_stateHasBeenSet = true;
64 m_state = value;
65 }
67 SetState(value);
68 return *this;
69 }
71 private:
72 Aws::String m_vpcId;
73
75 bool m_vpcIdHasBeenSet = false;
76 bool m_stateHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace EC2
81} // namespace Aws
void SetVpcId(VpcIdT &&value)
AWS_EC2_API VpcAttachment()=default
void SetState(AttachmentStatus value)
VpcAttachment & WithState(AttachmentStatus value)
AttachmentStatus GetState() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API VpcAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VpcAttachment & WithVpcId(VpcIdT &&value)
const Aws::String & GetVpcId() const
AWS_EC2_API VpcAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream