AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
SchemaStatusDetail.h
1
6#pragma once
7#include <aws/cleanrooms/CleanRooms_EXPORTS.h>
8#include <aws/cleanrooms/model/AnalysisRuleType.h>
9#include <aws/cleanrooms/model/AnalysisType.h>
10#include <aws/cleanrooms/model/SchemaConfiguration.h>
11#include <aws/cleanrooms/model/SchemaStatus.h>
12#include <aws/cleanrooms/model/SchemaStatusReason.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CleanRooms {
25namespace Model {
26
36 public:
37 AWS_CLEANROOMS_API SchemaStatusDetail() = default;
38 AWS_CLEANROOMS_API SchemaStatusDetail(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline SchemaStatus GetStatus() const { return m_status; }
47 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
48 inline void SetStatus(SchemaStatus value) {
49 m_statusHasBeenSet = true;
50 m_status = value;
51 }
53 SetStatus(value);
54 return *this;
55 }
57
59
62 inline const Aws::Vector<SchemaStatusReason>& GetReasons() const { return m_reasons; }
63 inline bool ReasonsHasBeenSet() const { return m_reasonsHasBeenSet; }
64 template <typename ReasonsT = Aws::Vector<SchemaStatusReason>>
65 void SetReasons(ReasonsT&& value) {
66 m_reasonsHasBeenSet = true;
67 m_reasons = std::forward<ReasonsT>(value);
68 }
69 template <typename ReasonsT = Aws::Vector<SchemaStatusReason>>
70 SchemaStatusDetail& WithReasons(ReasonsT&& value) {
71 SetReasons(std::forward<ReasonsT>(value));
72 return *this;
73 }
74 template <typename ReasonsT = SchemaStatusReason>
75 SchemaStatusDetail& AddReasons(ReasonsT&& value) {
76 m_reasonsHasBeenSet = true;
77 m_reasons.emplace_back(std::forward<ReasonsT>(value));
78 return *this;
79 }
81
83
86 inline AnalysisRuleType GetAnalysisRuleType() const { return m_analysisRuleType; }
87 inline bool AnalysisRuleTypeHasBeenSet() const { return m_analysisRuleTypeHasBeenSet; }
89 m_analysisRuleTypeHasBeenSet = true;
90 m_analysisRuleType = value;
91 }
94 return *this;
95 }
97
99
102 inline const Aws::Vector<SchemaConfiguration>& GetConfigurations() const { return m_configurations; }
103 inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
104 template <typename ConfigurationsT = Aws::Vector<SchemaConfiguration>>
105 void SetConfigurations(ConfigurationsT&& value) {
106 m_configurationsHasBeenSet = true;
107 m_configurations = std::forward<ConfigurationsT>(value);
108 }
109 template <typename ConfigurationsT = Aws::Vector<SchemaConfiguration>>
110 SchemaStatusDetail& WithConfigurations(ConfigurationsT&& value) {
111 SetConfigurations(std::forward<ConfigurationsT>(value));
112 return *this;
113 }
115 m_configurationsHasBeenSet = true;
116 m_configurations.push_back(value);
117 return *this;
118 }
120
122
127 inline AnalysisType GetAnalysisType() const { return m_analysisType; }
128 inline bool AnalysisTypeHasBeenSet() const { return m_analysisTypeHasBeenSet; }
129 inline void SetAnalysisType(AnalysisType value) {
130 m_analysisTypeHasBeenSet = true;
131 m_analysisType = value;
132 }
134 SetAnalysisType(value);
135 return *this;
136 }
138 private:
140
142
144
145 Aws::Vector<SchemaConfiguration> m_configurations;
146
147 AnalysisType m_analysisType{AnalysisType::NOT_SET};
148 bool m_statusHasBeenSet = false;
149 bool m_reasonsHasBeenSet = false;
150 bool m_analysisRuleTypeHasBeenSet = false;
151 bool m_configurationsHasBeenSet = false;
152 bool m_analysisTypeHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace CleanRooms
157} // namespace Aws
SchemaStatusDetail & WithAnalysisType(AnalysisType value)
void SetAnalysisRuleType(AnalysisRuleType value)
SchemaStatusDetail & WithReasons(ReasonsT &&value)
SchemaStatusDetail & WithConfigurations(ConfigurationsT &&value)
AWS_CLEANROOMS_API SchemaStatusDetail()=default
SchemaStatusDetail & AddConfigurations(SchemaConfiguration value)
AWS_CLEANROOMS_API SchemaStatusDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
SchemaStatusDetail & WithAnalysisRuleType(AnalysisRuleType value)
AWS_CLEANROOMS_API SchemaStatusDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetConfigurations(ConfigurationsT &&value)
SchemaStatusDetail & WithStatus(SchemaStatus value)
const Aws::Vector< SchemaConfiguration > & GetConfigurations() const
const Aws::Vector< SchemaStatusReason > & GetReasons() const
SchemaStatusDetail & AddReasons(ReasonsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue