7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/DataSourceAttachmentStatus.h>
15template <
typename RESULT_TYPE>
16class AmazonWebServiceResult;
23namespace OpenSearchService {
36 template <
typename AttachmentIdT = Aws::String>
38 m_attachmentIdHasBeenSet =
true;
39 m_attachmentId = std::forward<AttachmentIdT>(value);
41 template <
typename AttachmentIdT = Aws::String>
53 template <
typename IdT = Aws::String>
55 m_idHasBeenSet =
true;
56 m_id = std::forward<IdT>(value);
58 template <
typename IdT = Aws::String>
60 SetId(std::forward<IdT>(value));
68 template <
typename ArnT = Aws::String>
70 m_arnHasBeenSet =
true;
71 m_arn = std::forward<ArnT>(value);
73 template <
typename ArnT = Aws::String>
75 SetArn(std::forward<ArnT>(value));
83 template <
typename DataSourceArnT = Aws::String>
85 m_dataSourceArnHasBeenSet =
true;
86 m_dataSourceArn = std::forward<DataSourceArnT>(value);
88 template <
typename DataSourceArnT = Aws::String>
104 m_statusHasBeenSet =
true;
116 template <
typename RequestIdT = Aws::String>
118 m_requestIdHasBeenSet =
true;
119 m_requestId = std::forward<RequestIdT>(value);
121 template <
typename RequestIdT = Aws::String>
142 bool m_attachmentIdHasBeenSet =
false;
143 bool m_idHasBeenSet =
false;
144 bool m_arnHasBeenSet =
false;
145 bool m_dataSourceArnHasBeenSet =
false;
146 bool m_statusHasBeenSet =
false;
147 bool m_requestIdHasBeenSet =
false;
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetStatus(DataSourceAttachmentStatus value)
AttachDataSourceResult & WithArn(ArnT &&value)
void SetArn(ArnT &&value)
const Aws::String & GetArn() const
const Aws::String & GetRequestId() const
void SetDataSourceArn(DataSourceArnT &&value)
void SetRequestId(RequestIdT &&value)
AttachDataSourceResult & WithStatus(DataSourceAttachmentStatus value)
AttachDataSourceResult & WithAttachmentId(AttachmentIdT &&value)
DataSourceAttachmentStatus GetStatus() const
const Aws::String & GetDataSourceArn() const
AttachDataSourceResult & WithId(IdT &&value)
AttachDataSourceResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetId() const
AttachDataSourceResult & WithDataSourceArn(DataSourceArnT &&value)
const Aws::String & GetAttachmentId() const
void SetAttachmentId(AttachmentIdT &&value)
AWS_OPENSEARCHSERVICE_API AttachDataSourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_OPENSEARCHSERVICE_API AttachDataSourceResult()=default
AWS_OPENSEARCHSERVICE_API AttachDataSourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DataSourceAttachmentStatus
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue