AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
VpcConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
33class VpcConfig {
34 public:
35 AWS_SAGEMAKER_API VpcConfig() = default;
36 AWS_SAGEMAKER_API VpcConfig(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKER_API VpcConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
47 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
48 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
49 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
50 m_securityGroupIdsHasBeenSet = true;
51 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
52 }
53 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
54 VpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
55 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
56 return *this;
57 }
58 template <typename SecurityGroupIdsT = Aws::String>
59 VpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
60 m_securityGroupIdsHasBeenSet = true;
61 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
62 return *this;
63 }
65
67
74 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
75 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
76 template <typename SubnetsT = Aws::Vector<Aws::String>>
77 void SetSubnets(SubnetsT&& value) {
78 m_subnetsHasBeenSet = true;
79 m_subnets = std::forward<SubnetsT>(value);
80 }
81 template <typename SubnetsT = Aws::Vector<Aws::String>>
82 VpcConfig& WithSubnets(SubnetsT&& value) {
83 SetSubnets(std::forward<SubnetsT>(value));
84 return *this;
85 }
86 template <typename SubnetsT = Aws::String>
87 VpcConfig& AddSubnets(SubnetsT&& value) {
88 m_subnetsHasBeenSet = true;
89 m_subnets.emplace_back(std::forward<SubnetsT>(value));
90 return *this;
91 }
93 private:
94 Aws::Vector<Aws::String> m_securityGroupIds;
95
97 bool m_securityGroupIdsHasBeenSet = false;
98 bool m_subnetsHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace SageMaker
103} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetSubnets() const
Definition VpcConfig.h:74
VpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:59
AWS_SAGEMAKER_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:49
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:46
VpcConfig & WithSubnets(SubnetsT &&value)
Definition VpcConfig.h:82
VpcConfig & AddSubnets(SubnetsT &&value)
Definition VpcConfig.h:87
void SetSubnets(SubnetsT &&value)
Definition VpcConfig.h:77
VpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:54
bool SecurityGroupIdsHasBeenSet() const
Definition VpcConfig.h:47
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue