AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UserIdGroupPair.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_EC2_API UserIdGroupPair();
36 AWS_EC2_API UserIdGroupPair(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
49 inline const Aws::String& GetDescription() const{ return m_description; }
50 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
51 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
52 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
53 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
54 inline UserIdGroupPair& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
55 inline UserIdGroupPair& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
56 inline UserIdGroupPair& WithDescription(const char* value) { SetDescription(value); return *this;}
58
60
66 inline const Aws::String& GetUserId() const{ return m_userId; }
67 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
68 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
69 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
70 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
71 inline UserIdGroupPair& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
72 inline UserIdGroupPair& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
73 inline UserIdGroupPair& WithUserId(const char* value) { SetUserId(value); return *this;}
75
77
83 inline const Aws::String& GetGroupName() const{ return m_groupName; }
84 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
85 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
86 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
87 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
88 inline UserIdGroupPair& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
89 inline UserIdGroupPair& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
90 inline UserIdGroupPair& WithGroupName(const char* value) { SetGroupName(value); return *this;}
92
94
97 inline const Aws::String& GetGroupId() const{ return m_groupId; }
98 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
99 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
100 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
101 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
102 inline UserIdGroupPair& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
103 inline UserIdGroupPair& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
104 inline UserIdGroupPair& WithGroupId(const char* value) { SetGroupId(value); return *this;}
106
108
111 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
112 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
113 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
114 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
115 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
116 inline UserIdGroupPair& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
117 inline UserIdGroupPair& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
118 inline UserIdGroupPair& WithVpcId(const char* value) { SetVpcId(value); return *this;}
120
122
125 inline const Aws::String& GetVpcPeeringConnectionId() const{ return m_vpcPeeringConnectionId; }
126 inline bool VpcPeeringConnectionIdHasBeenSet() const { return m_vpcPeeringConnectionIdHasBeenSet; }
127 inline void SetVpcPeeringConnectionId(const Aws::String& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = value; }
128 inline void SetVpcPeeringConnectionId(Aws::String&& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = std::move(value); }
129 inline void SetVpcPeeringConnectionId(const char* value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId.assign(value); }
131 inline UserIdGroupPair& WithVpcPeeringConnectionId(Aws::String&& value) { SetVpcPeeringConnectionId(std::move(value)); return *this;}
132 inline UserIdGroupPair& WithVpcPeeringConnectionId(const char* value) { SetVpcPeeringConnectionId(value); return *this;}
134
136
139 inline const Aws::String& GetPeeringStatus() const{ return m_peeringStatus; }
140 inline bool PeeringStatusHasBeenSet() const { return m_peeringStatusHasBeenSet; }
141 inline void SetPeeringStatus(const Aws::String& value) { m_peeringStatusHasBeenSet = true; m_peeringStatus = value; }
142 inline void SetPeeringStatus(Aws::String&& value) { m_peeringStatusHasBeenSet = true; m_peeringStatus = std::move(value); }
143 inline void SetPeeringStatus(const char* value) { m_peeringStatusHasBeenSet = true; m_peeringStatus.assign(value); }
144 inline UserIdGroupPair& WithPeeringStatus(const Aws::String& value) { SetPeeringStatus(value); return *this;}
145 inline UserIdGroupPair& WithPeeringStatus(Aws::String&& value) { SetPeeringStatus(std::move(value)); return *this;}
146 inline UserIdGroupPair& WithPeeringStatus(const char* value) { SetPeeringStatus(value); return *this;}
148 private:
149
150 Aws::String m_description;
151 bool m_descriptionHasBeenSet = false;
152
153 Aws::String m_userId;
154 bool m_userIdHasBeenSet = false;
155
156 Aws::String m_groupName;
157 bool m_groupNameHasBeenSet = false;
158
159 Aws::String m_groupId;
160 bool m_groupIdHasBeenSet = false;
161
162 Aws::String m_vpcId;
163 bool m_vpcIdHasBeenSet = false;
164
165 Aws::String m_vpcPeeringConnectionId;
166 bool m_vpcPeeringConnectionIdHasBeenSet = false;
167
168 Aws::String m_peeringStatus;
169 bool m_peeringStatusHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace EC2
174} // namespace Aws
void SetVpcId(const Aws::String &value)
const Aws::String & GetGroupId() const
const Aws::String & GetDescription() const
UserIdGroupPair & WithDescription(const Aws::String &value)
void SetGroupName(Aws::String &&value)
void SetGroupName(const char *value)
UserIdGroupPair & WithGroupName(const Aws::String &value)
UserIdGroupPair & WithUserId(Aws::String &&value)
void SetGroupName(const Aws::String &value)
void SetDescription(Aws::String &&value)
void SetUserId(const char *value)
void SetGroupId(const char *value)
void SetVpcPeeringConnectionId(const Aws::String &value)
UserIdGroupPair & WithVpcPeeringConnectionId(const char *value)
UserIdGroupPair & WithVpcId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
UserIdGroupPair & WithUserId(const char *value)
void SetDescription(const Aws::String &value)
void SetUserId(Aws::String &&value)
UserIdGroupPair & WithGroupId(const Aws::String &value)
UserIdGroupPair & WithUserId(const Aws::String &value)
void SetUserId(const Aws::String &value)
UserIdGroupPair & WithGroupName(Aws::String &&value)
const Aws::String & GetGroupName() const
void SetVpcPeeringConnectionId(const char *value)
UserIdGroupPair & WithGroupName(const char *value)
const Aws::String & GetVpcId() const
UserIdGroupPair & WithVpcId(Aws::String &&value)
UserIdGroupPair & WithVpcId(const char *value)
UserIdGroupPair & WithDescription(const char *value)
void SetDescription(const char *value)
void SetPeeringStatus(Aws::String &&value)
UserIdGroupPair & WithGroupId(Aws::String &&value)
AWS_EC2_API UserIdGroupPair & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
UserIdGroupPair & WithVpcPeeringConnectionId(const Aws::String &value)
void SetGroupId(const Aws::String &value)
UserIdGroupPair & WithVpcPeeringConnectionId(Aws::String &&value)
AWS_EC2_API UserIdGroupPair(const Aws::Utils::Xml::XmlNode &xmlNode)
UserIdGroupPair & WithPeeringStatus(const Aws::String &value)
UserIdGroupPair & WithPeeringStatus(const char *value)
const Aws::String & GetVpcPeeringConnectionId() const
void SetPeeringStatus(const char *value)
const Aws::String & GetUserId() const
void SetVpcId(Aws::String &&value)
const Aws::String & GetPeeringStatus() const
void SetPeeringStatus(const Aws::String &value)
UserIdGroupPair & WithDescription(Aws::String &&value)
void SetVpcPeeringConnectionId(Aws::String &&value)
void SetVpcId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetGroupId(Aws::String &&value)
UserIdGroupPair & WithPeeringStatus(Aws::String &&value)
UserIdGroupPair & WithGroupId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream