AWS SDK for C++  0.12.9
AWS SDK for C++
UserIdGroupPair.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace EC2
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  UserIdGroupPair& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
53  inline const Aws::String& GetUserId() const{ return m_userId; }
54 
61  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
62 
69  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = value; }
70 
77  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
78 
85  inline UserIdGroupPair& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
86 
93  inline UserIdGroupPair& WithUserId(Aws::String&& value) { SetUserId(value); return *this;}
94 
101  inline UserIdGroupPair& WithUserId(const char* value) { SetUserId(value); return *this;}
102 
108  inline const Aws::String& GetGroupName() const{ return m_groupName; }
109 
115  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
116 
122  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
123 
129  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
130 
136  inline UserIdGroupPair& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
137 
143  inline UserIdGroupPair& WithGroupName(Aws::String&& value) { SetGroupName(value); return *this;}
144 
150  inline UserIdGroupPair& WithGroupName(const char* value) { SetGroupName(value); return *this;}
151 
155  inline const Aws::String& GetGroupId() const{ return m_groupId; }
156 
160  inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
161 
165  inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
166 
170  inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
171 
175  inline UserIdGroupPair& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
176 
180  inline UserIdGroupPair& WithGroupId(Aws::String&& value) { SetGroupId(value); return *this;}
181 
185  inline UserIdGroupPair& WithGroupId(const char* value) { SetGroupId(value); return *this;}
186 
190  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
191 
195  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
196 
200  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
201 
205  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
206 
210  inline UserIdGroupPair& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
211 
215  inline UserIdGroupPair& WithVpcId(Aws::String&& value) { SetVpcId(value); return *this;}
216 
220  inline UserIdGroupPair& WithVpcId(const char* value) { SetVpcId(value); return *this;}
221 
225  inline const Aws::String& GetVpcPeeringConnectionId() const{ return m_vpcPeeringConnectionId; }
226 
230  inline void SetVpcPeeringConnectionId(const Aws::String& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = value; }
231 
235  inline void SetVpcPeeringConnectionId(Aws::String&& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = value; }
236 
240  inline void SetVpcPeeringConnectionId(const char* value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId.assign(value); }
241 
245  inline UserIdGroupPair& WithVpcPeeringConnectionId(const Aws::String& value) { SetVpcPeeringConnectionId(value); return *this;}
246 
250  inline UserIdGroupPair& WithVpcPeeringConnectionId(Aws::String&& value) { SetVpcPeeringConnectionId(value); return *this;}
251 
255  inline UserIdGroupPair& WithVpcPeeringConnectionId(const char* value) { SetVpcPeeringConnectionId(value); return *this;}
256 
260  inline const Aws::String& GetPeeringStatus() const{ return m_peeringStatus; }
261 
265  inline void SetPeeringStatus(const Aws::String& value) { m_peeringStatusHasBeenSet = true; m_peeringStatus = value; }
266 
270  inline void SetPeeringStatus(Aws::String&& value) { m_peeringStatusHasBeenSet = true; m_peeringStatus = value; }
271 
275  inline void SetPeeringStatus(const char* value) { m_peeringStatusHasBeenSet = true; m_peeringStatus.assign(value); }
276 
280  inline UserIdGroupPair& WithPeeringStatus(const Aws::String& value) { SetPeeringStatus(value); return *this;}
281 
285  inline UserIdGroupPair& WithPeeringStatus(Aws::String&& value) { SetPeeringStatus(value); return *this;}
286 
290  inline UserIdGroupPair& WithPeeringStatus(const char* value) { SetPeeringStatus(value); return *this;}
291 
292  private:
293  Aws::String m_userId;
294  bool m_userIdHasBeenSet;
295  Aws::String m_groupName;
296  bool m_groupNameHasBeenSet;
297  Aws::String m_groupId;
298  bool m_groupIdHasBeenSet;
299  Aws::String m_vpcId;
300  bool m_vpcIdHasBeenSet;
301  Aws::String m_vpcPeeringConnectionId;
302  bool m_vpcPeeringConnectionIdHasBeenSet;
303  Aws::String m_peeringStatus;
304  bool m_peeringStatusHasBeenSet;
305  };
306 
307 } // namespace Model
308 } // namespace EC2
309 } // namespace Aws
UserIdGroupPair & WithVpcPeeringConnectionId(const Aws::String &value)
void SetGroupName(const Aws::String &value)
void SetUserId(const Aws::String &value)
UserIdGroupPair & WithGroupId(Aws::String &&value)
const Aws::String & GetVpcPeeringConnectionId() const
UserIdGroupPair & WithVpcId(const Aws::String &value)
const Aws::String & GetGroupName() const
UserIdGroupPair & WithVpcId(const char *value)
UserIdGroupPair & WithUserId(Aws::String &&value)
void SetVpcPeeringConnectionId(Aws::String &&value)
UserIdGroupPair & WithGroupId(const char *value)
void SetVpcPeeringConnectionId(const Aws::String &value)
UserIdGroupPair & WithUserId(const Aws::String &value)
UserIdGroupPair & WithPeeringStatus(const Aws::String &value)
void SetPeeringStatus(Aws::String &&value)
void SetVpcId(const char *value)
void SetVpcId(const Aws::String &value)
const Aws::String & GetUserId() const
const Aws::String & GetGroupId() const
UserIdGroupPair & WithVpcPeeringConnectionId(const char *value)
UserIdGroupPair & WithVpcId(Aws::String &&value)
UserIdGroupPair & WithPeeringStatus(const char *value)
void SetGroupName(const char *value)
void SetUserId(Aws::String &&value)
void SetGroupName(Aws::String &&value)
UserIdGroupPair & WithPeeringStatus(Aws::String &&value)
UserIdGroupPair & WithVpcPeeringConnectionId(Aws::String &&value)
UserIdGroupPair & WithGroupName(const Aws::String &value)
void SetGroupId(const char *value)
UserIdGroupPair & WithGroupId(const Aws::String &value)
void SetGroupId(Aws::String &&value)
UserIdGroupPair & WithGroupName(const char *value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetVpcPeeringConnectionId(const char *value)
const Aws::String & GetVpcId() const
void SetPeeringStatus(const Aws::String &value)
void SetPeeringStatus(const char *value)
UserIdGroupPair & WithUserId(const char *value)
const Aws::String & GetPeeringStatus() const
void SetVpcId(Aws::String &&value)
void SetGroupId(const Aws::String &value)
UserIdGroupPair & WithGroupName(Aws::String &&value)
void SetUserId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
JSON (JavaScript Object Notation).