AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename DescriptionT = Aws::String>
52 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
53 template<typename DescriptionT = Aws::String>
54 UserIdGroupPair& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
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) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
68 template<typename UserIdT = Aws::String>
69 UserIdGroupPair& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
71
73
79 inline const Aws::String& GetGroupName() const { return m_groupName; }
80 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
81 template<typename GroupNameT = Aws::String>
82 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
83 template<typename GroupNameT = Aws::String>
84 UserIdGroupPair& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
86
88
91 inline const Aws::String& GetGroupId() const { return m_groupId; }
92 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
93 template<typename GroupIdT = Aws::String>
94 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
95 template<typename GroupIdT = Aws::String>
96 UserIdGroupPair& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
98
100
103 inline const Aws::String& GetVpcId() const { return m_vpcId; }
104 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
105 template<typename VpcIdT = Aws::String>
106 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
107 template<typename VpcIdT = Aws::String>
108 UserIdGroupPair& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
110
112
115 inline const Aws::String& GetVpcPeeringConnectionId() const { return m_vpcPeeringConnectionId; }
116 inline bool VpcPeeringConnectionIdHasBeenSet() const { return m_vpcPeeringConnectionIdHasBeenSet; }
117 template<typename VpcPeeringConnectionIdT = Aws::String>
118 void SetVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = std::forward<VpcPeeringConnectionIdT>(value); }
119 template<typename VpcPeeringConnectionIdT = Aws::String>
120 UserIdGroupPair& WithVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) { SetVpcPeeringConnectionId(std::forward<VpcPeeringConnectionIdT>(value)); return *this;}
122
124
127 inline const Aws::String& GetPeeringStatus() const { return m_peeringStatus; }
128 inline bool PeeringStatusHasBeenSet() const { return m_peeringStatusHasBeenSet; }
129 template<typename PeeringStatusT = Aws::String>
130 void SetPeeringStatus(PeeringStatusT&& value) { m_peeringStatusHasBeenSet = true; m_peeringStatus = std::forward<PeeringStatusT>(value); }
131 template<typename PeeringStatusT = Aws::String>
132 UserIdGroupPair& WithPeeringStatus(PeeringStatusT&& value) { SetPeeringStatus(std::forward<PeeringStatusT>(value)); return *this;}
134 private:
135
136 Aws::String m_description;
137 bool m_descriptionHasBeenSet = false;
138
139 Aws::String m_userId;
140 bool m_userIdHasBeenSet = false;
141
142 Aws::String m_groupName;
143 bool m_groupNameHasBeenSet = false;
144
145 Aws::String m_groupId;
146 bool m_groupIdHasBeenSet = false;
147
148 Aws::String m_vpcId;
149 bool m_vpcIdHasBeenSet = false;
150
151 Aws::String m_vpcPeeringConnectionId;
152 bool m_vpcPeeringConnectionIdHasBeenSet = false;
153
154 Aws::String m_peeringStatus;
155 bool m_peeringStatusHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace EC2
160} // 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