AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
WorkforceVpcConfigRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 WorkforceVpcConfigRequest() = default;
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetVpcId() const { return m_vpcId; }
47 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
48 template<typename VpcIdT = Aws::String>
49 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
50 template<typename VpcIdT = Aws::String>
51 WorkforceVpcConfigRequest& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
53
55
59 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
60 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
61 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
62 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
63 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
64 WorkforceVpcConfigRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
65 template<typename SecurityGroupIdsT = Aws::String>
66 WorkforceVpcConfigRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
68
70
73 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
74 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
75 template<typename SubnetsT = Aws::Vector<Aws::String>>
76 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
77 template<typename SubnetsT = Aws::Vector<Aws::String>>
78 WorkforceVpcConfigRequest& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
79 template<typename SubnetsT = Aws::String>
80 WorkforceVpcConfigRequest& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
82 private:
83
84 Aws::String m_vpcId;
85 bool m_vpcIdHasBeenSet = false;
86
87 Aws::Vector<Aws::String> m_securityGroupIds;
88 bool m_securityGroupIdsHasBeenSet = false;
89
91 bool m_subnetsHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace SageMaker
96} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API WorkforceVpcConfigRequest()=default
WorkforceVpcConfigRequest & WithVpcId(VpcIdT &&value)
WorkforceVpcConfigRequest & AddSubnets(SubnetsT &&value)
WorkforceVpcConfigRequest & WithSubnets(SubnetsT &&value)
WorkforceVpcConfigRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
WorkforceVpcConfigRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_SAGEMAKER_API WorkforceVpcConfigRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSubnets() const
AWS_SAGEMAKER_API WorkforceVpcConfigRequest(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue