AWS SDK for C++

AWS SDK for C++ Version 1.11.775

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/ServerlessConnectivityInfo.h>
11#include <aws/kafka/model/VpcConfig.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Kafka {
23namespace Model {
24
33 public:
34 AWS_KAFKA_API Serverless() = default;
35 AWS_KAFKA_API Serverless(Aws::Utils::Json::JsonView jsonValue);
37 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
46 inline const Aws::Vector<VpcConfig>& GetVpcConfigs() const { return m_vpcConfigs; }
47 inline bool VpcConfigsHasBeenSet() const { return m_vpcConfigsHasBeenSet; }
48 template <typename VpcConfigsT = Aws::Vector<VpcConfig>>
49 void SetVpcConfigs(VpcConfigsT&& value) {
50 m_vpcConfigsHasBeenSet = true;
51 m_vpcConfigs = std::forward<VpcConfigsT>(value);
52 }
53 template <typename VpcConfigsT = Aws::Vector<VpcConfig>>
54 Serverless& WithVpcConfigs(VpcConfigsT&& value) {
55 SetVpcConfigs(std::forward<VpcConfigsT>(value));
56 return *this;
57 }
58 template <typename VpcConfigsT = VpcConfig>
59 Serverless& AddVpcConfigs(VpcConfigsT&& value) {
60 m_vpcConfigsHasBeenSet = true;
61 m_vpcConfigs.emplace_back(std::forward<VpcConfigsT>(value));
62 return *this;
63 }
65
67
72 inline const ServerlessClientAuthentication& GetClientAuthentication() const { return m_clientAuthentication; }
73 inline bool ClientAuthenticationHasBeenSet() const { return m_clientAuthenticationHasBeenSet; }
74 template <typename ClientAuthenticationT = ServerlessClientAuthentication>
75 void SetClientAuthentication(ClientAuthenticationT&& value) {
76 m_clientAuthenticationHasBeenSet = true;
77 m_clientAuthentication = std::forward<ClientAuthenticationT>(value);
78 }
79 template <typename ClientAuthenticationT = ServerlessClientAuthentication>
80 Serverless& WithClientAuthentication(ClientAuthenticationT&& value) {
81 SetClientAuthentication(std::forward<ClientAuthenticationT>(value));
82 return *this;
83 }
85
87
93 inline const ServerlessConnectivityInfo& GetConnectivityInfo() const { return m_connectivityInfo; }
94 inline bool ConnectivityInfoHasBeenSet() const { return m_connectivityInfoHasBeenSet; }
95 template <typename ConnectivityInfoT = ServerlessConnectivityInfo>
96 void SetConnectivityInfo(ConnectivityInfoT&& value) {
97 m_connectivityInfoHasBeenSet = true;
98 m_connectivityInfo = std::forward<ConnectivityInfoT>(value);
99 }
100 template <typename ConnectivityInfoT = ServerlessConnectivityInfo>
101 Serverless& WithConnectivityInfo(ConnectivityInfoT&& value) {
102 SetConnectivityInfo(std::forward<ConnectivityInfoT>(value));
103 return *this;
104 }
106 private:
107 Aws::Vector<VpcConfig> m_vpcConfigs;
108
109 ServerlessClientAuthentication m_clientAuthentication;
110
111 ServerlessConnectivityInfo m_connectivityInfo;
112 bool m_vpcConfigsHasBeenSet = false;
113 bool m_clientAuthenticationHasBeenSet = false;
114 bool m_connectivityInfoHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace Kafka
119} // namespace Aws
bool VpcConfigsHasBeenSet() const
Definition Serverless.h:47
void SetClientAuthentication(ClientAuthenticationT &&value)
Definition Serverless.h:75
AWS_KAFKA_API Serverless(Aws::Utils::Json::JsonView jsonValue)
void SetConnectivityInfo(ConnectivityInfoT &&value)
Definition Serverless.h:96
AWS_KAFKA_API Serverless()=default
const ServerlessClientAuthentication & GetClientAuthentication() const
Definition Serverless.h:72
bool ClientAuthenticationHasBeenSet() const
Definition Serverless.h:73
AWS_KAFKA_API Serverless & operator=(Aws::Utils::Json::JsonView jsonValue)
Serverless & WithClientAuthentication(ClientAuthenticationT &&value)
Definition Serverless.h:80
Serverless & WithConnectivityInfo(ConnectivityInfoT &&value)
Definition Serverless.h:101
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVpcConfigs(VpcConfigsT &&value)
Definition Serverless.h:49
const ServerlessConnectivityInfo & GetConnectivityInfo() const
Definition Serverless.h:93
Serverless & WithVpcConfigs(VpcConfigsT &&value)
Definition Serverless.h:54
bool ConnectivityInfoHasBeenSet() const
Definition Serverless.h:94
Serverless & AddVpcConfigs(VpcConfigsT &&value)
Definition Serverless.h:59
const Aws::Vector< VpcConfig > & GetVpcConfigs() const
Definition Serverless.h:46
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue