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/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
58 inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const { return m_securityGroupArns; }
59 inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
60 template <typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
61 void SetSecurityGroupArns(SecurityGroupArnsT&& value) {
62 m_securityGroupArnsHasBeenSet = true;
63 m_securityGroupArns = std::forward<SecurityGroupArnsT>(value);
64 }
65 template <typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
66 VpcConfig& WithSecurityGroupArns(SecurityGroupArnsT&& value) {
67 SetSecurityGroupArns(std::forward<SecurityGroupArnsT>(value));
68 return *this;
69 }
70 template <typename SecurityGroupArnsT = Aws::String>
71 VpcConfig& AddSecurityGroupArns(SecurityGroupArnsT&& value) {
72 m_securityGroupArnsHasBeenSet = true;
73 m_securityGroupArns.emplace_back(std::forward<SecurityGroupArnsT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Vector<Aws::String>& GetSubnetArns() const { return m_subnetArns; }
83 inline bool SubnetArnsHasBeenSet() const { return m_subnetArnsHasBeenSet; }
84 template <typename SubnetArnsT = Aws::Vector<Aws::String>>
85 void SetSubnetArns(SubnetArnsT&& value) {
86 m_subnetArnsHasBeenSet = true;
87 m_subnetArns = std::forward<SubnetArnsT>(value);
88 }
89 template <typename SubnetArnsT = Aws::Vector<Aws::String>>
90 VpcConfig& WithSubnetArns(SubnetArnsT&& value) {
91 SetSubnetArns(std::forward<SubnetArnsT>(value));
92 return *this;
93 }
94 template <typename SubnetArnsT = Aws::String>
95 VpcConfig& AddSubnetArns(SubnetArnsT&& value) {
96 m_subnetArnsHasBeenSet = true;
97 m_subnetArns.emplace_back(std::forward<SubnetArnsT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_vpcArn;
103
104 Aws::Vector<Aws::String> m_securityGroupArns;
105
106 Aws::Vector<Aws::String> m_subnetArns;
107 bool m_vpcArnHasBeenSet = false;
108 bool m_securityGroupArnsHasBeenSet = false;
109 bool m_subnetArnsHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace SecurityAgent
114} // namespace Aws
void SetVpcArn(VpcArnT &&value)
Definition VpcConfig.h:43
void SetSubnetArns(SubnetArnsT &&value)
Definition VpcConfig.h:85
VpcConfig & AddSecurityGroupArns(SecurityGroupArnsT &&value)
Definition VpcConfig.h:71
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:90
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYAGENT_API VpcConfig()=default
VpcConfig & WithSecurityGroupArns(SecurityGroupArnsT &&value)
Definition VpcConfig.h:66
const Aws::Vector< Aws::String > & GetSubnetArns() const
Definition VpcConfig.h:82
const Aws::String & GetVpcArn() const
Definition VpcConfig.h:40
VpcConfig & AddSubnetArns(SubnetArnsT &&value)
Definition VpcConfig.h:95
const Aws::Vector< Aws::String > & GetSecurityGroupArns() const
Definition VpcConfig.h:58
VpcConfig & WithVpcArn(VpcArnT &&value)
Definition VpcConfig.h:48
void SetSecurityGroupArns(SecurityGroupArnsT &&value)
Definition VpcConfig.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue