AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UserIdGroupPair.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API UserIdGroupPair() = default;
31 AWS_EC2_API UserIdGroupPair(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
43 inline const Aws::String& GetDescription() const { return m_description; }
44 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
45 template <typename DescriptionT = Aws::String>
46 void SetDescription(DescriptionT&& value) {
47 m_descriptionHasBeenSet = true;
48 m_description = std::forward<DescriptionT>(value);
49 }
50 template <typename DescriptionT = Aws::String>
51 UserIdGroupPair& WithDescription(DescriptionT&& value) {
52 SetDescription(std::forward<DescriptionT>(value));
53 return *this;
54 }
56
58
64 inline const Aws::String& GetUserId() const { return m_userId; }
65 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
66 template <typename UserIdT = Aws::String>
67 void SetUserId(UserIdT&& value) {
68 m_userIdHasBeenSet = true;
69 m_userId = std::forward<UserIdT>(value);
70 }
71 template <typename UserIdT = Aws::String>
72 UserIdGroupPair& WithUserId(UserIdT&& value) {
73 SetUserId(std::forward<UserIdT>(value));
74 return *this;
75 }
77
79
85 inline const Aws::String& GetGroupName() const { return m_groupName; }
86 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
87 template <typename GroupNameT = Aws::String>
88 void SetGroupName(GroupNameT&& value) {
89 m_groupNameHasBeenSet = true;
90 m_groupName = std::forward<GroupNameT>(value);
91 }
92 template <typename GroupNameT = Aws::String>
93 UserIdGroupPair& WithGroupName(GroupNameT&& value) {
94 SetGroupName(std::forward<GroupNameT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetGroupId() const { return m_groupId; }
104 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
105 template <typename GroupIdT = Aws::String>
106 void SetGroupId(GroupIdT&& value) {
107 m_groupIdHasBeenSet = true;
108 m_groupId = std::forward<GroupIdT>(value);
109 }
110 template <typename GroupIdT = Aws::String>
111 UserIdGroupPair& WithGroupId(GroupIdT&& value) {
112 SetGroupId(std::forward<GroupIdT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetVpcId() const { return m_vpcId; }
122 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
123 template <typename VpcIdT = Aws::String>
124 void SetVpcId(VpcIdT&& value) {
125 m_vpcIdHasBeenSet = true;
126 m_vpcId = std::forward<VpcIdT>(value);
127 }
128 template <typename VpcIdT = Aws::String>
129 UserIdGroupPair& WithVpcId(VpcIdT&& value) {
130 SetVpcId(std::forward<VpcIdT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetVpcPeeringConnectionId() const { return m_vpcPeeringConnectionId; }
140 inline bool VpcPeeringConnectionIdHasBeenSet() const { return m_vpcPeeringConnectionIdHasBeenSet; }
141 template <typename VpcPeeringConnectionIdT = Aws::String>
142 void SetVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) {
143 m_vpcPeeringConnectionIdHasBeenSet = true;
144 m_vpcPeeringConnectionId = std::forward<VpcPeeringConnectionIdT>(value);
145 }
146 template <typename VpcPeeringConnectionIdT = Aws::String>
147 UserIdGroupPair& WithVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) {
148 SetVpcPeeringConnectionId(std::forward<VpcPeeringConnectionIdT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetPeeringStatus() const { return m_peeringStatus; }
158 inline bool PeeringStatusHasBeenSet() const { return m_peeringStatusHasBeenSet; }
159 template <typename PeeringStatusT = Aws::String>
160 void SetPeeringStatus(PeeringStatusT&& value) {
161 m_peeringStatusHasBeenSet = true;
162 m_peeringStatus = std::forward<PeeringStatusT>(value);
163 }
164 template <typename PeeringStatusT = Aws::String>
165 UserIdGroupPair& WithPeeringStatus(PeeringStatusT&& value) {
166 SetPeeringStatus(std::forward<PeeringStatusT>(value));
167 return *this;
168 }
170 private:
171 Aws::String m_description;
172
173 Aws::String m_userId;
174
175 Aws::String m_groupName;
176
177 Aws::String m_groupId;
178
179 Aws::String m_vpcId;
180
181 Aws::String m_vpcPeeringConnectionId;
182
183 Aws::String m_peeringStatus;
184 bool m_descriptionHasBeenSet = false;
185 bool m_userIdHasBeenSet = false;
186 bool m_groupNameHasBeenSet = false;
187 bool m_groupIdHasBeenSet = false;
188 bool m_vpcIdHasBeenSet = false;
189 bool m_vpcPeeringConnectionIdHasBeenSet = false;
190 bool m_peeringStatusHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace EC2
195} // namespace Aws
const Aws::String & GetGroupId() const
void SetGroupId(GroupIdT &&value)
const Aws::String & GetDescription() const
void SetPeeringStatus(PeeringStatusT &&value)
UserIdGroupPair & WithPeeringStatus(PeeringStatusT &&value)
AWS_EC2_API UserIdGroupPair()=default
UserIdGroupPair & WithGroupName(GroupNameT &&value)
UserIdGroupPair & WithUserId(UserIdT &&value)
void SetDescription(DescriptionT &&value)
UserIdGroupPair & WithGroupId(GroupIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetGroupName() const
void SetGroupName(GroupNameT &&value)
UserIdGroupPair & WithVpcPeeringConnectionId(VpcPeeringConnectionIdT &&value)
const Aws::String & GetVpcId() const
UserIdGroupPair & WithVpcId(VpcIdT &&value)
void SetVpcPeeringConnectionId(VpcPeeringConnectionIdT &&value)
AWS_EC2_API UserIdGroupPair & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API UserIdGroupPair(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetVpcPeeringConnectionId() const
const Aws::String & GetUserId() const
void SetUserId(UserIdT &&value)
UserIdGroupPair & WithDescription(DescriptionT &&value)
const Aws::String & GetPeeringStatus() const
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