AWS SDK for C++  1.9.21
AWS SDK for C++
VPCConfigResponse.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace RoboMaker
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
46 
50  inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
51 
55  inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
56 
60  inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
61 
65  inline VPCConfigResponse& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
66 
70  inline VPCConfigResponse& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
71 
75  inline VPCConfigResponse& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
76 
80  inline VPCConfigResponse& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
81 
85  inline VPCConfigResponse& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
86 
87 
91  inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
92 
96  inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
97 
101  inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
102 
106  inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
107 
111  inline VPCConfigResponse& WithSecurityGroups(const Aws::Vector<Aws::String>& value) { SetSecurityGroups(value); return *this;}
112 
116  inline VPCConfigResponse& WithSecurityGroups(Aws::Vector<Aws::String>&& value) { SetSecurityGroups(std::move(value)); return *this;}
117 
121  inline VPCConfigResponse& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
122 
126  inline VPCConfigResponse& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
127 
131  inline VPCConfigResponse& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
132 
133 
137  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
138 
142  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
143 
147  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
148 
152  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
153 
157  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
158 
162  inline VPCConfigResponse& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
163 
167  inline VPCConfigResponse& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
168 
172  inline VPCConfigResponse& WithVpcId(const char* value) { SetVpcId(value); return *this;}
173 
174 
178  inline bool GetAssignPublicIp() const{ return m_assignPublicIp; }
179 
183  inline bool AssignPublicIpHasBeenSet() const { return m_assignPublicIpHasBeenSet; }
184 
188  inline void SetAssignPublicIp(bool value) { m_assignPublicIpHasBeenSet = true; m_assignPublicIp = value; }
189 
193  inline VPCConfigResponse& WithAssignPublicIp(bool value) { SetAssignPublicIp(value); return *this;}
194 
195  private:
196 
197  Aws::Vector<Aws::String> m_subnets;
198  bool m_subnetsHasBeenSet;
199 
200  Aws::Vector<Aws::String> m_securityGroups;
201  bool m_securityGroupsHasBeenSet;
202 
203  Aws::String m_vpcId;
204  bool m_vpcIdHasBeenSet;
205 
206  bool m_assignPublicIp;
207  bool m_assignPublicIpHasBeenSet;
208  };
209 
210 } // namespace Model
211 } // namespace RoboMaker
212 } // namespace Aws
Aws::RoboMaker::Model::VPCConfigResponse::VPCConfigResponse
VPCConfigResponse(Aws::Utils::Json::JsonView jsonValue)
Aws::RoboMaker::Model::VPCConfigResponse::SetSecurityGroups
void SetSecurityGroups(Aws::Vector< Aws::String > &&value)
Definition: VPCConfigResponse.h:106
Aws::RoboMaker::Model::VPCConfigResponse::SetSubnets
void SetSubnets(const Aws::Vector< Aws::String > &value)
Definition: VPCConfigResponse.h:55
Aws::RoboMaker::Model::VPCConfigResponse::SetSecurityGroups
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
Definition: VPCConfigResponse.h:101
Aws::RoboMaker::Model::VPCConfigResponse::WithSubnets
VPCConfigResponse & WithSubnets(const Aws::Vector< Aws::String > &value)
Definition: VPCConfigResponse.h:65
Aws::RoboMaker::Model::VPCConfigResponse::AddSubnets
VPCConfigResponse & AddSubnets(const Aws::String &value)
Definition: VPCConfigResponse.h:75
Aws::RoboMaker::Model::VPCConfigResponse::operator=
VPCConfigResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::RoboMaker::Model::VPCConfigResponse::AddSecurityGroups
VPCConfigResponse & AddSecurityGroups(const char *value)
Definition: VPCConfigResponse.h:131
Aws::RoboMaker::Model::VPCConfigResponse::VPCConfigResponse
VPCConfigResponse()
Aws::RoboMaker::Model::VPCConfigResponse
Definition: VPCConfigResponse.h:34
Aws::RoboMaker::Model::VPCConfigResponse::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: VPCConfigResponse.h:142
Aws::RoboMaker::Model::VPCConfigResponse::WithSecurityGroups
VPCConfigResponse & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
Definition: VPCConfigResponse.h:111
Aws::RoboMaker::Model::VPCConfigResponse::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: VPCConfigResponse.h:147
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RoboMaker::Model::VPCConfigResponse::WithSubnets
VPCConfigResponse & WithSubnets(Aws::Vector< Aws::String > &&value)
Definition: VPCConfigResponse.h:70
AWSVector.h
Aws::RoboMaker::Model::VPCConfigResponse::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: VPCConfigResponse.h:152
Aws::RoboMaker::Model::VPCConfigResponse::GetAssignPublicIp
bool GetAssignPublicIp() const
Definition: VPCConfigResponse.h:178
Aws::RoboMaker::Model::VPCConfigResponse::SetSubnets
void SetSubnets(Aws::Vector< Aws::String > &&value)
Definition: VPCConfigResponse.h:60
AWS_ROBOMAKER_API
#define AWS_ROBOMAKER_API
Definition: RoboMaker_EXPORTS.h:28
Aws::RoboMaker::Model::VPCConfigResponse::AddSecurityGroups
VPCConfigResponse & AddSecurityGroups(Aws::String &&value)
Definition: VPCConfigResponse.h:126
Aws::RoboMaker::Model::VPCConfigResponse::WithVpcId
VPCConfigResponse & WithVpcId(const char *value)
Definition: VPCConfigResponse.h:172
Aws::RoboMaker::Model::VPCConfigResponse::AddSubnets
VPCConfigResponse & AddSubnets(const char *value)
Definition: VPCConfigResponse.h:85
RoboMaker_EXPORTS.h
Aws::RoboMaker::Model::VPCConfigResponse::GetVpcId
const Aws::String & GetVpcId() const
Definition: VPCConfigResponse.h:137
Aws::RoboMaker::Model::VPCConfigResponse::SecurityGroupsHasBeenSet
bool SecurityGroupsHasBeenSet() const
Definition: VPCConfigResponse.h:96
Aws::RoboMaker::Model::VPCConfigResponse::WithSecurityGroups
VPCConfigResponse & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
Definition: VPCConfigResponse.h:116
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::RoboMaker::Model::VPCConfigResponse::AddSecurityGroups
VPCConfigResponse & AddSecurityGroups(const Aws::String &value)
Definition: VPCConfigResponse.h:121
Aws::RoboMaker::Model::VPCConfigResponse::SetAssignPublicIp
void SetAssignPublicIp(bool value)
Definition: VPCConfigResponse.h:188
Aws::RoboMaker::Model::VPCConfigResponse::WithAssignPublicIp
VPCConfigResponse & WithAssignPublicIp(bool value)
Definition: VPCConfigResponse.h:193
Aws::RoboMaker::Model::VPCConfigResponse::SetVpcId
void SetVpcId(const char *value)
Definition: VPCConfigResponse.h:157
Aws::RoboMaker::Model::VPCConfigResponse::GetSecurityGroups
const Aws::Vector< Aws::String > & GetSecurityGroups() const
Definition: VPCConfigResponse.h:91
Aws::RoboMaker::Model::VPCConfigResponse::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::RoboMaker::Model::VPCConfigResponse::AddSubnets
VPCConfigResponse & AddSubnets(Aws::String &&value)
Definition: VPCConfigResponse.h:80
Aws
Definition: AccessManagementClient.h:15
Aws::RoboMaker::Model::VPCConfigResponse::SubnetsHasBeenSet
bool SubnetsHasBeenSet() const
Definition: VPCConfigResponse.h:50
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RoboMaker::Model::VPCConfigResponse::AssignPublicIpHasBeenSet
bool AssignPublicIpHasBeenSet() const
Definition: VPCConfigResponse.h:183
Aws::RoboMaker::Model::VPCConfigResponse::WithVpcId
VPCConfigResponse & WithVpcId(const Aws::String &value)
Definition: VPCConfigResponse.h:162
Aws::RoboMaker::Model::VPCConfigResponse::WithVpcId
VPCConfigResponse & WithVpcId(Aws::String &&value)
Definition: VPCConfigResponse.h:167
Aws::RoboMaker::Model::VPCConfigResponse::GetSubnets
const Aws::Vector< Aws::String > & GetSubnets() const
Definition: VPCConfigResponse.h:45