AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VpcConfig.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 VpcConfig();
41 AWS_SAGEMAKER_API VpcConfig(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SAGEMAKER_API VpcConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
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); }
56 inline VpcConfig& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
57 inline VpcConfig& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
58 inline VpcConfig& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
59 inline VpcConfig& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
60 inline VpcConfig& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
62
64
71 inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
72 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
73 inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
74 inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
75 inline VpcConfig& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
76 inline VpcConfig& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
77 inline VpcConfig& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
78 inline VpcConfig& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
79 inline VpcConfig& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
81 private:
82
83 Aws::Vector<Aws::String> m_securityGroupIds;
84 bool m_securityGroupIdsHasBeenSet = false;
85
87 bool m_subnetsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace SageMaker
92} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
VpcConfig & WithSubnets(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:76
VpcConfig & AddSubnets(Aws::String &&value)
Definition VpcConfig.h:78
const Aws::Vector< Aws::String > & GetSubnets() const
Definition VpcConfig.h:71
AWS_SAGEMAKER_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
void SetSubnets(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:73
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:55
VpcConfig & WithSubnets(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:75
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:54
AWS_SAGEMAKER_API VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcConfig & AddSecurityGroupIds(const Aws::String &value)
Definition VpcConfig.h:58
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VpcConfig.h:52
VpcConfig & AddSubnets(const char *value)
Definition VpcConfig.h:79
VpcConfig & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:57
VpcConfig & AddSubnets(const Aws::String &value)
Definition VpcConfig.h:77
VpcConfig & AddSecurityGroupIds(const char *value)
Definition VpcConfig.h:60
VpcConfig & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:56
bool SecurityGroupIdsHasBeenSet() const
Definition VpcConfig.h:53
VpcConfig & AddSecurityGroupIds(Aws::String &&value)
Definition VpcConfig.h:59
AWS_SAGEMAKER_API VpcConfig()
void SetSubnets(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue