AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
49 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
50 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
51 inline WorkforceVpcConfigRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
52 inline WorkforceVpcConfigRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
53 inline WorkforceVpcConfigRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
55
57
61 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
62 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
63 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
64 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
67 inline WorkforceVpcConfigRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
68 inline WorkforceVpcConfigRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
69 inline WorkforceVpcConfigRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
71
73
76 inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
77 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
78 inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
79 inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
80 inline WorkforceVpcConfigRequest& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
81 inline WorkforceVpcConfigRequest& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
82 inline WorkforceVpcConfigRequest& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
83 inline WorkforceVpcConfigRequest& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
84 inline WorkforceVpcConfigRequest& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
86 private:
87
88 Aws::String m_vpcId;
89 bool m_vpcIdHasBeenSet = false;
90
91 Aws::Vector<Aws::String> m_securityGroupIds;
92 bool m_securityGroupIdsHasBeenSet = false;
93
95 bool m_subnetsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace SageMaker
100} // namespace Aws
WorkforceVpcConfigRequest & WithVpcId(const char *value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
WorkforceVpcConfigRequest & AddSubnets(Aws::String &&value)
WorkforceVpcConfigRequest & AddSecurityGroupIds(const char *value)
WorkforceVpcConfigRequest & AddSecurityGroupIds(Aws::String &&value)
WorkforceVpcConfigRequest & WithVpcId(Aws::String &&value)
WorkforceVpcConfigRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
WorkforceVpcConfigRequest & AddSubnets(const char *value)
WorkforceVpcConfigRequest & AddSubnets(const Aws::String &value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetSubnets(Aws::Vector< Aws::String > &&value)
WorkforceVpcConfigRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
WorkforceVpcConfigRequest & WithVpcId(const Aws::String &value)
void SetSubnets(const Aws::Vector< Aws::String > &value)
WorkforceVpcConfigRequest & WithSubnets(const Aws::Vector< Aws::String > &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
WorkforceVpcConfigRequest & AddSecurityGroupIds(const Aws::String &value)
WorkforceVpcConfigRequest & WithSubnets(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue