AWS SDK for C++  1.9.67
AWS SDK for C++
UserIdGroupPair.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
48  inline const Aws::String& GetDescription() const{ return m_description; }
49 
55  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 
62  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
63 
69  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
70 
76  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
77 
83  inline UserIdGroupPair& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
84 
90  inline UserIdGroupPair& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
91 
97  inline UserIdGroupPair& WithDescription(const char* value) { SetDescription(value); return *this;}
98 
99 
103  inline const Aws::String& GetGroupId() const{ return m_groupId; }
104 
108  inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
109 
113  inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
114 
118  inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
119 
123  inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
124 
128  inline UserIdGroupPair& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
129 
133  inline UserIdGroupPair& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
134 
138  inline UserIdGroupPair& WithGroupId(const char* value) { SetGroupId(value); return *this;}
139 
140 
148  inline const Aws::String& GetGroupName() const{ return m_groupName; }
149 
157  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
158 
166  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
167 
175  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
176 
184  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
185 
193  inline UserIdGroupPair& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
194 
202  inline UserIdGroupPair& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
203 
211  inline UserIdGroupPair& WithGroupName(const char* value) { SetGroupName(value); return *this;}
212 
213 
217  inline const Aws::String& GetPeeringStatus() const{ return m_peeringStatus; }
218 
222  inline bool PeeringStatusHasBeenSet() const { return m_peeringStatusHasBeenSet; }
223 
227  inline void SetPeeringStatus(const Aws::String& value) { m_peeringStatusHasBeenSet = true; m_peeringStatus = value; }
228 
232  inline void SetPeeringStatus(Aws::String&& value) { m_peeringStatusHasBeenSet = true; m_peeringStatus = std::move(value); }
233 
237  inline void SetPeeringStatus(const char* value) { m_peeringStatusHasBeenSet = true; m_peeringStatus.assign(value); }
238 
242  inline UserIdGroupPair& WithPeeringStatus(const Aws::String& value) { SetPeeringStatus(value); return *this;}
243 
247  inline UserIdGroupPair& WithPeeringStatus(Aws::String&& value) { SetPeeringStatus(std::move(value)); return *this;}
248 
252  inline UserIdGroupPair& WithPeeringStatus(const char* value) { SetPeeringStatus(value); return *this;}
253 
254 
263  inline const Aws::String& GetUserId() const{ return m_userId; }
264 
273  inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
274 
283  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
284 
293  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
294 
303  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
304 
313  inline UserIdGroupPair& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
314 
323  inline UserIdGroupPair& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
324 
333  inline UserIdGroupPair& WithUserId(const char* value) { SetUserId(value); return *this;}
334 
335 
339  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
340 
344  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
345 
349  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
350 
354  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
355 
359  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
360 
364  inline UserIdGroupPair& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
365 
369  inline UserIdGroupPair& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
370 
374  inline UserIdGroupPair& WithVpcId(const char* value) { SetVpcId(value); return *this;}
375 
376 
380  inline const Aws::String& GetVpcPeeringConnectionId() const{ return m_vpcPeeringConnectionId; }
381 
385  inline bool VpcPeeringConnectionIdHasBeenSet() const { return m_vpcPeeringConnectionIdHasBeenSet; }
386 
390  inline void SetVpcPeeringConnectionId(const Aws::String& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = value; }
391 
395  inline void SetVpcPeeringConnectionId(Aws::String&& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = std::move(value); }
396 
400  inline void SetVpcPeeringConnectionId(const char* value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId.assign(value); }
401 
405  inline UserIdGroupPair& WithVpcPeeringConnectionId(const Aws::String& value) { SetVpcPeeringConnectionId(value); return *this;}
406 
410  inline UserIdGroupPair& WithVpcPeeringConnectionId(Aws::String&& value) { SetVpcPeeringConnectionId(std::move(value)); return *this;}
411 
415  inline UserIdGroupPair& WithVpcPeeringConnectionId(const char* value) { SetVpcPeeringConnectionId(value); return *this;}
416 
417  private:
418 
419  Aws::String m_description;
420  bool m_descriptionHasBeenSet;
421 
422  Aws::String m_groupId;
423  bool m_groupIdHasBeenSet;
424 
425  Aws::String m_groupName;
426  bool m_groupNameHasBeenSet;
427 
428  Aws::String m_peeringStatus;
429  bool m_peeringStatusHasBeenSet;
430 
431  Aws::String m_userId;
432  bool m_userIdHasBeenSet;
433 
434  Aws::String m_vpcId;
435  bool m_vpcIdHasBeenSet;
436 
437  Aws::String m_vpcPeeringConnectionId;
438  bool m_vpcPeeringConnectionIdHasBeenSet;
439  };
440 
441 } // namespace Model
442 } // namespace EC2
443 } // namespace Aws
Aws::EC2::Model::UserIdGroupPair::SetGroupId
void SetGroupId(const Aws::String &value)
Definition: UserIdGroupPair.h:113
Aws::EC2::Model::UserIdGroupPair::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: UserIdGroupPair.h:354
Aws::EC2::Model::UserIdGroupPair::operator=
UserIdGroupPair & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::UserIdGroupPair::PeeringStatusHasBeenSet
bool PeeringStatusHasBeenSet() const
Definition: UserIdGroupPair.h:222
Aws::EC2::Model::UserIdGroupPair::WithDescription
UserIdGroupPair & WithDescription(Aws::String &&value)
Definition: UserIdGroupPair.h:90
Aws::EC2::Model::UserIdGroupPair::SetUserId
void SetUserId(const char *value)
Definition: UserIdGroupPair.h:303
Aws::EC2::Model::UserIdGroupPair::VpcPeeringConnectionIdHasBeenSet
bool VpcPeeringConnectionIdHasBeenSet() const
Definition: UserIdGroupPair.h:385
Aws::EC2::Model::UserIdGroupPair::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UserIdGroupPair.h:55
Aws::EC2::Model::UserIdGroupPair::WithVpcId
UserIdGroupPair & WithVpcId(const Aws::String &value)
Definition: UserIdGroupPair.h:364
Aws::EC2::Model::UserIdGroupPair::GetUserId
const Aws::String & GetUserId() const
Definition: UserIdGroupPair.h:263
Aws::EC2::Model::UserIdGroupPair::WithPeeringStatus
UserIdGroupPair & WithPeeringStatus(const char *value)
Definition: UserIdGroupPair.h:252
Aws::EC2::Model::UserIdGroupPair::WithVpcPeeringConnectionId
UserIdGroupPair & WithVpcPeeringConnectionId(const Aws::String &value)
Definition: UserIdGroupPair.h:405
Aws::EC2::Model::UserIdGroupPair::WithGroupId
UserIdGroupPair & WithGroupId(Aws::String &&value)
Definition: UserIdGroupPair.h:133
Aws::EC2::Model::UserIdGroupPair::SetGroupId
void SetGroupId(const char *value)
Definition: UserIdGroupPair.h:123
Aws::EC2::Model::UserIdGroupPair::WithPeeringStatus
UserIdGroupPair & WithPeeringStatus(const Aws::String &value)
Definition: UserIdGroupPair.h:242
Aws::EC2::Model::UserIdGroupPair::UserIdGroupPair
UserIdGroupPair()
Aws::EC2::Model::UserIdGroupPair::WithGroupId
UserIdGroupPair & WithGroupId(const char *value)
Definition: UserIdGroupPair.h:138
Aws::EC2::Model::UserIdGroupPair::WithDescription
UserIdGroupPair & WithDescription(const Aws::String &value)
Definition: UserIdGroupPair.h:83
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::UserIdGroupPair::WithUserId
UserIdGroupPair & WithUserId(const char *value)
Definition: UserIdGroupPair.h:333
Aws::EC2::Model::UserIdGroupPair::SetPeeringStatus
void SetPeeringStatus(const Aws::String &value)
Definition: UserIdGroupPair.h:227
Aws::EC2::Model::UserIdGroupPair::WithUserId
UserIdGroupPair & WithUserId(Aws::String &&value)
Definition: UserIdGroupPair.h:323
Aws::EC2::Model::UserIdGroupPair::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: UserIdGroupPair.h:166
Aws::EC2::Model::UserIdGroupPair::WithPeeringStatus
UserIdGroupPair & WithPeeringStatus(Aws::String &&value)
Definition: UserIdGroupPair.h:247
AWSStreamFwd.h
Aws::EC2::Model::UserIdGroupPair::SetPeeringStatus
void SetPeeringStatus(const char *value)
Definition: UserIdGroupPair.h:237
Aws::EC2::Model::UserIdGroupPair
Definition: UserIdGroupPair.h:33
Aws::EC2::Model::UserIdGroupPair::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: UserIdGroupPair.h:175
Aws::EC2::Model::UserIdGroupPair::WithVpcPeeringConnectionId
UserIdGroupPair & WithVpcPeeringConnectionId(const char *value)
Definition: UserIdGroupPair.h:415
Aws::EC2::Model::UserIdGroupPair::WithVpcId
UserIdGroupPair & WithVpcId(const char *value)
Definition: UserIdGroupPair.h:374
Aws::EC2::Model::UserIdGroupPair::WithGroupName
UserIdGroupPair & WithGroupName(const Aws::String &value)
Definition: UserIdGroupPair.h:193
Aws::EC2::Model::UserIdGroupPair::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: UserIdGroupPair.h:344
Aws::EC2::Model::UserIdGroupPair::GetGroupId
const Aws::String & GetGroupId() const
Definition: UserIdGroupPair.h:103
Aws::EC2::Model::UserIdGroupPair::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::UserIdGroupPair::SetUserId
void SetUserId(Aws::String &&value)
Definition: UserIdGroupPair.h:293
Aws::EC2::Model::UserIdGroupPair::GetDescription
const Aws::String & GetDescription() const
Definition: UserIdGroupPair.h:48
Aws::EC2::Model::UserIdGroupPair::WithVpcPeeringConnectionId
UserIdGroupPair & WithVpcPeeringConnectionId(Aws::String &&value)
Definition: UserIdGroupPair.h:410
Aws::EC2::Model::UserIdGroupPair::GetPeeringStatus
const Aws::String & GetPeeringStatus() const
Definition: UserIdGroupPair.h:217
Aws::EC2::Model::UserIdGroupPair::SetGroupName
void SetGroupName(const char *value)
Definition: UserIdGroupPair.h:184
Aws::EC2::Model::UserIdGroupPair::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::UserIdGroupPair::WithUserId
UserIdGroupPair & WithUserId(const Aws::String &value)
Definition: UserIdGroupPair.h:313
Aws::EC2::Model::UserIdGroupPair::WithVpcId
UserIdGroupPair & WithVpcId(Aws::String &&value)
Definition: UserIdGroupPair.h:369
Aws::EC2::Model::UserIdGroupPair::SetDescription
void SetDescription(const char *value)
Definition: UserIdGroupPair.h:76
Aws::EC2::Model::UserIdGroupPair::SetGroupId
void SetGroupId(Aws::String &&value)
Definition: UserIdGroupPair.h:118
Aws::EC2::Model::UserIdGroupPair::WithGroupId
UserIdGroupPair & WithGroupId(const Aws::String &value)
Definition: UserIdGroupPair.h:128
Aws::EC2::Model::UserIdGroupPair::SetVpcPeeringConnectionId
void SetVpcPeeringConnectionId(Aws::String &&value)
Definition: UserIdGroupPair.h:395
Aws::EC2::Model::UserIdGroupPair::SetPeeringStatus
void SetPeeringStatus(Aws::String &&value)
Definition: UserIdGroupPair.h:232
Aws::EC2::Model::UserIdGroupPair::SetVpcId
void SetVpcId(const char *value)
Definition: UserIdGroupPair.h:359
Aws::EC2::Model::UserIdGroupPair::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: UserIdGroupPair.h:349
Aws::EC2::Model::UserIdGroupPair::GetVpcId
const Aws::String & GetVpcId() const
Definition: UserIdGroupPair.h:339
Aws::EC2::Model::UserIdGroupPair::WithGroupName
UserIdGroupPair & WithGroupName(const char *value)
Definition: UserIdGroupPair.h:211
AWSString.h
Aws::EC2::Model::UserIdGroupPair::UserIdGroupPair
UserIdGroupPair(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::UserIdGroupPair::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: UserIdGroupPair.h:157
Aws::EC2::Model::UserIdGroupPair::SetDescription
void SetDescription(Aws::String &&value)
Definition: UserIdGroupPair.h:69
Aws::EC2::Model::UserIdGroupPair::WithGroupName
UserIdGroupPair & WithGroupName(Aws::String &&value)
Definition: UserIdGroupPair.h:202
Aws::EC2::Model::UserIdGroupPair::SetVpcPeeringConnectionId
void SetVpcPeeringConnectionId(const char *value)
Definition: UserIdGroupPair.h:400
Aws::EC2::Model::UserIdGroupPair::SetUserId
void SetUserId(const Aws::String &value)
Definition: UserIdGroupPair.h:283
Aws::EC2::Model::UserIdGroupPair::SetDescription
void SetDescription(const Aws::String &value)
Definition: UserIdGroupPair.h:62
Aws::EC2::Model::UserIdGroupPair::UserIdHasBeenSet
bool UserIdHasBeenSet() const
Definition: UserIdGroupPair.h:273
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::UserIdGroupPair::GroupIdHasBeenSet
bool GroupIdHasBeenSet() const
Definition: UserIdGroupPair.h:108
Aws::EC2::Model::UserIdGroupPair::GetGroupName
const Aws::String & GetGroupName() const
Definition: UserIdGroupPair.h:148
Aws::EC2::Model::UserIdGroupPair::GetVpcPeeringConnectionId
const Aws::String & GetVpcPeeringConnectionId() const
Definition: UserIdGroupPair.h:380
Aws::EC2::Model::UserIdGroupPair::WithDescription
UserIdGroupPair & WithDescription(const char *value)
Definition: UserIdGroupPair.h:97
EC2_EXPORTS.h
Aws::EC2::Model::UserIdGroupPair::SetVpcPeeringConnectionId
void SetVpcPeeringConnectionId(const Aws::String &value)
Definition: UserIdGroupPair.h:390