AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Serverless.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/kafka/Kafka_EXPORTS.h>
9#include <aws/kafka/model/ServerlessClientAuthentication.h>
10#include <aws/kafka/model/VpcConfig.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Kafka {
22namespace Model {
23
32 public:
33 AWS_KAFKA_API Serverless() = default;
34 AWS_KAFKA_API Serverless(Aws::Utils::Json::JsonView jsonValue);
36 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
45 inline const Aws::Vector<VpcConfig>& GetVpcConfigs() const { return m_vpcConfigs; }
46 inline bool VpcConfigsHasBeenSet() const { return m_vpcConfigsHasBeenSet; }
47 template <typename VpcConfigsT = Aws::Vector<VpcConfig>>
48 void SetVpcConfigs(VpcConfigsT&& value) {
49 m_vpcConfigsHasBeenSet = true;
50 m_vpcConfigs = std::forward<VpcConfigsT>(value);
51 }
52 template <typename VpcConfigsT = Aws::Vector<VpcConfig>>
53 Serverless& WithVpcConfigs(VpcConfigsT&& value) {
54 SetVpcConfigs(std::forward<VpcConfigsT>(value));
55 return *this;
56 }
57 template <typename VpcConfigsT = VpcConfig>
58 Serverless& AddVpcConfigs(VpcConfigsT&& value) {
59 m_vpcConfigsHasBeenSet = true;
60 m_vpcConfigs.emplace_back(std::forward<VpcConfigsT>(value));
61 return *this;
62 }
64
66
71 inline const ServerlessClientAuthentication& GetClientAuthentication() const { return m_clientAuthentication; }
72 inline bool ClientAuthenticationHasBeenSet() const { return m_clientAuthenticationHasBeenSet; }
73 template <typename ClientAuthenticationT = ServerlessClientAuthentication>
74 void SetClientAuthentication(ClientAuthenticationT&& value) {
75 m_clientAuthenticationHasBeenSet = true;
76 m_clientAuthentication = std::forward<ClientAuthenticationT>(value);
77 }
78 template <typename ClientAuthenticationT = ServerlessClientAuthentication>
79 Serverless& WithClientAuthentication(ClientAuthenticationT&& value) {
80 SetClientAuthentication(std::forward<ClientAuthenticationT>(value));
81 return *this;
82 }
84 private:
85 Aws::Vector<VpcConfig> m_vpcConfigs;
86
87 ServerlessClientAuthentication m_clientAuthentication;
88 bool m_vpcConfigsHasBeenSet = false;
89 bool m_clientAuthenticationHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace Kafka
94} // namespace Aws
bool VpcConfigsHasBeenSet() const
Definition Serverless.h:46
void SetClientAuthentication(ClientAuthenticationT &&value)
Definition Serverless.h:74
AWS_KAFKA_API Serverless(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API Serverless()=default
const ServerlessClientAuthentication & GetClientAuthentication() const
Definition Serverless.h:71
bool ClientAuthenticationHasBeenSet() const
Definition Serverless.h:72
AWS_KAFKA_API Serverless & operator=(Aws::Utils::Json::JsonView jsonValue)
Serverless & WithClientAuthentication(ClientAuthenticationT &&value)
Definition Serverless.h:79
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVpcConfigs(VpcConfigsT &&value)
Definition Serverless.h:48
Serverless & WithVpcConfigs(VpcConfigsT &&value)
Definition Serverless.h:53
Serverless & AddVpcConfigs(VpcConfigsT &&value)
Definition Serverless.h:58
const Aws::Vector< VpcConfig > & GetVpcConfigs() const
Definition Serverless.h:45
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue