AWS SDK for C++

AWS SDK for C++ Version 1.11.852

Loading...
Searching...
No Matches
DescribeDataSourceAttachmentResult.h
1
6#pragma once
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>
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 {
26 public:
27 AWS_OPENSEARCHSERVICE_API DescribeDataSourceAttachmentResult() = default;
31
33
36 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
37 template <typename AttachmentIdT = Aws::String>
38 void SetAttachmentId(AttachmentIdT&& value) {
39 m_attachmentIdHasBeenSet = true;
40 m_attachmentId = std::forward<AttachmentIdT>(value);
41 }
42 template <typename AttachmentIdT = Aws::String>
44 SetAttachmentId(std::forward<AttachmentIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetId() const { return m_id; }
54 template <typename IdT = Aws::String>
55 void SetId(IdT&& value) {
56 m_idHasBeenSet = true;
57 m_id = std::forward<IdT>(value);
58 }
59 template <typename IdT = Aws::String>
61 SetId(std::forward<IdT>(value));
62 return *this;
63 }
65
67
68 inline const Aws::String& GetArn() const { return m_arn; }
69 template <typename ArnT = Aws::String>
70 void SetArn(ArnT&& value) {
71 m_arnHasBeenSet = true;
72 m_arn = std::forward<ArnT>(value);
73 }
74 template <typename ArnT = Aws::String>
76 SetArn(std::forward<ArnT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::String& GetDataSourceArn() const { return m_dataSourceArn; }
84 template <typename DataSourceArnT = Aws::String>
85 void SetDataSourceArn(DataSourceArnT&& value) {
86 m_dataSourceArnHasBeenSet = true;
87 m_dataSourceArn = std::forward<DataSourceArnT>(value);
88 }
89 template <typename DataSourceArnT = Aws::String>
91 SetDataSourceArn(std::forward<DataSourceArnT>(value));
92 return *this;
93 }
95
97
101 inline DataSourceAttachmentStatus GetStatus() const { return m_status; }
103 m_statusHasBeenSet = true;
104 m_status = value;
105 }
107 SetStatus(value);
108 return *this;
109 }
111
113
114 inline const Aws::String& GetRequestId() const { return m_requestId; }
115 template <typename RequestIdT = Aws::String>
116 void SetRequestId(RequestIdT&& value) {
117 m_requestIdHasBeenSet = true;
118 m_requestId = std::forward<RequestIdT>(value);
119 }
120 template <typename RequestIdT = Aws::String>
122 SetRequestId(std::forward<RequestIdT>(value));
123 return *this;
124 }
126 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
127
128 private:
129 Aws::String m_attachmentId;
130
131 Aws::String m_id;
132
133 Aws::String m_arn;
134
135 Aws::String m_dataSourceArn;
136
138
139 Aws::String m_requestId;
140 Aws::Http::HttpResponseCode m_HttpResponseCode;
141 bool m_attachmentIdHasBeenSet = false;
142 bool m_idHasBeenSet = false;
143 bool m_arnHasBeenSet = false;
144 bool m_dataSourceArnHasBeenSet = false;
145 bool m_statusHasBeenSet = false;
146 bool m_requestIdHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace OpenSearchService
151} // namespace Aws
DescribeDataSourceAttachmentResult & WithStatus(DataSourceAttachmentStatus value)
DescribeDataSourceAttachmentResult & WithAttachmentId(AttachmentIdT &&value)
AWS_OPENSEARCHSERVICE_API DescribeDataSourceAttachmentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeDataSourceAttachmentResult & WithRequestId(RequestIdT &&value)
AWS_OPENSEARCHSERVICE_API DescribeDataSourceAttachmentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_OPENSEARCHSERVICE_API DescribeDataSourceAttachmentResult()=default
DescribeDataSourceAttachmentResult & WithDataSourceArn(DataSourceArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue