AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ControllerNodeInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kafka/Kafka_EXPORTS.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
32 public:
33 AWS_KAFKA_API ControllerNodeInfo() = default;
36 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::Vector<Aws::String>& GetEndpoints() const { return m_endpoints; }
45 inline bool EndpointsHasBeenSet() const { return m_endpointsHasBeenSet; }
46 template <typename EndpointsT = Aws::Vector<Aws::String>>
47 void SetEndpoints(EndpointsT&& value) {
48 m_endpointsHasBeenSet = true;
49 m_endpoints = std::forward<EndpointsT>(value);
50 }
51 template <typename EndpointsT = Aws::Vector<Aws::String>>
52 ControllerNodeInfo& WithEndpoints(EndpointsT&& value) {
53 SetEndpoints(std::forward<EndpointsT>(value));
54 return *this;
55 }
56 template <typename EndpointsT = Aws::String>
57 ControllerNodeInfo& AddEndpoints(EndpointsT&& value) {
58 m_endpointsHasBeenSet = true;
59 m_endpoints.emplace_back(std::forward<EndpointsT>(value));
60 return *this;
61 }
63 private:
64 Aws::Vector<Aws::String> m_endpoints;
65 bool m_endpointsHasBeenSet = false;
66};
67
68} // namespace Model
69} // namespace Kafka
70} // namespace Aws
AWS_KAFKA_API ControllerNodeInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetEndpoints() const
AWS_KAFKA_API ControllerNodeInfo()=default
ControllerNodeInfo & WithEndpoints(EndpointsT &&value)
AWS_KAFKA_API ControllerNodeInfo(Aws::Utils::Json::JsonView jsonValue)
ControllerNodeInfo & AddEndpoints(EndpointsT &&value)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue