AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SecurityGroupVpcAssociation.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/SecurityGroupVpcAssociationState.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
31 public:
32 AWS_EC2_API SecurityGroupVpcAssociation() = default;
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetGroupId() const { return m_groupId; }
44 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
45 template <typename GroupIdT = Aws::String>
46 void SetGroupId(GroupIdT&& value) {
47 m_groupIdHasBeenSet = true;
48 m_groupId = std::forward<GroupIdT>(value);
49 }
50 template <typename GroupIdT = Aws::String>
52 SetGroupId(std::forward<GroupIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetVpcId() const { return m_vpcId; }
62 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
63 template <typename VpcIdT = Aws::String>
64 void SetVpcId(VpcIdT&& value) {
65 m_vpcIdHasBeenSet = true;
66 m_vpcId = std::forward<VpcIdT>(value);
67 }
68 template <typename VpcIdT = Aws::String>
70 SetVpcId(std::forward<VpcIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetVpcOwnerId() const { return m_vpcOwnerId; }
80 inline bool VpcOwnerIdHasBeenSet() const { return m_vpcOwnerIdHasBeenSet; }
81 template <typename VpcOwnerIdT = Aws::String>
82 void SetVpcOwnerId(VpcOwnerIdT&& value) {
83 m_vpcOwnerIdHasBeenSet = true;
84 m_vpcOwnerId = std::forward<VpcOwnerIdT>(value);
85 }
86 template <typename VpcOwnerIdT = Aws::String>
88 SetVpcOwnerId(std::forward<VpcOwnerIdT>(value));
89 return *this;
90 }
92
94
97 inline SecurityGroupVpcAssociationState GetState() const { return m_state; }
98 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
100 m_stateHasBeenSet = true;
101 m_state = value;
102 }
104 SetState(value);
105 return *this;
106 }
108
110
113 inline const Aws::String& GetStateReason() const { return m_stateReason; }
114 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
115 template <typename StateReasonT = Aws::String>
116 void SetStateReason(StateReasonT&& value) {
117 m_stateReasonHasBeenSet = true;
118 m_stateReason = std::forward<StateReasonT>(value);
119 }
120 template <typename StateReasonT = Aws::String>
122 SetStateReason(std::forward<StateReasonT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetGroupOwnerId() const { return m_groupOwnerId; }
132 inline bool GroupOwnerIdHasBeenSet() const { return m_groupOwnerIdHasBeenSet; }
133 template <typename GroupOwnerIdT = Aws::String>
134 void SetGroupOwnerId(GroupOwnerIdT&& value) {
135 m_groupOwnerIdHasBeenSet = true;
136 m_groupOwnerId = std::forward<GroupOwnerIdT>(value);
137 }
138 template <typename GroupOwnerIdT = Aws::String>
140 SetGroupOwnerId(std::forward<GroupOwnerIdT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_groupId;
146
147 Aws::String m_vpcId;
148
149 Aws::String m_vpcOwnerId;
150
152
153 Aws::String m_stateReason;
154
155 Aws::String m_groupOwnerId;
156 bool m_groupIdHasBeenSet = false;
157 bool m_vpcIdHasBeenSet = false;
158 bool m_vpcOwnerIdHasBeenSet = false;
159 bool m_stateHasBeenSet = false;
160 bool m_stateReasonHasBeenSet = false;
161 bool m_groupOwnerIdHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace EC2
166} // namespace Aws
SecurityGroupVpcAssociation & WithGroupOwnerId(GroupOwnerIdT &&value)
SecurityGroupVpcAssociationState GetState() const
AWS_EC2_API SecurityGroupVpcAssociation()=default
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SecurityGroupVpcAssociation & WithState(SecurityGroupVpcAssociationState value)
SecurityGroupVpcAssociation & WithGroupId(GroupIdT &&value)
SecurityGroupVpcAssociation & WithStateReason(StateReasonT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API SecurityGroupVpcAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SecurityGroupVpcAssociation & WithVpcId(VpcIdT &&value)
SecurityGroupVpcAssociation & WithVpcOwnerId(VpcOwnerIdT &&value)
void SetState(SecurityGroupVpcAssociationState value)
AWS_EC2_API SecurityGroupVpcAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream