AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
NeoVpcConfig.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
36 public:
37 AWS_SAGEMAKER_API NeoVpcConfig() = default;
38 AWS_SAGEMAKER_API NeoVpcConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKER_API NeoVpcConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
48 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
49 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
50 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
51 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
52 m_securityGroupIdsHasBeenSet = true;
53 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
54 }
55 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
56 NeoVpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
57 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
58 return *this;
59 }
60 template <typename SecurityGroupIdsT = Aws::String>
61 NeoVpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
62 m_securityGroupIdsHasBeenSet = true;
63 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
64 return *this;
65 }
67
69
73 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
74 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
75 template <typename SubnetsT = Aws::Vector<Aws::String>>
76 void SetSubnets(SubnetsT&& value) {
77 m_subnetsHasBeenSet = true;
78 m_subnets = std::forward<SubnetsT>(value);
79 }
80 template <typename SubnetsT = Aws::Vector<Aws::String>>
81 NeoVpcConfig& WithSubnets(SubnetsT&& value) {
82 SetSubnets(std::forward<SubnetsT>(value));
83 return *this;
84 }
85 template <typename SubnetsT = Aws::String>
86 NeoVpcConfig& AddSubnets(SubnetsT&& value) {
87 m_subnetsHasBeenSet = true;
88 m_subnets.emplace_back(std::forward<SubnetsT>(value));
89 return *this;
90 }
92 private:
93 Aws::Vector<Aws::String> m_securityGroupIds;
94
96 bool m_securityGroupIdsHasBeenSet = false;
97 bool m_subnetsHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace SageMaker
102} // namespace Aws
NeoVpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
void SetSubnets(SubnetsT &&value)
NeoVpcConfig & AddSubnets(SubnetsT &&value)
AWS_SAGEMAKER_API NeoVpcConfig(Aws::Utils::Json::JsonView jsonValue)
NeoVpcConfig & WithSubnets(SubnetsT &&value)
AWS_SAGEMAKER_API NeoVpcConfig()=default
const Aws::Vector< Aws::String > & GetSubnets() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
NeoVpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_SAGEMAKER_API NeoVpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue