1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/kafkaconnect/KafkaConnect_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <aws/kafkaconnect/model/VpcDescription.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18   class JsonValue;
19   class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace KafkaConnect
23 {
24 namespace Model
25 {
26 
27   /**
28    * <p>The description of the Apache Kafka cluster to which the connector is
29    * connected.</p><p><h3>See Also:</h3>   <a
30    * href="http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/ApacheKafkaClusterDescription">AWS
31    * API Reference</a></p>
32    */
33   class AWS_KAFKACONNECT_API ApacheKafkaClusterDescription
34   {
35   public:
36     ApacheKafkaClusterDescription();
37     ApacheKafkaClusterDescription(Aws::Utils::Json::JsonView jsonValue);
38     ApacheKafkaClusterDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
39     Aws::Utils::Json::JsonValue Jsonize() const;
40 
41 
42     /**
43      * <p>The bootstrap servers of the cluster.</p>
44      */
GetBootstrapServers()45     inline const Aws::String& GetBootstrapServers() const{ return m_bootstrapServers; }
46 
47     /**
48      * <p>The bootstrap servers of the cluster.</p>
49      */
BootstrapServersHasBeenSet()50     inline bool BootstrapServersHasBeenSet() const { return m_bootstrapServersHasBeenSet; }
51 
52     /**
53      * <p>The bootstrap servers of the cluster.</p>
54      */
SetBootstrapServers(const Aws::String & value)55     inline void SetBootstrapServers(const Aws::String& value) { m_bootstrapServersHasBeenSet = true; m_bootstrapServers = value; }
56 
57     /**
58      * <p>The bootstrap servers of the cluster.</p>
59      */
SetBootstrapServers(Aws::String && value)60     inline void SetBootstrapServers(Aws::String&& value) { m_bootstrapServersHasBeenSet = true; m_bootstrapServers = std::move(value); }
61 
62     /**
63      * <p>The bootstrap servers of the cluster.</p>
64      */
SetBootstrapServers(const char * value)65     inline void SetBootstrapServers(const char* value) { m_bootstrapServersHasBeenSet = true; m_bootstrapServers.assign(value); }
66 
67     /**
68      * <p>The bootstrap servers of the cluster.</p>
69      */
WithBootstrapServers(const Aws::String & value)70     inline ApacheKafkaClusterDescription& WithBootstrapServers(const Aws::String& value) { SetBootstrapServers(value); return *this;}
71 
72     /**
73      * <p>The bootstrap servers of the cluster.</p>
74      */
WithBootstrapServers(Aws::String && value)75     inline ApacheKafkaClusterDescription& WithBootstrapServers(Aws::String&& value) { SetBootstrapServers(std::move(value)); return *this;}
76 
77     /**
78      * <p>The bootstrap servers of the cluster.</p>
79      */
WithBootstrapServers(const char * value)80     inline ApacheKafkaClusterDescription& WithBootstrapServers(const char* value) { SetBootstrapServers(value); return *this;}
81 
82 
83     /**
84      * <p>Details of an Amazon VPC which has network connectivity to the Apache Kafka
85      * cluster.</p>
86      */
GetVpc()87     inline const VpcDescription& GetVpc() const{ return m_vpc; }
88 
89     /**
90      * <p>Details of an Amazon VPC which has network connectivity to the Apache Kafka
91      * cluster.</p>
92      */
VpcHasBeenSet()93     inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; }
94 
95     /**
96      * <p>Details of an Amazon VPC which has network connectivity to the Apache Kafka
97      * cluster.</p>
98      */
SetVpc(const VpcDescription & value)99     inline void SetVpc(const VpcDescription& value) { m_vpcHasBeenSet = true; m_vpc = value; }
100 
101     /**
102      * <p>Details of an Amazon VPC which has network connectivity to the Apache Kafka
103      * cluster.</p>
104      */
SetVpc(VpcDescription && value)105     inline void SetVpc(VpcDescription&& value) { m_vpcHasBeenSet = true; m_vpc = std::move(value); }
106 
107     /**
108      * <p>Details of an Amazon VPC which has network connectivity to the Apache Kafka
109      * cluster.</p>
110      */
WithVpc(const VpcDescription & value)111     inline ApacheKafkaClusterDescription& WithVpc(const VpcDescription& value) { SetVpc(value); return *this;}
112 
113     /**
114      * <p>Details of an Amazon VPC which has network connectivity to the Apache Kafka
115      * cluster.</p>
116      */
WithVpc(VpcDescription && value)117     inline ApacheKafkaClusterDescription& WithVpc(VpcDescription&& value) { SetVpc(std::move(value)); return *this;}
118 
119   private:
120 
121     Aws::String m_bootstrapServers;
122     bool m_bootstrapServersHasBeenSet;
123 
124     VpcDescription m_vpc;
125     bool m_vpcHasBeenSet;
126   };
127 
128 } // namespace Model
129 } // namespace KafkaConnect
130 } // namespace Aws
131