AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VpcConfig.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_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 DeviceFarm
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DEVICEFARM_API VpcConfig();
37 AWS_DEVICEFARM_API VpcConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEVICEFARM_API VpcConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
47 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
48 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
49 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
50 inline VpcConfig& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
51 inline VpcConfig& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
52 inline VpcConfig& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
53 inline VpcConfig& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
54 inline VpcConfig& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
56
58
61 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
62 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
63 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
64 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
65 inline VpcConfig& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
66 inline VpcConfig& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
67 inline VpcConfig& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
68 inline VpcConfig& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
69 inline VpcConfig& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
71
73
76 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
77 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
78 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
79 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
80 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
81 inline VpcConfig& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
82 inline VpcConfig& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
83 inline VpcConfig& WithVpcId(const char* value) { SetVpcId(value); return *this;}
85 private:
86
87 Aws::Vector<Aws::String> m_securityGroupIds;
88 bool m_securityGroupIdsHasBeenSet = false;
89
90 Aws::Vector<Aws::String> m_subnetIds;
91 bool m_subnetIdsHasBeenSet = false;
92
93 Aws::String m_vpcId;
94 bool m_vpcIdHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace DeviceFarm
99} // namespace Aws
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:64
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VpcConfig.h:46
VpcConfig & AddSubnetIds(Aws::String &&value)
Definition VpcConfig.h:68
void SetVpcId(const char *value)
Definition VpcConfig.h:80
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:48
VpcConfig & WithVpcId(const char *value)
Definition VpcConfig.h:83
const Aws::String & GetVpcId() const
Definition VpcConfig.h:76
VpcConfig & WithVpcId(const Aws::String &value)
Definition VpcConfig.h:81
VpcConfig & AddSubnetIds(const Aws::String &value)
Definition VpcConfig.h:67
VpcConfig & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:51
AWS_DEVICEFARM_API VpcConfig()
VpcConfig & AddSecurityGroupIds(const Aws::String &value)
Definition VpcConfig.h:52
void SetVpcId(const Aws::String &value)
Definition VpcConfig.h:78
VpcConfig & WithSubnetIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:66
AWS_DEVICEFARM_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
VpcConfig & AddSecurityGroupIds(const char *value)
Definition VpcConfig.h:54
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:49
void SetVpcId(Aws::String &&value)
Definition VpcConfig.h:79
bool SecurityGroupIdsHasBeenSet() const
Definition VpcConfig.h:47
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:63
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition VpcConfig.h:61
VpcConfig & WithSubnetIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:65
VpcConfig & AddSecurityGroupIds(Aws::String &&value)
Definition VpcConfig.h:53
AWS_DEVICEFARM_API VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcConfig & AddSubnetIds(const char *value)
Definition VpcConfig.h:69
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
VpcConfig & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:50
VpcConfig & WithVpcId(Aws::String &&value)
Definition VpcConfig.h:82
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue