AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
ClusterOperationV2Serverless.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/kafka/model/ServerlessConnectivityInfo.h>
9#include <aws/kafka/model/VpcConnectionInfoServerless.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Kafka {
21namespace Model {
22
31 public:
32 AWS_KAFKA_API ClusterOperationV2Serverless() = default;
35 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const ServerlessConnectivityInfo& GetSourceClusterInfo() const { return m_sourceClusterInfo; }
44 inline bool SourceClusterInfoHasBeenSet() const { return m_sourceClusterInfoHasBeenSet; }
45 template <typename SourceClusterInfoT = ServerlessConnectivityInfo>
46 void SetSourceClusterInfo(SourceClusterInfoT&& value) {
47 m_sourceClusterInfoHasBeenSet = true;
48 m_sourceClusterInfo = std::forward<SourceClusterInfoT>(value);
49 }
50 template <typename SourceClusterInfoT = ServerlessConnectivityInfo>
52 SetSourceClusterInfo(std::forward<SourceClusterInfoT>(value));
53 return *this;
54 }
56
58
63 inline const ServerlessConnectivityInfo& GetTargetClusterInfo() const { return m_targetClusterInfo; }
64 inline bool TargetClusterInfoHasBeenSet() const { return m_targetClusterInfoHasBeenSet; }
65 template <typename TargetClusterInfoT = ServerlessConnectivityInfo>
66 void SetTargetClusterInfo(TargetClusterInfoT&& value) {
67 m_targetClusterInfoHasBeenSet = true;
68 m_targetClusterInfo = std::forward<TargetClusterInfoT>(value);
69 }
70 template <typename TargetClusterInfoT = ServerlessConnectivityInfo>
72 SetTargetClusterInfo(std::forward<TargetClusterInfoT>(value));
73 return *this;
74 }
76
78
83 inline const VpcConnectionInfoServerless& GetVpcConnectionInfo() const { return m_vpcConnectionInfo; }
84 inline bool VpcConnectionInfoHasBeenSet() const { return m_vpcConnectionInfoHasBeenSet; }
85 template <typename VpcConnectionInfoT = VpcConnectionInfoServerless>
86 void SetVpcConnectionInfo(VpcConnectionInfoT&& value) {
87 m_vpcConnectionInfoHasBeenSet = true;
88 m_vpcConnectionInfo = std::forward<VpcConnectionInfoT>(value);
89 }
90 template <typename VpcConnectionInfoT = VpcConnectionInfoServerless>
92 SetVpcConnectionInfo(std::forward<VpcConnectionInfoT>(value));
93 return *this;
94 }
96 private:
97 ServerlessConnectivityInfo m_sourceClusterInfo;
98
99 ServerlessConnectivityInfo m_targetClusterInfo;
100
101 VpcConnectionInfoServerless m_vpcConnectionInfo;
102 bool m_sourceClusterInfoHasBeenSet = false;
103 bool m_targetClusterInfoHasBeenSet = false;
104 bool m_vpcConnectionInfoHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace Kafka
109} // namespace Aws
ClusterOperationV2Serverless & WithTargetClusterInfo(TargetClusterInfoT &&value)
AWS_KAFKA_API ClusterOperationV2Serverless()=default
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KAFKA_API ClusterOperationV2Serverless & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterOperationV2Serverless & WithSourceClusterInfo(SourceClusterInfoT &&value)
ClusterOperationV2Serverless & WithVpcConnectionInfo(VpcConnectionInfoT &&value)
const ServerlessConnectivityInfo & GetTargetClusterInfo() const
const ServerlessConnectivityInfo & GetSourceClusterInfo() const
AWS_KAFKA_API ClusterOperationV2Serverless(Aws::Utils::Json::JsonView jsonValue)
const VpcConnectionInfoServerless & GetVpcConnectionInfo() const
Aws::Utils::Json::JsonValue JsonValue