AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
VpcConnection.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kafka/Kafka_EXPORTS.h>
10#include <aws/kafka/model/VpcConnectionState.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 VpcConnection() = default;
35 AWS_KAFKA_API VpcConnection(Aws::Utils::Json::JsonView jsonValue);
37 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline const Aws::String& GetVpcConnectionArn() const { return m_vpcConnectionArn; }
46 inline bool VpcConnectionArnHasBeenSet() const { return m_vpcConnectionArnHasBeenSet; }
47 template <typename VpcConnectionArnT = Aws::String>
48 void SetVpcConnectionArn(VpcConnectionArnT&& value) {
49 m_vpcConnectionArnHasBeenSet = true;
50 m_vpcConnectionArn = std::forward<VpcConnectionArnT>(value);
51 }
52 template <typename VpcConnectionArnT = Aws::String>
53 VpcConnection& WithVpcConnectionArn(VpcConnectionArnT&& value) {
54 SetVpcConnectionArn(std::forward<VpcConnectionArnT>(value));
55 return *this;
56 }
58
60
66 inline const Aws::String& GetTargetClusterArn() const { return m_targetClusterArn; }
67 inline bool TargetClusterArnHasBeenSet() const { return m_targetClusterArnHasBeenSet; }
68 template <typename TargetClusterArnT = Aws::String>
69 void SetTargetClusterArn(TargetClusterArnT&& value) {
70 m_targetClusterArnHasBeenSet = true;
71 m_targetClusterArn = std::forward<TargetClusterArnT>(value);
72 }
73 template <typename TargetClusterArnT = Aws::String>
74 VpcConnection& WithTargetClusterArn(TargetClusterArnT&& value) {
75 SetTargetClusterArn(std::forward<TargetClusterArnT>(value));
76 return *this;
77 }
79
81
86 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
87 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
88 template <typename CreationTimeT = Aws::Utils::DateTime>
89 void SetCreationTime(CreationTimeT&& value) {
90 m_creationTimeHasBeenSet = true;
91 m_creationTime = std::forward<CreationTimeT>(value);
92 }
93 template <typename CreationTimeT = Aws::Utils::DateTime>
94 VpcConnection& WithCreationTime(CreationTimeT&& value) {
95 SetCreationTime(std::forward<CreationTimeT>(value));
96 return *this;
97 }
99
101
107 inline const Aws::String& GetAuthentication() const { return m_authentication; }
108 inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; }
109 template <typename AuthenticationT = Aws::String>
110 void SetAuthentication(AuthenticationT&& value) {
111 m_authenticationHasBeenSet = true;
112 m_authentication = std::forward<AuthenticationT>(value);
113 }
114 template <typename AuthenticationT = Aws::String>
115 VpcConnection& WithAuthentication(AuthenticationT&& value) {
116 SetAuthentication(std::forward<AuthenticationT>(value));
117 return *this;
118 }
120
122
127 inline const Aws::String& GetVpcId() const { return m_vpcId; }
128 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
129 template <typename VpcIdT = Aws::String>
130 void SetVpcId(VpcIdT&& value) {
131 m_vpcIdHasBeenSet = true;
132 m_vpcId = std::forward<VpcIdT>(value);
133 }
134 template <typename VpcIdT = Aws::String>
135 VpcConnection& WithVpcId(VpcIdT&& value) {
136 SetVpcId(std::forward<VpcIdT>(value));
137 return *this;
138 }
140
142
147 inline VpcConnectionState GetState() const { return m_state; }
148 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
149 inline void SetState(VpcConnectionState value) {
150 m_stateHasBeenSet = true;
151 m_state = value;
152 }
154 SetState(value);
155 return *this;
156 }
158 private:
159 Aws::String m_vpcConnectionArn;
160
161 Aws::String m_targetClusterArn;
162
163 Aws::Utils::DateTime m_creationTime{};
164
165 Aws::String m_authentication;
166
167 Aws::String m_vpcId;
168
170 bool m_vpcConnectionArnHasBeenSet = false;
171 bool m_targetClusterArnHasBeenSet = false;
172 bool m_creationTimeHasBeenSet = false;
173 bool m_authenticationHasBeenSet = false;
174 bool m_vpcIdHasBeenSet = false;
175 bool m_stateHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace Kafka
180} // namespace Aws
AWS_KAFKA_API VpcConnection(Aws::Utils::Json::JsonView jsonValue)
VpcConnection & WithState(VpcConnectionState value)
void SetTargetClusterArn(TargetClusterArnT &&value)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
VpcConnection & WithVpcConnectionArn(VpcConnectionArnT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
VpcConnection & WithAuthentication(AuthenticationT &&value)
AWS_KAFKA_API VpcConnection()=default
const Aws::String & GetTargetClusterArn() const
VpcConnection & WithCreationTime(CreationTimeT &&value)
void SetAuthentication(AuthenticationT &&value)
void SetCreationTime(CreationTimeT &&value)
void SetState(VpcConnectionState value)
const Aws::String & GetVpcId() const
VpcConnection & WithVpcId(VpcIdT &&value)
const Aws::String & GetAuthentication() const
VpcConnection & WithTargetClusterArn(TargetClusterArnT &&value)
void SetVpcConnectionArn(VpcConnectionArnT &&value)
VpcConnectionState GetState() const
AWS_KAFKA_API VpcConnection & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVpcConnectionArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue