AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ServerlessRequest.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kafka/model/ServerlessClientAuthentication.h>
10#include <aws/kafka/model/VpcConfig.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Kafka
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_KAFKA_API ServerlessRequest() = default;
42 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
52 inline const Aws::Vector<VpcConfig>& GetVpcConfigs() const { return m_vpcConfigs; }
53 inline bool VpcConfigsHasBeenSet() const { return m_vpcConfigsHasBeenSet; }
54 template<typename VpcConfigsT = Aws::Vector<VpcConfig>>
55 void SetVpcConfigs(VpcConfigsT&& value) { m_vpcConfigsHasBeenSet = true; m_vpcConfigs = std::forward<VpcConfigsT>(value); }
56 template<typename VpcConfigsT = Aws::Vector<VpcConfig>>
57 ServerlessRequest& WithVpcConfigs(VpcConfigsT&& value) { SetVpcConfigs(std::forward<VpcConfigsT>(value)); return *this;}
58 template<typename VpcConfigsT = VpcConfig>
59 ServerlessRequest& AddVpcConfigs(VpcConfigsT&& value) { m_vpcConfigsHasBeenSet = true; m_vpcConfigs.emplace_back(std::forward<VpcConfigsT>(value)); return *this; }
61
63
68 inline const ServerlessClientAuthentication& GetClientAuthentication() const { return m_clientAuthentication; }
69 inline bool ClientAuthenticationHasBeenSet() const { return m_clientAuthenticationHasBeenSet; }
70 template<typename ClientAuthenticationT = ServerlessClientAuthentication>
71 void SetClientAuthentication(ClientAuthenticationT&& value) { m_clientAuthenticationHasBeenSet = true; m_clientAuthentication = std::forward<ClientAuthenticationT>(value); }
72 template<typename ClientAuthenticationT = ServerlessClientAuthentication>
73 ServerlessRequest& WithClientAuthentication(ClientAuthenticationT&& value) { SetClientAuthentication(std::forward<ClientAuthenticationT>(value)); return *this;}
75 private:
76
77 Aws::Vector<VpcConfig> m_vpcConfigs;
78 bool m_vpcConfigsHasBeenSet = false;
79
80 ServerlessClientAuthentication m_clientAuthentication;
81 bool m_clientAuthenticationHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace Kafka
86} // 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