AWS SDK for C++  1.8.102
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:
38  VPCConfigResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
39  Aws::Utils::Json::JsonValue Jsonize() const;
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
VPCConfigResponse & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
VPCConfigResponse & WithSubnets(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
VPCConfigResponse & AddSecurityGroups(const char *value)
VPCConfigResponse & AddSubnets(const Aws::String &value)
void SetSubnets(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
void SetSubnets(Aws::Vector< Aws::String > &&value)
VPCConfigResponse & AddSubnets(const char *value)
const Aws::Vector< Aws::String > & GetSubnets() const
VPCConfigResponse & WithSubnets(Aws::Vector< Aws::String > &&value)
VPCConfigResponse & WithVpcId(Aws::String &&value)
VPCConfigResponse & WithAssignPublicIp(bool value)
VPCConfigResponse & WithVpcId(const Aws::String &value)
VPCConfigResponse & WithVpcId(const char *value)
VPCConfigResponse & AddSecurityGroups(Aws::String &&value)
void SetVpcId(const Aws::String &value)
VPCConfigResponse & AddSecurityGroups(const Aws::String &value)
VPCConfigResponse & AddSubnets(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetSecurityGroups(Aws::Vector< Aws::String > &&value)
VPCConfigResponse & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
#define AWS_ROBOMAKER_API