AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RecommendationJobVpcConfig.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
30 public:
31 AWS_SAGEMAKER_API RecommendationJobVpcConfig() = default;
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
43 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
44 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
45 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
46 m_securityGroupIdsHasBeenSet = true;
47 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
48 }
49 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
51 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
52 return *this;
53 }
54 template <typename SecurityGroupIdsT = Aws::String>
55 RecommendationJobVpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
56 m_securityGroupIdsHasBeenSet = true;
57 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
67 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
68 template <typename SubnetsT = Aws::Vector<Aws::String>>
69 void SetSubnets(SubnetsT&& value) {
70 m_subnetsHasBeenSet = true;
71 m_subnets = std::forward<SubnetsT>(value);
72 }
73 template <typename SubnetsT = Aws::Vector<Aws::String>>
75 SetSubnets(std::forward<SubnetsT>(value));
76 return *this;
77 }
78 template <typename SubnetsT = Aws::String>
80 m_subnetsHasBeenSet = true;
81 m_subnets.emplace_back(std::forward<SubnetsT>(value));
82 return *this;
83 }
85 private:
86 Aws::Vector<Aws::String> m_securityGroupIds;
87
89 bool m_securityGroupIdsHasBeenSet = false;
90 bool m_subnetsHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace SageMaker
95} // 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