AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
OptimizationVpcConfig.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
34 public:
35 AWS_SAGEMAKER_API OptimizationVpcConfig() = default;
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 OptimizationVpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
55 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
56 return *this;
57 }
58 template <typename SecurityGroupIdsT = Aws::String>
59 OptimizationVpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
60 m_securityGroupIdsHasBeenSet = true;
61 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
62 return *this;
63 }
65
67
71 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
72 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
73 template <typename SubnetsT = Aws::Vector<Aws::String>>
74 void SetSubnets(SubnetsT&& value) {
75 m_subnetsHasBeenSet = true;
76 m_subnets = std::forward<SubnetsT>(value);
77 }
78 template <typename SubnetsT = Aws::Vector<Aws::String>>
80 SetSubnets(std::forward<SubnetsT>(value));
81 return *this;
82 }
83 template <typename SubnetsT = Aws::String>
84 OptimizationVpcConfig& AddSubnets(SubnetsT&& value) {
85 m_subnetsHasBeenSet = true;
86 m_subnets.emplace_back(std::forward<SubnetsT>(value));
87 return *this;
88 }
90 private:
91 Aws::Vector<Aws::String> m_securityGroupIds;
92
94 bool m_securityGroupIdsHasBeenSet = false;
95 bool m_subnetsHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace SageMaker
100} // namespace Aws
AWS_SAGEMAKER_API OptimizationVpcConfig()=default
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetSubnets() const
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
OptimizationVpcConfig & WithSubnets(SubnetsT &&value)
AWS_SAGEMAKER_API OptimizationVpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
OptimizationVpcConfig & AddSubnets(SubnetsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
AWS_SAGEMAKER_API OptimizationVpcConfig(Aws::Utils::Json::JsonView jsonValue)
OptimizationVpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
OptimizationVpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue