AWS SDK for C++  1.9.159
AWS SDK for C++
AwsVpcConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace ECS
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
48  inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
49 
55  inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
56 
62  inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
63 
69  inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
70 
76  inline AwsVpcConfiguration& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
77 
83  inline AwsVpcConfiguration& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
84 
90  inline AwsVpcConfiguration& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
91 
97  inline AwsVpcConfiguration& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
98 
104  inline AwsVpcConfiguration& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
105 
106 
114  inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
115 
123  inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
124 
132  inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
133 
141  inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
142 
150  inline AwsVpcConfiguration& WithSecurityGroups(const Aws::Vector<Aws::String>& value) { SetSecurityGroups(value); return *this;}
151 
159  inline AwsVpcConfiguration& WithSecurityGroups(Aws::Vector<Aws::String>&& value) { SetSecurityGroups(std::move(value)); return *this;}
160 
168  inline AwsVpcConfiguration& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
169 
177  inline AwsVpcConfiguration& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
178 
186  inline AwsVpcConfiguration& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
187 
188 
193  inline const AssignPublicIp& GetAssignPublicIp() const{ return m_assignPublicIp; }
194 
199  inline bool AssignPublicIpHasBeenSet() const { return m_assignPublicIpHasBeenSet; }
200 
205  inline void SetAssignPublicIp(const AssignPublicIp& value) { m_assignPublicIpHasBeenSet = true; m_assignPublicIp = value; }
206 
211  inline void SetAssignPublicIp(AssignPublicIp&& value) { m_assignPublicIpHasBeenSet = true; m_assignPublicIp = std::move(value); }
212 
217  inline AwsVpcConfiguration& WithAssignPublicIp(const AssignPublicIp& value) { SetAssignPublicIp(value); return *this;}
218 
223  inline AwsVpcConfiguration& WithAssignPublicIp(AssignPublicIp&& value) { SetAssignPublicIp(std::move(value)); return *this;}
224 
225  private:
226 
227  Aws::Vector<Aws::String> m_subnets;
228  bool m_subnetsHasBeenSet;
229 
230  Aws::Vector<Aws::String> m_securityGroups;
231  bool m_securityGroupsHasBeenSet;
232 
233  AssignPublicIp m_assignPublicIp;
234  bool m_assignPublicIpHasBeenSet;
235  };
236 
237 } // namespace Model
238 } // namespace ECS
239 } // namespace Aws
Aws::ECS::Model::AwsVpcConfiguration::GetSubnets
const Aws::Vector< Aws::String > & GetSubnets() const
Definition: AwsVpcConfiguration.h:48
Aws::ECS::Model::AwsVpcConfiguration::AwsVpcConfiguration
AwsVpcConfiguration()
Aws::ECS::Model::AwsVpcConfiguration::WithSubnets
AwsVpcConfiguration & WithSubnets(const Aws::Vector< Aws::String > &value)
Definition: AwsVpcConfiguration.h:76
Aws::ECS::Model::AwsVpcConfiguration
Definition: AwsVpcConfiguration.h:35
Aws::ECS::Model::AwsVpcConfiguration::WithAssignPublicIp
AwsVpcConfiguration & WithAssignPublicIp(AssignPublicIp &&value)
Definition: AwsVpcConfiguration.h:223
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::AwsVpcConfiguration::WithSecurityGroups
AwsVpcConfiguration & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
Definition: AwsVpcConfiguration.h:159
Aws::ECS::Model::AwsVpcConfiguration::GetSecurityGroups
const Aws::Vector< Aws::String > & GetSecurityGroups() const
Definition: AwsVpcConfiguration.h:114
Aws::ECS::Model::AwsVpcConfiguration::SetSubnets
void SetSubnets(const Aws::Vector< Aws::String > &value)
Definition: AwsVpcConfiguration.h:62
Aws::ECS::Model::AwsVpcConfiguration::WithAssignPublicIp
AwsVpcConfiguration & WithAssignPublicIp(const AssignPublicIp &value)
Definition: AwsVpcConfiguration.h:217
Aws::ECS::Model::AwsVpcConfiguration::AddSecurityGroups
AwsVpcConfiguration & AddSecurityGroups(const char *value)
Definition: AwsVpcConfiguration.h:186
AssignPublicIp.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::AwsVpcConfiguration::SetAssignPublicIp
void SetAssignPublicIp(AssignPublicIp &&value)
Definition: AwsVpcConfiguration.h:211
Aws::ECS::Model::AwsVpcConfiguration::WithSecurityGroups
AwsVpcConfiguration & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
Definition: AwsVpcConfiguration.h:150
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::AwsVpcConfiguration::SetAssignPublicIp
void SetAssignPublicIp(const AssignPublicIp &value)
Definition: AwsVpcConfiguration.h:205
Aws::ECS::Model::AwsVpcConfiguration::AssignPublicIpHasBeenSet
bool AssignPublicIpHasBeenSet() const
Definition: AwsVpcConfiguration.h:199
Aws::ECS::Model::AwsVpcConfiguration::AwsVpcConfiguration
AwsVpcConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::AwsVpcConfiguration::AddSecurityGroups
AwsVpcConfiguration & AddSecurityGroups(Aws::String &&value)
Definition: AwsVpcConfiguration.h:177
Aws::ECS::Model::AwsVpcConfiguration::SetSubnets
void SetSubnets(Aws::Vector< Aws::String > &&value)
Definition: AwsVpcConfiguration.h:69
Aws::ECS::Model::AwsVpcConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::AwsVpcConfiguration::SubnetsHasBeenSet
bool SubnetsHasBeenSet() const
Definition: AwsVpcConfiguration.h:55
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::AwsVpcConfiguration::SetSecurityGroups
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
Definition: AwsVpcConfiguration.h:132
Aws::ECS::Model::AwsVpcConfiguration::AddSubnets
AwsVpcConfiguration & AddSubnets(const char *value)
Definition: AwsVpcConfiguration.h:104
Aws::ECS::Model::AwsVpcConfiguration::GetAssignPublicIp
const AssignPublicIp & GetAssignPublicIp() const
Definition: AwsVpcConfiguration.h:193
Aws::ECS::Model::AwsVpcConfiguration::SecurityGroupsHasBeenSet
bool SecurityGroupsHasBeenSet() const
Definition: AwsVpcConfiguration.h:123
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::AwsVpcConfiguration::SetSecurityGroups
void SetSecurityGroups(Aws::Vector< Aws::String > &&value)
Definition: AwsVpcConfiguration.h:141
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::AwsVpcConfiguration::AddSecurityGroups
AwsVpcConfiguration & AddSecurityGroups(const Aws::String &value)
Definition: AwsVpcConfiguration.h:168
Aws::ECS::Model::AssignPublicIp
AssignPublicIp
Definition: AssignPublicIp.h:17
Aws::ECS::Model::AwsVpcConfiguration::AddSubnets
AwsVpcConfiguration & AddSubnets(Aws::String &&value)
Definition: AwsVpcConfiguration.h:97
Aws::ECS::Model::AwsVpcConfiguration::WithSubnets
AwsVpcConfiguration & WithSubnets(Aws::Vector< Aws::String > &&value)
Definition: AwsVpcConfiguration.h:83
ECS_EXPORTS.h
Aws::ECS::Model::AwsVpcConfiguration::operator=
AwsVpcConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::AwsVpcConfiguration::AddSubnets
AwsVpcConfiguration & AddSubnets(const Aws::String &value)
Definition: AwsVpcConfiguration.h:90