AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
DataSourceDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9#include <aws/opensearch/model/DataSourceStatus.h>
10#include <aws/opensearch/model/DataSourceType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchService {
22namespace Model {
23
30 public:
31 AWS_OPENSEARCHSERVICE_API DataSourceDetails() = default;
32 AWS_OPENSEARCHSERVICE_API DataSourceDetails(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API DataSourceDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const DataSourceType& GetDataSourceType() const { return m_dataSourceType; }
41 inline bool DataSourceTypeHasBeenSet() const { return m_dataSourceTypeHasBeenSet; }
42 template <typename DataSourceTypeT = DataSourceType>
43 void SetDataSourceType(DataSourceTypeT&& value) {
44 m_dataSourceTypeHasBeenSet = true;
45 m_dataSourceType = std::forward<DataSourceTypeT>(value);
46 }
47 template <typename DataSourceTypeT = DataSourceType>
48 DataSourceDetails& WithDataSourceType(DataSourceTypeT&& value) {
49 SetDataSourceType(std::forward<DataSourceTypeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 DataSourceDetails& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 DataSourceDetails& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline DataSourceStatus GetStatus() const { return m_status; }
95 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
96 inline void SetStatus(DataSourceStatus value) {
97 m_statusHasBeenSet = true;
98 m_status = value;
99 }
101 SetStatus(value);
102 return *this;
103 }
105 private:
106 DataSourceType m_dataSourceType;
107
108 Aws::String m_name;
109
110 Aws::String m_description;
111
113 bool m_dataSourceTypeHasBeenSet = false;
114 bool m_nameHasBeenSet = false;
115 bool m_descriptionHasBeenSet = false;
116 bool m_statusHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace OpenSearchService
121} // namespace Aws
DataSourceDetails & WithName(NameT &&value)
DataSourceDetails & WithDescription(DescriptionT &&value)
AWS_OPENSEARCHSERVICE_API DataSourceDetails()=default
DataSourceDetails & WithDataSourceType(DataSourceTypeT &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
DataSourceDetails & WithStatus(DataSourceStatus value)
AWS_OPENSEARCHSERVICE_API DataSourceDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API DataSourceDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue