AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
55 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
56 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
57 VpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
58 template<typename SecurityGroupIdsT = Aws::String>
59 VpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
61
63
70 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
71 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
72 template<typename SubnetsT = Aws::Vector<Aws::String>>
73 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
74 template<typename SubnetsT = Aws::Vector<Aws::String>>
75 VpcConfig& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
76 template<typename SubnetsT = Aws::String>
77 VpcConfig& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
79 private:
80
81 Aws::Vector<Aws::String> m_securityGroupIds;
82 bool m_securityGroupIdsHasBeenSet = false;
83
85 bool m_subnetsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace SageMaker
90} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetSubnets() const
Definition VpcConfig.h:70
VpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:59
AWS_SAGEMAKER_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:55
AWS_SAGEMAKER_API VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API VpcConfig()=default
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VpcConfig.h:52
VpcConfig & WithSubnets(SubnetsT &&value)
Definition VpcConfig.h:75
VpcConfig & AddSubnets(SubnetsT &&value)
Definition VpcConfig.h:77
void SetSubnets(SubnetsT &&value)
Definition VpcConfig.h:73
VpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:57
bool SecurityGroupIdsHasBeenSet() const
Definition VpcConfig.h:53
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue