AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
OptimizationVpcConfig.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 OptimizationVpcConfig() = default;
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 OptimizationVpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
58 template<typename SecurityGroupIdsT = Aws::String>
59 OptimizationVpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
61
63
67 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
68 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
69 template<typename SubnetsT = Aws::Vector<Aws::String>>
70 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
71 template<typename SubnetsT = Aws::Vector<Aws::String>>
72 OptimizationVpcConfig& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
73 template<typename SubnetsT = Aws::String>
74 OptimizationVpcConfig& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
76 private:
77
78 Aws::Vector<Aws::String> m_securityGroupIds;
79 bool m_securityGroupIdsHasBeenSet = false;
80
82 bool m_subnetsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace SageMaker
87} // 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