AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
IndexStatus.h
1
6#pragma once
7#include <aws/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
8#include <aws/resource-explorer-2/model/ErrorDetails.h>
9#include <aws/resource-explorer-2/model/Index.h>
10#include <aws/resource-explorer-2/model/OperationStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ResourceExplorer2 {
22namespace Model {
23
31 public:
32 AWS_RESOURCEEXPLORER2_API IndexStatus() = default;
33 AWS_RESOURCEEXPLORER2_API IndexStatus(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESOURCEEXPLORER2_API IndexStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline OperationStatus GetStatus() const { return m_status; }
44 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
45 inline void SetStatus(OperationStatus value) {
46 m_statusHasBeenSet = true;
47 m_status = value;
48 }
50 SetStatus(value);
51 return *this;
52 }
54
56
57 inline const Index& GetIndex() const { return m_index; }
58 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
59 template <typename IndexT = Index>
60 void SetIndex(IndexT&& value) {
61 m_indexHasBeenSet = true;
62 m_index = std::forward<IndexT>(value);
63 }
64 template <typename IndexT = Index>
65 IndexStatus& WithIndex(IndexT&& value) {
66 SetIndex(std::forward<IndexT>(value));
67 return *this;
68 }
70
72
75 inline const ErrorDetails& GetErrorDetails() const { return m_errorDetails; }
76 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
77 template <typename ErrorDetailsT = ErrorDetails>
78 void SetErrorDetails(ErrorDetailsT&& value) {
79 m_errorDetailsHasBeenSet = true;
80 m_errorDetails = std::forward<ErrorDetailsT>(value);
81 }
82 template <typename ErrorDetailsT = ErrorDetails>
83 IndexStatus& WithErrorDetails(ErrorDetailsT&& value) {
84 SetErrorDetails(std::forward<ErrorDetailsT>(value));
85 return *this;
86 }
88 private:
90
91 Index m_index;
92
93 ErrorDetails m_errorDetails;
94 bool m_statusHasBeenSet = false;
95 bool m_indexHasBeenSet = false;
96 bool m_errorDetailsHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace ResourceExplorer2
101} // namespace Aws
AWS_RESOURCEEXPLORER2_API IndexStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
IndexStatus & WithStatus(OperationStatus value)
Definition IndexStatus.h:49
IndexStatus & WithIndex(IndexT &&value)
Definition IndexStatus.h:65
AWS_RESOURCEEXPLORER2_API IndexStatus(Aws::Utils::Json::JsonView jsonValue)
IndexStatus & WithErrorDetails(ErrorDetailsT &&value)
Definition IndexStatus.h:83
const ErrorDetails & GetErrorDetails() const
Definition IndexStatus.h:75
void SetErrorDetails(ErrorDetailsT &&value)
Definition IndexStatus.h:78
AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(OperationStatus value)
Definition IndexStatus.h:45
AWS_RESOURCEEXPLORER2_API IndexStatus()=default
Aws::Utils::Json::JsonValue JsonValue