AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
VpcConfig.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/devicefarm/DeviceFarm_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DeviceFarm {
21namespace Model {
22
29class VpcConfig {
30 public:
31 AWS_DEVICEFARM_API VpcConfig() = default;
32 AWS_DEVICEFARM_API VpcConfig(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEVICEFARM_API VpcConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
41 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
42 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
43 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
44 m_securityGroupIdsHasBeenSet = true;
45 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
46 }
47 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
48 VpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
49 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
50 return *this;
51 }
52 template <typename SecurityGroupIdsT = Aws::String>
53 VpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
54 m_securityGroupIdsHasBeenSet = true;
55 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
65 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
66 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
67 void SetSubnetIds(SubnetIdsT&& value) {
68 m_subnetIdsHasBeenSet = true;
69 m_subnetIds = std::forward<SubnetIdsT>(value);
70 }
71 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
72 VpcConfig& WithSubnetIds(SubnetIdsT&& value) {
73 SetSubnetIds(std::forward<SubnetIdsT>(value));
74 return *this;
75 }
76 template <typename SubnetIdsT = Aws::String>
77 VpcConfig& AddSubnetIds(SubnetIdsT&& value) {
78 m_subnetIdsHasBeenSet = true;
79 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetVpcId() const { return m_vpcId; }
89 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
90 template <typename VpcIdT = Aws::String>
91 void SetVpcId(VpcIdT&& value) {
92 m_vpcIdHasBeenSet = true;
93 m_vpcId = std::forward<VpcIdT>(value);
94 }
95 template <typename VpcIdT = Aws::String>
96 VpcConfig& WithVpcId(VpcIdT&& value) {
97 SetVpcId(std::forward<VpcIdT>(value));
98 return *this;
99 }
101 private:
102 Aws::Vector<Aws::String> m_securityGroupIds;
103
104 Aws::Vector<Aws::String> m_subnetIds;
105
106 Aws::String m_vpcId;
107 bool m_securityGroupIdsHasBeenSet = false;
108 bool m_subnetIdsHasBeenSet = false;
109 bool m_vpcIdHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace DeviceFarm
114} // namespace Aws
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VpcConfig.h:40
VpcConfig & WithVpcId(VpcIdT &&value)
Definition VpcConfig.h:96
void SetVpcId(VpcIdT &&value)
Definition VpcConfig.h:91
const Aws::String & GetVpcId() const
Definition VpcConfig.h:88
AWS_DEVICEFARM_API VpcConfig()=default
VpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:48
AWS_DEVICEFARM_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
VpcConfig & AddSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:77
VpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:53
bool SecurityGroupIdsHasBeenSet() const
Definition VpcConfig.h:41
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition VpcConfig.h:64
void SetSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:67
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:43
VpcConfig & WithSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:72
AWS_DEVICEFARM_API VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() 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