AWS SDK for C++  1.9.153
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 SageMaker
23 {
24 namespace Model
25 {
26 
40  {
41  public:
46 
47 
52  inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
53 
58  inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
59 
64  inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
65 
70  inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
71 
76  inline VpcConfig& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
77 
82  inline VpcConfig& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
83 
88  inline VpcConfig& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
89 
94  inline VpcConfig& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
95 
100  inline VpcConfig& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
101 
102 
110  inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
111 
119  inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
120 
128  inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
129 
137  inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
138 
146  inline VpcConfig& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
147 
155  inline VpcConfig& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
156 
164  inline VpcConfig& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
165 
173  inline VpcConfig& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
174 
182  inline VpcConfig& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
183 
184  private:
185 
186  Aws::Vector<Aws::String> m_securityGroupIds;
187  bool m_securityGroupIdsHasBeenSet;
188 
189  Aws::Vector<Aws::String> m_subnets;
190  bool m_subnetsHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace SageMaker
195 } // namespace Aws
Aws::SageMaker::Model::VpcConfig::operator=
VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::VpcConfig::AddSubnets
VpcConfig & AddSubnets(Aws::String &&value)
Definition: VpcConfig.h:173
SageMaker_EXPORTS.h
Aws::SageMaker::Model::VpcConfig::WithSubnets
VpcConfig & WithSubnets(Aws::Vector< Aws::String > &&value)
Definition: VpcConfig.h:155
Aws::SageMaker::Model::VpcConfig::AddSecurityGroupIds
VpcConfig & AddSecurityGroupIds(const Aws::String &value)
Definition: VpcConfig.h:88
Aws::SageMaker::Model::VpcConfig::AddSubnets
VpcConfig & AddSubnets(const char *value)
Definition: VpcConfig.h:182
Aws::SageMaker::Model::VpcConfig::AddSecurityGroupIds
VpcConfig & AddSecurityGroupIds(Aws::String &&value)
Definition: VpcConfig.h:94
Aws::SageMaker::Model::VpcConfig::SetSecurityGroupIds
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition: VpcConfig.h:64
Aws::SageMaker::Model::VpcConfig::VpcConfig
VpcConfig()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SageMaker::Model::VpcConfig::AddSubnets
VpcConfig & AddSubnets(const Aws::String &value)
Definition: VpcConfig.h:164
Aws::SageMaker::Model::VpcConfig::GetSubnets
const Aws::Vector< Aws::String > & GetSubnets() const
Definition: VpcConfig.h:110
Aws::SageMaker::Model::VpcConfig::WithSecurityGroupIds
VpcConfig & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition: VpcConfig.h:82
Aws::SageMaker::Model::VpcConfig::GetSecurityGroupIds
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition: VpcConfig.h:52
Aws::SageMaker::Model::VpcConfig::SetSubnets
void SetSubnets(Aws::Vector< Aws::String > &&value)
Definition: VpcConfig.h:137
AWSVector.h
Aws::SageMaker::Model::VpcConfig::SubnetsHasBeenSet
bool SubnetsHasBeenSet() const
Definition: VpcConfig.h:119
Aws::SageMaker::Model::VpcConfig::WithSecurityGroupIds
VpcConfig & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition: VpcConfig.h:76
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::VpcConfig::AddSecurityGroupIds
VpcConfig & AddSecurityGroupIds(const char *value)
Definition: VpcConfig.h:100
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::VpcConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SageMaker::Model::VpcConfig::WithSubnets
VpcConfig & WithSubnets(const Aws::Vector< Aws::String > &value)
Definition: VpcConfig.h:146
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::VpcConfig
Definition: VpcConfig.h:40
Aws::SageMaker::Model::VpcConfig::VpcConfig
VpcConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::VpcConfig::SecurityGroupIdsHasBeenSet
bool SecurityGroupIdsHasBeenSet() const
Definition: VpcConfig.h:58
Aws::SageMaker::Model::VpcConfig::SetSubnets
void SetSubnets(const Aws::Vector< Aws::String > &value)
Definition: VpcConfig.h:128
Aws::SageMaker::Model::VpcConfig::SetSecurityGroupIds
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition: VpcConfig.h:70