AWS SDK for C++

AWS SDK for C++ Version 1.11.786

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/omics/Omics_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Omics {
21namespace Model {
22
28class VpcConfig {
29 public:
30 AWS_OMICS_API VpcConfig() = default;
31 AWS_OMICS_API VpcConfig(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OMICS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
40 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
41 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
42 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
43 m_securityGroupIdsHasBeenSet = true;
44 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
45 }
46 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
47 VpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
48 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
49 return *this;
50 }
51 template <typename SecurityGroupIdsT = Aws::String>
52 VpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
53 m_securityGroupIdsHasBeenSet = true;
54 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
64 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
65 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
66 void SetSubnetIds(SubnetIdsT&& value) {
67 m_subnetIdsHasBeenSet = true;
68 m_subnetIds = std::forward<SubnetIdsT>(value);
69 }
70 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
71 VpcConfig& WithSubnetIds(SubnetIdsT&& value) {
72 SetSubnetIds(std::forward<SubnetIdsT>(value));
73 return *this;
74 }
75 template <typename SubnetIdsT = Aws::String>
76 VpcConfig& AddSubnetIds(SubnetIdsT&& value) {
77 m_subnetIdsHasBeenSet = true;
78 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
79 return *this;
80 }
82 private:
83 Aws::Vector<Aws::String> m_securityGroupIds;
84
85 Aws::Vector<Aws::String> m_subnetIds;
86 bool m_securityGroupIdsHasBeenSet = false;
87 bool m_subnetIdsHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace Omics
92} // namespace Aws
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition VpcConfig.h:63
VpcConfig & WithSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:71
AWS_OMICS_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
bool SubnetIdsHasBeenSet() const
Definition VpcConfig.h:64
VpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:47
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:42
AWS_OMICS_API VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OMICS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OMICS_API VpcConfig()=default
VpcConfig & AddSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:76
void SetSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:66
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VpcConfig.h:39
VpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:52
bool SecurityGroupIdsHasBeenSet() const
Definition VpcConfig.h:40
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue