AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetDataSourceResult.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{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace OpenSearchService
26{
27namespace Model
28{
36 {
37 public:
38 AWS_OPENSEARCHSERVICE_API GetDataSourceResult();
41
42
44
47 inline const DataSourceType& GetDataSourceType() const{ return m_dataSourceType; }
48 inline void SetDataSourceType(const DataSourceType& value) { m_dataSourceType = value; }
49 inline void SetDataSourceType(DataSourceType&& value) { m_dataSourceType = std::move(value); }
50 inline GetDataSourceResult& WithDataSourceType(const DataSourceType& value) { SetDataSourceType(value); return *this;}
51 inline GetDataSourceResult& WithDataSourceType(DataSourceType&& value) { SetDataSourceType(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline void SetName(const Aws::String& value) { m_name = value; }
60 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
61 inline void SetName(const char* value) { m_name.assign(value); }
62 inline GetDataSourceResult& WithName(const Aws::String& value) { SetName(value); return *this;}
63 inline GetDataSourceResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
64 inline GetDataSourceResult& WithName(const char* value) { SetName(value); return *this;}
66
68
71 inline const Aws::String& GetDescription() const{ return m_description; }
72 inline void SetDescription(const Aws::String& value) { m_description = value; }
73 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
74 inline void SetDescription(const char* value) { m_description.assign(value); }
75 inline GetDataSourceResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
76 inline GetDataSourceResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
77 inline GetDataSourceResult& WithDescription(const char* value) { SetDescription(value); return *this;}
79
81
84 inline const DataSourceStatus& GetStatus() const{ return m_status; }
85 inline void SetStatus(const DataSourceStatus& value) { m_status = value; }
86 inline void SetStatus(DataSourceStatus&& value) { m_status = std::move(value); }
87 inline GetDataSourceResult& WithStatus(const DataSourceStatus& value) { SetStatus(value); return *this;}
88 inline GetDataSourceResult& WithStatus(DataSourceStatus&& value) { SetStatus(std::move(value)); return *this;}
90
92
93 inline const Aws::String& GetRequestId() const{ return m_requestId; }
94 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
95 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
96 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
97 inline GetDataSourceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
98 inline GetDataSourceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
99 inline GetDataSourceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
101 private:
102
103 DataSourceType m_dataSourceType;
104
105 Aws::String m_name;
106
107 Aws::String m_description;
108
109 DataSourceStatus m_status;
110
111 Aws::String m_requestId;
112 };
113
114} // namespace Model
115} // namespace OpenSearchService
116} // namespace Aws
GetDataSourceResult & WithRequestId(const Aws::String &value)
AWS_OPENSEARCHSERVICE_API GetDataSourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDataSourceResult & WithRequestId(Aws::String &&value)
GetDataSourceResult & WithDescription(Aws::String &&value)
GetDataSourceResult & WithDescription(const char *value)
GetDataSourceResult & WithName(const char *value)
GetDataSourceResult & WithStatus(DataSourceStatus &&value)
AWS_OPENSEARCHSERVICE_API GetDataSourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDataSourceResult & WithDataSourceType(DataSourceType &&value)
GetDataSourceResult & WithStatus(const DataSourceStatus &value)
GetDataSourceResult & WithName(const Aws::String &value)
GetDataSourceResult & WithDataSourceType(const DataSourceType &value)
GetDataSourceResult & WithDescription(const Aws::String &value)
void SetDataSourceType(const DataSourceType &value)
GetDataSourceResult & WithRequestId(const char *value)
GetDataSourceResult & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue