AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VpcConfig.h
1
6#pragma once
7#include <aws/kafka/Kafka_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 Kafka
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_KAFKA_API VpcConfig() = default;
39 AWS_KAFKA_API VpcConfig(Aws::Utils::Json::JsonView jsonValue);
41 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
51 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
52 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
53 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
54 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
55 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
56 VpcConfig& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
57 template<typename SubnetIdsT = Aws::String>
58 VpcConfig& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
60
62
68 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
69 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
70 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
71 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
72 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
73 VpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
74 template<typename SecurityGroupIdsT = Aws::String>
75 VpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
77 private:
78
79 Aws::Vector<Aws::String> m_subnetIds;
80 bool m_subnetIdsHasBeenSet = false;
81
82 Aws::Vector<Aws::String> m_securityGroupIds;
83 bool m_securityGroupIdsHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Kafka
88} // namespace Aws
AWS_KAFKA_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
void SetSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:54
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VpcConfig.h:68
VpcConfig & WithSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:56
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition VpcConfig.h:51
bool SubnetIdsHasBeenSet() const
Definition VpcConfig.h:52
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:71
VpcConfig & AddSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:58
bool SecurityGroupIdsHasBeenSet() const
Definition VpcConfig.h:69
VpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:75
VpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:73
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue