AWS SDK for C++  1.9.19
AWS SDK for C++
VPCConfig.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 
36  {
37  public:
42 
43 
47  inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
48 
52  inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
53 
57  inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
58 
62  inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
63 
67  inline VPCConfig& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
68 
72  inline VPCConfig& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
73 
77  inline VPCConfig& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
78 
82  inline VPCConfig& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
83 
87  inline VPCConfig& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
88 
89 
93  inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
94 
98  inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
99 
103  inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
104 
108  inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
109 
113  inline VPCConfig& WithSecurityGroups(const Aws::Vector<Aws::String>& value) { SetSecurityGroups(value); return *this;}
114 
118  inline VPCConfig& WithSecurityGroups(Aws::Vector<Aws::String>&& value) { SetSecurityGroups(std::move(value)); return *this;}
119 
123  inline VPCConfig& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
124 
128  inline VPCConfig& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
129 
133  inline VPCConfig& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
134 
135 
139  inline bool GetAssignPublicIp() const{ return m_assignPublicIp; }
140 
144  inline bool AssignPublicIpHasBeenSet() const { return m_assignPublicIpHasBeenSet; }
145 
149  inline void SetAssignPublicIp(bool value) { m_assignPublicIpHasBeenSet = true; m_assignPublicIp = value; }
150 
154  inline VPCConfig& WithAssignPublicIp(bool value) { SetAssignPublicIp(value); return *this;}
155 
156  private:
157 
158  Aws::Vector<Aws::String> m_subnets;
159  bool m_subnetsHasBeenSet;
160 
161  Aws::Vector<Aws::String> m_securityGroups;
162  bool m_securityGroupsHasBeenSet;
163 
164  bool m_assignPublicIp;
165  bool m_assignPublicIpHasBeenSet;
166  };
167 
168 } // namespace Model
169 } // namespace RoboMaker
170 } // namespace Aws
Aws::RoboMaker::Model::VPCConfig::GetSecurityGroups
const Aws::Vector< Aws::String > & GetSecurityGroups() const
Definition: VPCConfig.h:93
Aws::RoboMaker::Model::VPCConfig::WithSubnets
VPCConfig & WithSubnets(const Aws::Vector< Aws::String > &value)
Definition: VPCConfig.h:67
Aws::RoboMaker::Model::VPCConfig::SetSecurityGroups
void SetSecurityGroups(Aws::Vector< Aws::String > &&value)
Definition: VPCConfig.h:108
Aws::RoboMaker::Model::VPCConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::RoboMaker::Model::VPCConfig::SetSecurityGroups
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
Definition: VPCConfig.h:103
Aws::RoboMaker::Model::VPCConfig::WithAssignPublicIp
VPCConfig & WithAssignPublicIp(bool value)
Definition: VPCConfig.h:154
Aws::RoboMaker::Model::VPCConfig::AddSubnets
VPCConfig & AddSubnets(const Aws::String &value)
Definition: VPCConfig.h:77
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::RoboMaker::Model::VPCConfig::WithSubnets
VPCConfig & WithSubnets(Aws::Vector< Aws::String > &&value)
Definition: VPCConfig.h:72
Aws::RoboMaker::Model::VPCConfig::GetSubnets
const Aws::Vector< Aws::String > & GetSubnets() const
Definition: VPCConfig.h:47
AWS_ROBOMAKER_API
#define AWS_ROBOMAKER_API
Definition: RoboMaker_EXPORTS.h:28
Aws::RoboMaker::Model::VPCConfig::WithSecurityGroups
VPCConfig & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
Definition: VPCConfig.h:118
Aws::RoboMaker::Model::VPCConfig
Definition: VPCConfig.h:36
Aws::RoboMaker::Model::VPCConfig::SetAssignPublicIp
void SetAssignPublicIp(bool value)
Definition: VPCConfig.h:149
Aws::RoboMaker::Model::VPCConfig::operator=
VPCConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
RoboMaker_EXPORTS.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::RoboMaker::Model::VPCConfig::AssignPublicIpHasBeenSet
bool AssignPublicIpHasBeenSet() const
Definition: VPCConfig.h:144
Aws::RoboMaker::Model::VPCConfig::SecurityGroupsHasBeenSet
bool SecurityGroupsHasBeenSet() const
Definition: VPCConfig.h:98
Aws::RoboMaker::Model::VPCConfig::VPCConfig
VPCConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::RoboMaker::Model::VPCConfig::WithSecurityGroups
VPCConfig & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
Definition: VPCConfig.h:113
Aws::RoboMaker::Model::VPCConfig::SetSubnets
void SetSubnets(const Aws::Vector< Aws::String > &value)
Definition: VPCConfig.h:57
Aws::RoboMaker::Model::VPCConfig::GetAssignPublicIp
bool GetAssignPublicIp() const
Definition: VPCConfig.h:139
Aws::RoboMaker::Model::VPCConfig::AddSubnets
VPCConfig & AddSubnets(Aws::String &&value)
Definition: VPCConfig.h:82
Aws::RoboMaker::Model::VPCConfig::AddSecurityGroups
VPCConfig & AddSecurityGroups(const Aws::String &value)
Definition: VPCConfig.h:123
Aws
Definition: AccessManagementClient.h:15
Aws::RoboMaker::Model::VPCConfig::SubnetsHasBeenSet
bool SubnetsHasBeenSet() const
Definition: VPCConfig.h:52
Aws::RoboMaker::Model::VPCConfig::AddSecurityGroups
VPCConfig & AddSecurityGroups(Aws::String &&value)
Definition: VPCConfig.h:128
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RoboMaker::Model::VPCConfig::AddSubnets
VPCConfig & AddSubnets(const char *value)
Definition: VPCConfig.h:87
Aws::RoboMaker::Model::VPCConfig::SetSubnets
void SetSubnets(Aws::Vector< Aws::String > &&value)
Definition: VPCConfig.h:62
Aws::RoboMaker::Model::VPCConfig::VPCConfig
VPCConfig()
Aws::RoboMaker::Model::VPCConfig::AddSecurityGroups
VPCConfig & AddSecurityGroups(const char *value)
Definition: VPCConfig.h:133