AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OptimizationVpcConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_SAGEMAKER_API OptimizationVpcConfig();
43 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
53 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
54 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
55 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
58 inline OptimizationVpcConfig& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
59 inline OptimizationVpcConfig& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
60 inline OptimizationVpcConfig& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
62
64
68 inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
69 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
70 inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
71 inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
72 inline OptimizationVpcConfig& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
73 inline OptimizationVpcConfig& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
74 inline OptimizationVpcConfig& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
75 inline OptimizationVpcConfig& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
76 inline OptimizationVpcConfig& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
78 private:
79
80 Aws::Vector<Aws::String> m_securityGroupIds;
81 bool m_securityGroupIdsHasBeenSet = false;
82
84 bool m_subnetsHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace SageMaker
89} // namespace Aws
void SetSubnets(Aws::Vector< Aws::String > &&value)
OptimizationVpcConfig & WithSubnets(Aws::Vector< Aws::String > &&value)
OptimizationVpcConfig & AddSubnets(const Aws::String &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
OptimizationVpcConfig & AddSecurityGroupIds(const Aws::String &value)
OptimizationVpcConfig & AddSubnets(const char *value)
OptimizationVpcConfig & AddSecurityGroupIds(Aws::String &&value)
const Aws::Vector< Aws::String > & GetSubnets() const
OptimizationVpcConfig & WithSubnets(const Aws::Vector< Aws::String > &value)
OptimizationVpcConfig & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
OptimizationVpcConfig & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
AWS_SAGEMAKER_API OptimizationVpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
OptimizationVpcConfig & AddSecurityGroupIds(const char *value)
void SetSubnets(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
AWS_SAGEMAKER_API OptimizationVpcConfig(Aws::Utils::Json::JsonView jsonValue)
OptimizationVpcConfig & AddSubnets(Aws::String &&value)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue