AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
54 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
55 inline VpcConfig& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
56 inline VpcConfig& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
57 inline VpcConfig& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
58 inline VpcConfig& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
59 inline VpcConfig& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
61
63
69 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
70 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
71 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
72 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
73 inline VpcConfig& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
74 inline VpcConfig& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
75 inline VpcConfig& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
76 inline VpcConfig& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
77 inline VpcConfig& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
79 private:
80
81 Aws::Vector<Aws::String> m_subnetIds;
82 bool m_subnetIdsHasBeenSet = false;
83
84 Aws::Vector<Aws::String> m_securityGroupIds;
85 bool m_securityGroupIdsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Kafka
90} // namespace Aws
VpcConfig & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:74
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:53
AWS_KAFKA_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VpcConfig.h:69
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:71
VpcConfig & AddSecurityGroupIds(const Aws::String &value)
Definition VpcConfig.h:75
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition VpcConfig.h:51
VpcConfig & WithSubnetIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:55
VpcConfig & AddSecurityGroupIds(Aws::String &&value)
Definition VpcConfig.h:76
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:72
VpcConfig & AddSubnetIds(Aws::String &&value)
Definition VpcConfig.h:58
bool SubnetIdsHasBeenSet() const
Definition VpcConfig.h:52
VpcConfig & AddSubnetIds(const Aws::String &value)
Definition VpcConfig.h:57
VpcConfig & AddSecurityGroupIds(const char *value)
Definition VpcConfig.h:77
AWS_KAFKA_API VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
bool SecurityGroupIdsHasBeenSet() const
Definition VpcConfig.h:70
VpcConfig & AddSubnetIds(const char *value)
Definition VpcConfig.h:59
VpcConfig & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:73
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:54
VpcConfig & WithSubnetIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:56
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue