AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetDataSourceResult.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 {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace OpenSearchService {
24namespace Model {
32 public:
33 AWS_OPENSEARCHSERVICE_API GetDataSourceResult() = default;
36
38
41 inline const DataSourceType& GetDataSourceType() const { return m_dataSourceType; }
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 GetDataSourceResult& 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 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
65 GetDataSourceResult& WithName(NameT&& value) {
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
82 GetDataSourceResult& WithDescription(DescriptionT&& value) {
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87
89
92 inline DataSourceStatus GetStatus() const { return m_status; }
93 inline void SetStatus(DataSourceStatus value) {
94 m_statusHasBeenSet = true;
95 m_status = value;
96 }
98 SetStatus(value);
99 return *this;
100 }
102
104
105 inline const Aws::String& GetRequestId() const { return m_requestId; }
106 template <typename RequestIdT = Aws::String>
107 void SetRequestId(RequestIdT&& value) {
108 m_requestIdHasBeenSet = true;
109 m_requestId = std::forward<RequestIdT>(value);
110 }
111 template <typename RequestIdT = Aws::String>
112 GetDataSourceResult& WithRequestId(RequestIdT&& value) {
113 SetRequestId(std::forward<RequestIdT>(value));
114 return *this;
115 }
117 private:
118 DataSourceType m_dataSourceType;
119
120 Aws::String m_name;
121
122 Aws::String m_description;
123
125
126 Aws::String m_requestId;
127 bool m_dataSourceTypeHasBeenSet = false;
128 bool m_nameHasBeenSet = false;
129 bool m_descriptionHasBeenSet = false;
130 bool m_statusHasBeenSet = false;
131 bool m_requestIdHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace OpenSearchService
136} // namespace Aws
GetDataSourceResult & WithRequestId(RequestIdT &&value)
AWS_OPENSEARCHSERVICE_API GetDataSourceResult()=default
AWS_OPENSEARCHSERVICE_API GetDataSourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDataSourceResult & WithName(NameT &&value)
AWS_OPENSEARCHSERVICE_API GetDataSourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDataSourceResult & WithDescription(DescriptionT &&value)
GetDataSourceResult & WithStatus(DataSourceStatus value)
GetDataSourceResult & WithDataSourceType(DataSourceTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue