AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
CreateIndexResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
11#include <aws/resource-explorer-2/model/IndexState.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace ResourceExplorer2 {
25namespace Model {
27 public:
28 AWS_RESOURCEEXPLORER2_API CreateIndexResult() = default;
31
33
39 inline const Aws::String& GetArn() const { return m_arn; }
40 template <typename ArnT = Aws::String>
41 void SetArn(ArnT&& value) {
42 m_arnHasBeenSet = true;
43 m_arn = std::forward<ArnT>(value);
44 }
45 template <typename ArnT = Aws::String>
46 CreateIndexResult& WithArn(ArnT&& value) {
47 SetArn(std::forward<ArnT>(value));
48 return *this;
49 }
51
53
60 inline IndexState GetState() const { return m_state; }
61 inline void SetState(IndexState value) {
62 m_stateHasBeenSet = true;
63 m_state = value;
64 }
66 SetState(value);
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
76 template <typename CreatedAtT = Aws::Utils::DateTime>
77 void SetCreatedAt(CreatedAtT&& value) {
78 m_createdAtHasBeenSet = true;
79 m_createdAt = std::forward<CreatedAtT>(value);
80 }
81 template <typename CreatedAtT = Aws::Utils::DateTime>
82 CreateIndexResult& WithCreatedAt(CreatedAtT&& value) {
83 SetCreatedAt(std::forward<CreatedAtT>(value));
84 return *this;
85 }
87
89
90 inline const Aws::String& GetRequestId() const { return m_requestId; }
91 template <typename RequestIdT = Aws::String>
92 void SetRequestId(RequestIdT&& value) {
93 m_requestIdHasBeenSet = true;
94 m_requestId = std::forward<RequestIdT>(value);
95 }
96 template <typename RequestIdT = Aws::String>
97 CreateIndexResult& WithRequestId(RequestIdT&& value) {
98 SetRequestId(std::forward<RequestIdT>(value));
99 return *this;
100 }
102 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
103
104 private:
105 Aws::String m_arn;
106
108
109 Aws::Utils::DateTime m_createdAt{};
110
111 Aws::String m_requestId;
112 Aws::Http::HttpResponseCode m_HttpResponseCode;
113 bool m_arnHasBeenSet = false;
114 bool m_stateHasBeenSet = false;
115 bool m_createdAtHasBeenSet = false;
116 bool m_requestIdHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace ResourceExplorer2
121} // namespace Aws
AWS_RESOURCEEXPLORER2_API CreateIndexResult()=default
CreateIndexResult & WithState(IndexState value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_RESOURCEEXPLORER2_API CreateIndexResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreatedAt() const
CreateIndexResult & WithRequestId(RequestIdT &&value)
CreateIndexResult & WithCreatedAt(CreatedAtT &&value)
AWS_RESOURCEEXPLORER2_API CreateIndexResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue