AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
Vpc.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/kafkaconnect/KafkaConnect_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace KafkaConnect {
21namespace Model {
22
29class Vpc {
30 public:
31 AWS_KAFKACONNECT_API Vpc() = default;
32 AWS_KAFKACONNECT_API Vpc(Aws::Utils::Json::JsonView jsonValue);
33 AWS_KAFKACONNECT_API Vpc& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_KAFKACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
41 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
42 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
43 void SetSecurityGroups(SecurityGroupsT&& value) {
44 m_securityGroupsHasBeenSet = true;
45 m_securityGroups = std::forward<SecurityGroupsT>(value);
46 }
47 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
48 Vpc& WithSecurityGroups(SecurityGroupsT&& value) {
49 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
50 return *this;
51 }
52 template <typename SecurityGroupsT = Aws::String>
53 Vpc& AddSecurityGroups(SecurityGroupsT&& value) {
54 m_securityGroupsHasBeenSet = true;
55 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
65 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
66 template <typename SubnetsT = Aws::Vector<Aws::String>>
67 void SetSubnets(SubnetsT&& value) {
68 m_subnetsHasBeenSet = true;
69 m_subnets = std::forward<SubnetsT>(value);
70 }
71 template <typename SubnetsT = Aws::Vector<Aws::String>>
72 Vpc& WithSubnets(SubnetsT&& value) {
73 SetSubnets(std::forward<SubnetsT>(value));
74 return *this;
75 }
76 template <typename SubnetsT = Aws::String>
77 Vpc& AddSubnets(SubnetsT&& value) {
78 m_subnetsHasBeenSet = true;
79 m_subnets.emplace_back(std::forward<SubnetsT>(value));
80 return *this;
81 }
83 private:
84 Aws::Vector<Aws::String> m_securityGroups;
85
87 bool m_securityGroupsHasBeenSet = false;
88 bool m_subnetsHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace KafkaConnect
93} // namespace Aws
AWS_KAFKACONNECT_API Vpc(Aws::Utils::Json::JsonView jsonValue)
Vpc & AddSecurityGroups(SecurityGroupsT &&value)
Definition Vpc.h:53
bool SubnetsHasBeenSet() const
Definition Vpc.h:65
void SetSecurityGroups(SecurityGroupsT &&value)
Definition Vpc.h:43
const Aws::Vector< Aws::String > & GetSecurityGroups() const
Definition Vpc.h:40
AWS_KAFKACONNECT_API Vpc()=default
AWS_KAFKACONNECT_API Vpc & operator=(Aws::Utils::Json::JsonView jsonValue)
Vpc & WithSubnets(SubnetsT &&value)
Definition Vpc.h:72
bool SecurityGroupsHasBeenSet() const
Definition Vpc.h:41
const Aws::Vector< Aws::String > & GetSubnets() const
Definition Vpc.h:64
AWS_KAFKACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSubnets(SubnetsT &&value)
Definition Vpc.h:67
Vpc & WithSecurityGroups(SecurityGroupsT &&value)
Definition Vpc.h:48
Vpc & AddSubnets(SubnetsT &&value)
Definition Vpc.h:77
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue