AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
KafkaClusterClientVpcConfig.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
34 {
35 public:
36 AWS_KAFKA_API KafkaClusterClientVpcConfig() = default;
39 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
47 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
48 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
49 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
50 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
51 KafkaClusterClientVpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
52 template<typename SecurityGroupIdsT = Aws::String>
53 KafkaClusterClientVpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
55
57
60 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
61 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
62 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
63 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
64 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
65 KafkaClusterClientVpcConfig& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
66 template<typename SubnetIdsT = Aws::String>
67 KafkaClusterClientVpcConfig& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
69 private:
70
71 Aws::Vector<Aws::String> m_securityGroupIds;
72 bool m_securityGroupIdsHasBeenSet = false;
73
74 Aws::Vector<Aws::String> m_subnetIds;
75 bool m_subnetIdsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Kafka
80} // namespace Aws
KafkaClusterClientVpcConfig & AddSubnetIds(SubnetIdsT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
AWS_KAFKA_API KafkaClusterClientVpcConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
KafkaClusterClientVpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
KafkaClusterClientVpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_KAFKA_API KafkaClusterClientVpcConfig()=default
AWS_KAFKA_API KafkaClusterClientVpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
KafkaClusterClientVpcConfig & WithSubnetIds(SubnetIdsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue