AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/kafka/Kafka_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Kafka {
21namespace Model {
22
31class VpcConfig {
32 public:
33 AWS_KAFKA_API VpcConfig() = default;
34 AWS_KAFKA_API VpcConfig(Aws::Utils::Json::JsonView jsonValue);
36 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
45 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
46 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
47 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
48 void SetSubnetIds(SubnetIdsT&& value) {
49 m_subnetIdsHasBeenSet = true;
50 m_subnetIds = std::forward<SubnetIdsT>(value);
51 }
52 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
53 VpcConfig& WithSubnetIds(SubnetIdsT&& value) {
54 SetSubnetIds(std::forward<SubnetIdsT>(value));
55 return *this;
56 }
57 template <typename SubnetIdsT = Aws::String>
58 VpcConfig& AddSubnetIds(SubnetIdsT&& value) {
59 m_subnetIdsHasBeenSet = true;
60 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
61 return *this;
62 }
64
66
72 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
73 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
74 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
75 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
76 m_securityGroupIdsHasBeenSet = true;
77 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
78 }
79 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
80 VpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
81 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
82 return *this;
83 }
84 template <typename SecurityGroupIdsT = Aws::String>
85 VpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
86 m_securityGroupIdsHasBeenSet = true;
87 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
88 return *this;
89 }
91 private:
92 Aws::Vector<Aws::String> m_subnetIds;
93
94 Aws::Vector<Aws::String> m_securityGroupIds;
95 bool m_subnetIdsHasBeenSet = false;
96 bool m_securityGroupIdsHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Kafka
101} // namespace Aws
AWS_KAFKA_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
void SetSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:48
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VpcConfig.h:72
VpcConfig & WithSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:53
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition VpcConfig.h:45
bool SubnetIdsHasBeenSet() const
Definition VpcConfig.h:46
AWS_KAFKA_API VpcConfig()=default
AWS_KAFKA_API VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:75
VpcConfig & AddSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:58
bool SecurityGroupIdsHasBeenSet() const
Definition VpcConfig.h:73
VpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:85
VpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:80
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue