AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SecurityGroupVpcAssociation.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/SecurityGroupVpcAssociationState.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
35 {
36 public:
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetGroupId() const{ return m_groupId; }
50 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
51 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
52 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
53 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
54 inline SecurityGroupVpcAssociation& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
55 inline SecurityGroupVpcAssociation& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
56 inline SecurityGroupVpcAssociation& WithGroupId(const char* value) { SetGroupId(value); return *this;}
58
60
63 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
64 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
65 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
66 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
67 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
68 inline SecurityGroupVpcAssociation& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
69 inline SecurityGroupVpcAssociation& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
70 inline SecurityGroupVpcAssociation& WithVpcId(const char* value) { SetVpcId(value); return *this;}
72
74
77 inline const Aws::String& GetVpcOwnerId() const{ return m_vpcOwnerId; }
78 inline bool VpcOwnerIdHasBeenSet() const { return m_vpcOwnerIdHasBeenSet; }
79 inline void SetVpcOwnerId(const Aws::String& value) { m_vpcOwnerIdHasBeenSet = true; m_vpcOwnerId = value; }
80 inline void SetVpcOwnerId(Aws::String&& value) { m_vpcOwnerIdHasBeenSet = true; m_vpcOwnerId = std::move(value); }
81 inline void SetVpcOwnerId(const char* value) { m_vpcOwnerIdHasBeenSet = true; m_vpcOwnerId.assign(value); }
82 inline SecurityGroupVpcAssociation& WithVpcOwnerId(const Aws::String& value) { SetVpcOwnerId(value); return *this;}
83 inline SecurityGroupVpcAssociation& WithVpcOwnerId(Aws::String&& value) { SetVpcOwnerId(std::move(value)); return *this;}
84 inline SecurityGroupVpcAssociation& WithVpcOwnerId(const char* value) { SetVpcOwnerId(value); return *this;}
86
88
91 inline const SecurityGroupVpcAssociationState& GetState() const{ return m_state; }
92 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
93 inline void SetState(const SecurityGroupVpcAssociationState& value) { m_stateHasBeenSet = true; m_state = value; }
94 inline void SetState(SecurityGroupVpcAssociationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
96 inline SecurityGroupVpcAssociation& WithState(SecurityGroupVpcAssociationState&& value) { SetState(std::move(value)); return *this;}
98
100
103 inline const Aws::String& GetStateReason() const{ return m_stateReason; }
104 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
105 inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
106 inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
107 inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
108 inline SecurityGroupVpcAssociation& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
109 inline SecurityGroupVpcAssociation& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
110 inline SecurityGroupVpcAssociation& WithStateReason(const char* value) { SetStateReason(value); return *this;}
112 private:
113
114 Aws::String m_groupId;
115 bool m_groupIdHasBeenSet = false;
116
117 Aws::String m_vpcId;
118 bool m_vpcIdHasBeenSet = false;
119
120 Aws::String m_vpcOwnerId;
121 bool m_vpcOwnerIdHasBeenSet = false;
122
124 bool m_stateHasBeenSet = false;
125
126 Aws::String m_stateReason;
127 bool m_stateReasonHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace EC2
132} // namespace Aws
SecurityGroupVpcAssociation & WithStateReason(const char *value)
void SetState(const SecurityGroupVpcAssociationState &value)
SecurityGroupVpcAssociation & WithVpcId(const Aws::String &value)
void SetState(SecurityGroupVpcAssociationState &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SecurityGroupVpcAssociation & WithState(SecurityGroupVpcAssociationState &&value)
SecurityGroupVpcAssociation & WithGroupId(const Aws::String &value)
SecurityGroupVpcAssociation & WithGroupId(Aws::String &&value)
const SecurityGroupVpcAssociationState & GetState() const
SecurityGroupVpcAssociation & WithVpcOwnerId(Aws::String &&value)
SecurityGroupVpcAssociation & WithGroupId(const char *value)
SecurityGroupVpcAssociation & WithStateReason(Aws::String &&value)
SecurityGroupVpcAssociation & WithState(const SecurityGroupVpcAssociationState &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SecurityGroupVpcAssociation & WithVpcOwnerId(const Aws::String &value)
SecurityGroupVpcAssociation & WithStateReason(const Aws::String &value)
SecurityGroupVpcAssociation & WithVpcId(Aws::String &&value)
AWS_EC2_API SecurityGroupVpcAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API SecurityGroupVpcAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
SecurityGroupVpcAssociation & WithVpcOwnerId(const char *value)
SecurityGroupVpcAssociation & WithVpcId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream