AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
ViewStatus.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/OperationStatus.h>
10#include <aws/resource-explorer-2/model/View.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 ViewStatus() = default;
33 AWS_RESOURCEEXPLORER2_API ViewStatus(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESOURCEEXPLORER2_API ViewStatus& 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 View& GetView() const { return m_view; }
58 inline bool ViewHasBeenSet() const { return m_viewHasBeenSet; }
59 template <typename ViewT = View>
60 void SetView(ViewT&& value) {
61 m_viewHasBeenSet = true;
62 m_view = std::forward<ViewT>(value);
63 }
64 template <typename ViewT = View>
65 ViewStatus& WithView(ViewT&& value) {
66 SetView(std::forward<ViewT>(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 ViewStatus& WithErrorDetails(ErrorDetailsT&& value) {
84 SetErrorDetails(std::forward<ErrorDetailsT>(value));
85 return *this;
86 }
88 private:
90
91 View m_view;
92
93 ErrorDetails m_errorDetails;
94 bool m_statusHasBeenSet = false;
95 bool m_viewHasBeenSet = false;
96 bool m_errorDetailsHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace ResourceExplorer2
101} // namespace Aws
void SetStatus(OperationStatus value)
Definition ViewStatus.h:45
AWS_RESOURCEEXPLORER2_API ViewStatus()=default
AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const
const ErrorDetails & GetErrorDetails() const
Definition ViewStatus.h:75
AWS_RESOURCEEXPLORER2_API ViewStatus(Aws::Utils::Json::JsonView jsonValue)
ViewStatus & WithErrorDetails(ErrorDetailsT &&value)
Definition ViewStatus.h:83
ViewStatus & WithStatus(OperationStatus value)
Definition ViewStatus.h:49
ViewStatus & WithView(ViewT &&value)
Definition ViewStatus.h:65
void SetErrorDetails(ErrorDetailsT &&value)
Definition ViewStatus.h:78
AWS_RESOURCEEXPLORER2_API ViewStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue