AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RecommendationJobVpcConfig.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
34 {
35 public:
36 AWS_SAGEMAKER_API RecommendationJobVpcConfig() = default;
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
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) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
52 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
53 RecommendationJobVpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
54 template<typename SecurityGroupIdsT = Aws::String>
55 RecommendationJobVpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
57
59
62 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
63 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
64 template<typename SubnetsT = Aws::Vector<Aws::String>>
65 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
66 template<typename SubnetsT = Aws::Vector<Aws::String>>
67 RecommendationJobVpcConfig& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
68 template<typename SubnetsT = Aws::String>
69 RecommendationJobVpcConfig& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
71 private:
72
73 Aws::Vector<Aws::String> m_securityGroupIds;
74 bool m_securityGroupIdsHasBeenSet = false;
75
77 bool m_subnetsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace SageMaker
82} // namespace Aws
AWS_SAGEMAKER_API RecommendationJobVpcConfig()=default
AWS_SAGEMAKER_API RecommendationJobVpcConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API RecommendationJobVpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
RecommendationJobVpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
RecommendationJobVpcConfig & AddSubnets(SubnetsT &&value)
RecommendationJobVpcConfig & WithSubnets(SubnetsT &&value)
const Aws::Vector< Aws::String > & GetSubnets() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
RecommendationJobVpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue