AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDataSourceType(const DataSourceType& value) { m_dataSourceTypeHasBeenSet = true; m_dataSourceType = value; }
49 inline void SetDataSourceType(DataSourceType&& value) { m_dataSourceTypeHasBeenSet = true; m_dataSourceType = std::move(value); }
50 inline DataSourceDetails& WithDataSourceType(const DataSourceType& value) { SetDataSourceType(value); return *this;}
51 inline DataSourceDetails& WithDataSourceType(DataSourceType&& value) { SetDataSourceType(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 inline DataSourceDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline DataSourceDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline DataSourceDetails& WithName(const char* value) { SetName(value); return *this;}
67
69
72 inline const Aws::String& GetDescription() const{ return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
75 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
76 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
77 inline DataSourceDetails& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
78 inline DataSourceDetails& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
79 inline DataSourceDetails& WithDescription(const char* value) { SetDescription(value); return *this;}
81
83
86 inline const DataSourceStatus& GetStatus() const{ return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 inline void SetStatus(const DataSourceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
89 inline void SetStatus(DataSourceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
90 inline DataSourceDetails& WithStatus(const DataSourceStatus& value) { SetStatus(value); return *this;}
91 inline DataSourceDetails& WithStatus(DataSourceStatus&& value) { SetStatus(std::move(value)); return *this;}
93 private:
94
95 DataSourceType m_dataSourceType;
96 bool m_dataSourceTypeHasBeenSet = false;
97
98 Aws::String m_name;
99 bool m_nameHasBeenSet = false;
100
101 Aws::String m_description;
102 bool m_descriptionHasBeenSet = false;
103
104 DataSourceStatus m_status;
105 bool m_statusHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace OpenSearchService
110} // namespace Aws
DataSourceDetails & WithDataSourceType(DataSourceType &&value)
DataSourceDetails & WithStatus(const DataSourceStatus &value)
AWS_OPENSEARCHSERVICE_API DataSourceDetails()
DataSourceDetails & WithStatus(DataSourceStatus &&value)
void SetDataSourceType(const DataSourceType &value)
DataSourceDetails & WithName(Aws::String &&value)
DataSourceDetails & WithDataSourceType(const DataSourceType &value)
DataSourceDetails & WithDescription(Aws::String &&value)
void SetStatus(const DataSourceStatus &value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
DataSourceDetails & WithDescription(const char *value)
DataSourceDetails & WithName(const Aws::String &value)
AWS_OPENSEARCHSERVICE_API DataSourceDetails(Aws::Utils::Json::JsonView jsonValue)
DataSourceDetails & WithName(const char *value)
AWS_OPENSEARCHSERVICE_API DataSourceDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSourceDetails & WithDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue