AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DataSource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace OpenSearchService {
20namespace Model {
21
29 public:
30 AWS_OPENSEARCHSERVICE_API DataSource() = default;
31 AWS_OPENSEARCHSERVICE_API DataSource(Aws::Utils::Json::JsonView jsonValue);
32 AWS_OPENSEARCHSERVICE_API DataSource& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
37 inline const Aws::String& GetDataSourceArn() const { return m_dataSourceArn; }
38 inline bool DataSourceArnHasBeenSet() const { return m_dataSourceArnHasBeenSet; }
39 template <typename DataSourceArnT = Aws::String>
40 void SetDataSourceArn(DataSourceArnT&& value) {
41 m_dataSourceArnHasBeenSet = true;
42 m_dataSourceArn = std::forward<DataSourceArnT>(value);
43 }
44 template <typename DataSourceArnT = Aws::String>
45 DataSource& WithDataSourceArn(DataSourceArnT&& value) {
46 SetDataSourceArn(std::forward<DataSourceArnT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetDataSourceDescription() const { return m_dataSourceDescription; }
56 inline bool DataSourceDescriptionHasBeenSet() const { return m_dataSourceDescriptionHasBeenSet; }
57 template <typename DataSourceDescriptionT = Aws::String>
58 void SetDataSourceDescription(DataSourceDescriptionT&& value) {
59 m_dataSourceDescriptionHasBeenSet = true;
60 m_dataSourceDescription = std::forward<DataSourceDescriptionT>(value);
61 }
62 template <typename DataSourceDescriptionT = Aws::String>
63 DataSource& WithDataSourceDescription(DataSourceDescriptionT&& value) {
64 SetDataSourceDescription(std::forward<DataSourceDescriptionT>(value));
65 return *this;
66 }
68 private:
69 Aws::String m_dataSourceArn;
70
71 Aws::String m_dataSourceDescription;
72 bool m_dataSourceArnHasBeenSet = false;
73 bool m_dataSourceDescriptionHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace OpenSearchService
78} // namespace Aws
AWS_OPENSEARCHSERVICE_API DataSource(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API DataSource()=default
const Aws::String & GetDataSourceDescription() const
Definition DataSource.h:55
AWS_OPENSEARCHSERVICE_API DataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSource & WithDataSourceArn(DataSourceArnT &&value)
Definition DataSource.h:45
DataSource & WithDataSourceDescription(DataSourceDescriptionT &&value)
Definition DataSource.h:63
void SetDataSourceDescription(DataSourceDescriptionT &&value)
Definition DataSource.h:58
const Aws::String & GetDataSourceArn() const
Definition DataSource.h:37
void SetDataSourceArn(DataSourceArnT &&value)
Definition DataSource.h:40
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue