AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Vpc.h
1
6#pragma once
7#include <aws/kafkaconnect/KafkaConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace KafkaConnect
23{
24namespace Model
25{
26
33 class Vpc
34 {
35 public:
36 AWS_KAFKACONNECT_API Vpc() = default;
37 AWS_KAFKACONNECT_API Vpc(Aws::Utils::Json::JsonView jsonValue);
38 AWS_KAFKACONNECT_API Vpc& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_KAFKACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
47 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
48 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
49 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
50 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
51 Vpc& WithSecurityGroups(SecurityGroupsT&& value) { SetSecurityGroups(std::forward<SecurityGroupsT>(value)); return *this;}
52 template<typename SecurityGroupsT = Aws::String>
53 Vpc& AddSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value)); return *this; }
55
57
60 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
61 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
62 template<typename SubnetsT = Aws::Vector<Aws::String>>
63 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
64 template<typename SubnetsT = Aws::Vector<Aws::String>>
65 Vpc& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
66 template<typename SubnetsT = Aws::String>
67 Vpc& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
69 private:
70
71 Aws::Vector<Aws::String> m_securityGroups;
72 bool m_securityGroupsHasBeenSet = false;
73
75 bool m_subnetsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace KafkaConnect
80} // 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:61
void SetSecurityGroups(SecurityGroupsT &&value)
Definition Vpc.h:49
const Aws::Vector< Aws::String > & GetSecurityGroups() const
Definition Vpc.h:46
AWS_KAFKACONNECT_API Vpc()=default
AWS_KAFKACONNECT_API Vpc & operator=(Aws::Utils::Json::JsonView jsonValue)
Vpc & WithSubnets(SubnetsT &&value)
Definition Vpc.h:65
bool SecurityGroupsHasBeenSet() const
Definition Vpc.h:47
const Aws::Vector< Aws::String > & GetSubnets() const
Definition Vpc.h:60
AWS_KAFKACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSubnets(SubnetsT &&value)
Definition Vpc.h:63
Vpc & WithSecurityGroups(SecurityGroupsT &&value)
Definition Vpc.h:51
Vpc & AddSubnets(SubnetsT &&value)
Definition Vpc.h:67
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue