AWS SDK for C++

AWS SDK for C++ Version 1.11.812

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/securityagent/SecurityAgent_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityAgent {
21namespace Model {
22
29class VpcConfig {
30 public:
31 AWS_SECURITYAGENT_API VpcConfig() = default;
32 AWS_SECURITYAGENT_API VpcConfig(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYAGENT_API VpcConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetVpcArn() const { return m_vpcArn; }
41 inline bool VpcArnHasBeenSet() const { return m_vpcArnHasBeenSet; }
42 template <typename VpcArnT = Aws::String>
43 void SetVpcArn(VpcArnT&& value) {
44 m_vpcArnHasBeenSet = true;
45 m_vpcArn = std::forward<VpcArnT>(value);
46 }
47 template <typename VpcArnT = Aws::String>
48 VpcConfig& WithVpcArn(VpcArnT&& value) {
49 SetVpcArn(std::forward<VpcArnT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const { return m_securityGroupArns; }
60 inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
61 template <typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
62 void SetSecurityGroupArns(SecurityGroupArnsT&& value) {
63 m_securityGroupArnsHasBeenSet = true;
64 m_securityGroupArns = std::forward<SecurityGroupArnsT>(value);
65 }
66 template <typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
67 VpcConfig& WithSecurityGroupArns(SecurityGroupArnsT&& value) {
68 SetSecurityGroupArns(std::forward<SecurityGroupArnsT>(value));
69 return *this;
70 }
71 template <typename SecurityGroupArnsT = Aws::String>
72 VpcConfig& AddSecurityGroupArns(SecurityGroupArnsT&& value) {
73 m_securityGroupArnsHasBeenSet = true;
74 m_securityGroupArns.emplace_back(std::forward<SecurityGroupArnsT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::Vector<Aws::String>& GetSubnetArns() const { return m_subnetArns; }
85 inline bool SubnetArnsHasBeenSet() const { return m_subnetArnsHasBeenSet; }
86 template <typename SubnetArnsT = Aws::Vector<Aws::String>>
87 void SetSubnetArns(SubnetArnsT&& value) {
88 m_subnetArnsHasBeenSet = true;
89 m_subnetArns = std::forward<SubnetArnsT>(value);
90 }
91 template <typename SubnetArnsT = Aws::Vector<Aws::String>>
92 VpcConfig& WithSubnetArns(SubnetArnsT&& value) {
93 SetSubnetArns(std::forward<SubnetArnsT>(value));
94 return *this;
95 }
96 template <typename SubnetArnsT = Aws::String>
97 VpcConfig& AddSubnetArns(SubnetArnsT&& value) {
98 m_subnetArnsHasBeenSet = true;
99 m_subnetArns.emplace_back(std::forward<SubnetArnsT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_vpcArn;
105
106 Aws::Vector<Aws::String> m_securityGroupArns;
107
108 Aws::Vector<Aws::String> m_subnetArns;
109 bool m_vpcArnHasBeenSet = false;
110 bool m_securityGroupArnsHasBeenSet = false;
111 bool m_subnetArnsHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace SecurityAgent
116} // namespace Aws
void SetVpcArn(VpcArnT &&value)
Definition VpcConfig.h:43
void SetSubnetArns(SubnetArnsT &&value)
Definition VpcConfig.h:87
VpcConfig & AddSecurityGroupArns(SecurityGroupArnsT &&value)
Definition VpcConfig.h:72
AWS_SECURITYAGENT_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcConfig & WithSubnetArns(SubnetArnsT &&value)
Definition VpcConfig.h:92
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYAGENT_API VpcConfig()=default
VpcConfig & WithSecurityGroupArns(SecurityGroupArnsT &&value)
Definition VpcConfig.h:67
const Aws::Vector< Aws::String > & GetSubnetArns() const
Definition VpcConfig.h:84
const Aws::String & GetVpcArn() const
Definition VpcConfig.h:40
VpcConfig & AddSubnetArns(SubnetArnsT &&value)
Definition VpcConfig.h:97
const Aws::Vector< Aws::String > & GetSecurityGroupArns() const
Definition VpcConfig.h:59
VpcConfig & WithVpcArn(VpcArnT &&value)
Definition VpcConfig.h:48
void SetSecurityGroupArns(SecurityGroupArnsT &&value)
Definition VpcConfig.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue