AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename VpcIdT = Aws::String>
51 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
52 template<typename VpcIdT = Aws::String>
53 VpcAttachment& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
55
57
60 inline AttachmentStatus GetState() const { return m_state; }
61 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
62 inline void SetState(AttachmentStatus value) { m_stateHasBeenSet = true; m_state = value; }
63 inline VpcAttachment& WithState(AttachmentStatus value) { SetState(value); return *this;}
65 private:
66
67 Aws::String m_vpcId;
68 bool m_vpcIdHasBeenSet = false;
69
71 bool m_stateHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace EC2
76} // 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