AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VpcConnection.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/kafka/model/VpcConnectionState.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 VpcConnection() = default;
40 AWS_KAFKA_API VpcConnection(Aws::Utils::Json::JsonView jsonValue);
42 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const Aws::String& GetVpcConnectionArn() const { return m_vpcConnectionArn; }
52 inline bool VpcConnectionArnHasBeenSet() const { return m_vpcConnectionArnHasBeenSet; }
53 template<typename VpcConnectionArnT = Aws::String>
54 void SetVpcConnectionArn(VpcConnectionArnT&& value) { m_vpcConnectionArnHasBeenSet = true; m_vpcConnectionArn = std::forward<VpcConnectionArnT>(value); }
55 template<typename VpcConnectionArnT = Aws::String>
56 VpcConnection& WithVpcConnectionArn(VpcConnectionArnT&& value) { SetVpcConnectionArn(std::forward<VpcConnectionArnT>(value)); return *this;}
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) { m_targetClusterArnHasBeenSet = true; m_targetClusterArn = std::forward<TargetClusterArnT>(value); }
70 template<typename TargetClusterArnT = Aws::String>
71 VpcConnection& WithTargetClusterArn(TargetClusterArnT&& value) { SetTargetClusterArn(std::forward<TargetClusterArnT>(value)); return *this;}
73
75
80 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
81 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
82 template<typename CreationTimeT = Aws::Utils::DateTime>
83 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
84 template<typename CreationTimeT = Aws::Utils::DateTime>
85 VpcConnection& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
87
89
95 inline const Aws::String& GetAuthentication() const { return m_authentication; }
96 inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; }
97 template<typename AuthenticationT = Aws::String>
98 void SetAuthentication(AuthenticationT&& value) { m_authenticationHasBeenSet = true; m_authentication = std::forward<AuthenticationT>(value); }
99 template<typename AuthenticationT = Aws::String>
100 VpcConnection& WithAuthentication(AuthenticationT&& value) { SetAuthentication(std::forward<AuthenticationT>(value)); return *this;}
102
104
109 inline const Aws::String& GetVpcId() const { return m_vpcId; }
110 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
111 template<typename VpcIdT = Aws::String>
112 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
113 template<typename VpcIdT = Aws::String>
114 VpcConnection& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
116
118
123 inline VpcConnectionState GetState() const { return m_state; }
124 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
125 inline void SetState(VpcConnectionState value) { m_stateHasBeenSet = true; m_state = value; }
126 inline VpcConnection& WithState(VpcConnectionState value) { SetState(value); return *this;}
128 private:
129
130 Aws::String m_vpcConnectionArn;
131 bool m_vpcConnectionArnHasBeenSet = false;
132
133 Aws::String m_targetClusterArn;
134 bool m_targetClusterArnHasBeenSet = false;
135
136 Aws::Utils::DateTime m_creationTime{};
137 bool m_creationTimeHasBeenSet = false;
138
139 Aws::String m_authentication;
140 bool m_authenticationHasBeenSet = false;
141
142 Aws::String m_vpcId;
143 bool m_vpcIdHasBeenSet = false;
144
146 bool m_stateHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace Kafka
151} // 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