AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DataSourceDetails.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/DataSourceType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/opensearch/model/DataSourceStatus.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 OpenSearchService
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_OPENSEARCHSERVICE_API DataSourceDetails() = default;
37 AWS_OPENSEARCHSERVICE_API DataSourceDetails(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_API DataSourceDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const DataSourceType& GetDataSourceType() const { return m_dataSourceType; }
47 inline bool DataSourceTypeHasBeenSet() const { return m_dataSourceTypeHasBeenSet; }
48 template<typename DataSourceTypeT = DataSourceType>
49 void SetDataSourceType(DataSourceTypeT&& value) { m_dataSourceTypeHasBeenSet = true; m_dataSourceType = std::forward<DataSourceTypeT>(value); }
50 template<typename DataSourceTypeT = DataSourceType>
51 DataSourceDetails& WithDataSourceType(DataSourceTypeT&& value) { SetDataSourceType(std::forward<DataSourceTypeT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 DataSourceDetails& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 template<typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
74 template<typename DescriptionT = Aws::String>
75 DataSourceDetails& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
77
79
82 inline DataSourceStatus GetStatus() const { return m_status; }
83 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
84 inline void SetStatus(DataSourceStatus value) { m_statusHasBeenSet = true; m_status = value; }
85 inline DataSourceDetails& WithStatus(DataSourceStatus value) { SetStatus(value); return *this;}
87 private:
88
89 DataSourceType m_dataSourceType;
90 bool m_dataSourceTypeHasBeenSet = false;
91
92 Aws::String m_name;
93 bool m_nameHasBeenSet = false;
94
95 Aws::String m_description;
96 bool m_descriptionHasBeenSet = false;
97
99 bool m_statusHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace OpenSearchService
104} // 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