AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SelfManagedKafkaAccessConfigurationVpc.h
1
6#pragma once
7#include <aws/pipes/Pipes_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 Pipes
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_PIPES_API SelfManagedKafkaAccessConfigurationVpc() = default;
39 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
48 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
49 template<typename SubnetsT = Aws::Vector<Aws::String>>
50 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
51 template<typename SubnetsT = Aws::Vector<Aws::String>>
52 SelfManagedKafkaAccessConfigurationVpc& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
53 template<typename SubnetsT = Aws::String>
54 SelfManagedKafkaAccessConfigurationVpc& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
56
58
63 inline const Aws::Vector<Aws::String>& GetSecurityGroup() const { return m_securityGroup; }
64 inline bool SecurityGroupHasBeenSet() const { return m_securityGroupHasBeenSet; }
65 template<typename SecurityGroupT = Aws::Vector<Aws::String>>
66 void SetSecurityGroup(SecurityGroupT&& value) { m_securityGroupHasBeenSet = true; m_securityGroup = std::forward<SecurityGroupT>(value); }
67 template<typename SecurityGroupT = Aws::Vector<Aws::String>>
68 SelfManagedKafkaAccessConfigurationVpc& WithSecurityGroup(SecurityGroupT&& value) { SetSecurityGroup(std::forward<SecurityGroupT>(value)); return *this;}
69 template<typename SecurityGroupT = Aws::String>
70 SelfManagedKafkaAccessConfigurationVpc& AddSecurityGroup(SecurityGroupT&& value) { m_securityGroupHasBeenSet = true; m_securityGroup.emplace_back(std::forward<SecurityGroupT>(value)); return *this; }
72 private:
73
75 bool m_subnetsHasBeenSet = false;
76
77 Aws::Vector<Aws::String> m_securityGroup;
78 bool m_securityGroupHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace Pipes
83} // namespace Aws
AWS_PIPES_API SelfManagedKafkaAccessConfigurationVpc & operator=(Aws::Utils::Json::JsonView jsonValue)
SelfManagedKafkaAccessConfigurationVpc & AddSubnets(SubnetsT &&value)
SelfManagedKafkaAccessConfigurationVpc & WithSecurityGroup(SecurityGroupT &&value)
SelfManagedKafkaAccessConfigurationVpc & AddSecurityGroup(SecurityGroupT &&value)
SelfManagedKafkaAccessConfigurationVpc & WithSubnets(SubnetsT &&value)
AWS_PIPES_API SelfManagedKafkaAccessConfigurationVpc(Aws::Utils::Json::JsonView jsonValue)
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue