AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
NeoVpcConfig.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
40 {
41 public:
42 AWS_SAGEMAKER_API NeoVpcConfig() = default;
43 AWS_SAGEMAKER_API NeoVpcConfig(Aws::Utils::Json::JsonView jsonValue);
44 AWS_SAGEMAKER_API NeoVpcConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
54 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
55 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
56 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
57 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
58 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
59 NeoVpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
60 template<typename SecurityGroupIdsT = Aws::String>
61 NeoVpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
63
65
69 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
70 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
71 template<typename SubnetsT = Aws::Vector<Aws::String>>
72 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
73 template<typename SubnetsT = Aws::Vector<Aws::String>>
74 NeoVpcConfig& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
75 template<typename SubnetsT = Aws::String>
76 NeoVpcConfig& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(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
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