AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ServerlessRequest.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
33 public:
34 AWS_KAFKA_API ServerlessRequest() = default;
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 ServerlessRequest& WithVpcConfigs(VpcConfigsT&& value) {
55 SetVpcConfigs(std::forward<VpcConfigsT>(value));
56 return *this;
57 }
58 template <typename VpcConfigsT = VpcConfig>
59 ServerlessRequest& 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 ServerlessRequest& WithClientAuthentication(ClientAuthenticationT&& value) {
81 SetClientAuthentication(std::forward<ClientAuthenticationT>(value));
82 return *this;
83 }
85 private:
86 Aws::Vector<VpcConfig> m_vpcConfigs;
87
88 ServerlessClientAuthentication m_clientAuthentication;
89 bool m_vpcConfigsHasBeenSet = false;
90 bool m_clientAuthenticationHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace Kafka
95} // namespace Aws
AWS_KAFKA_API ServerlessRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
ServerlessRequest & WithVpcConfigs(VpcConfigsT &&value)
const Aws::Vector< VpcConfig > & GetVpcConfigs() const
ServerlessRequest & AddVpcConfigs(VpcConfigsT &&value)
AWS_KAFKA_API ServerlessRequest(Aws::Utils::Json::JsonView jsonValue)
void SetClientAuthentication(ClientAuthenticationT &&value)
const ServerlessClientAuthentication & GetClientAuthentication() const
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KAFKA_API ServerlessRequest()=default
void SetVpcConfigs(VpcConfigsT &&value)
ServerlessRequest & WithClientAuthentication(ClientAuthenticationT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue