AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ViewValidation.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/ErrorDetail.h>
11#include <aws/glue/model/ResourceState.h>
12#include <aws/glue/model/ViewDialect.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue {
24namespace Model {
25
35 public:
36 AWS_GLUE_API ViewValidation() = default;
40
42
45 inline ViewDialect GetDialect() const { return m_dialect; }
46 inline bool DialectHasBeenSet() const { return m_dialectHasBeenSet; }
47 inline void SetDialect(ViewDialect value) {
48 m_dialectHasBeenSet = true;
49 m_dialect = value;
50 }
52 SetDialect(value);
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDialectVersion() const { return m_dialectVersion; }
62 inline bool DialectVersionHasBeenSet() const { return m_dialectVersionHasBeenSet; }
63 template <typename DialectVersionT = Aws::String>
64 void SetDialectVersion(DialectVersionT&& value) {
65 m_dialectVersionHasBeenSet = true;
66 m_dialectVersion = std::forward<DialectVersionT>(value);
67 }
68 template <typename DialectVersionT = Aws::String>
69 ViewValidation& WithDialectVersion(DialectVersionT&& value) {
70 SetDialectVersion(std::forward<DialectVersionT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetViewValidationText() const { return m_viewValidationText; }
81 inline bool ViewValidationTextHasBeenSet() const { return m_viewValidationTextHasBeenSet; }
82 template <typename ViewValidationTextT = Aws::String>
83 void SetViewValidationText(ViewValidationTextT&& value) {
84 m_viewValidationTextHasBeenSet = true;
85 m_viewValidationText = std::forward<ViewValidationTextT>(value);
86 }
87 template <typename ViewValidationTextT = Aws::String>
88 ViewValidation& WithViewValidationText(ViewValidationTextT&& value) {
89 SetViewValidationText(std::forward<ViewValidationTextT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
99 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
100 template <typename UpdateTimeT = Aws::Utils::DateTime>
101 void SetUpdateTime(UpdateTimeT&& value) {
102 m_updateTimeHasBeenSet = true;
103 m_updateTime = std::forward<UpdateTimeT>(value);
104 }
105 template <typename UpdateTimeT = Aws::Utils::DateTime>
106 ViewValidation& WithUpdateTime(UpdateTimeT&& value) {
107 SetUpdateTime(std::forward<UpdateTimeT>(value));
108 return *this;
109 }
111
113
116 inline ResourceState GetState() const { return m_state; }
117 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
118 inline void SetState(ResourceState value) {
119 m_stateHasBeenSet = true;
120 m_state = value;
121 }
123 SetState(value);
124 return *this;
125 }
127
129
132 inline const ErrorDetail& GetError() const { return m_error; }
133 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
134 template <typename ErrorT = ErrorDetail>
135 void SetError(ErrorT&& value) {
136 m_errorHasBeenSet = true;
137 m_error = std::forward<ErrorT>(value);
138 }
139 template <typename ErrorT = ErrorDetail>
140 ViewValidation& WithError(ErrorT&& value) {
141 SetError(std::forward<ErrorT>(value));
142 return *this;
143 }
145 private:
147
148 Aws::String m_dialectVersion;
149
150 Aws::String m_viewValidationText;
151
152 Aws::Utils::DateTime m_updateTime{};
153
155
156 ErrorDetail m_error;
157 bool m_dialectHasBeenSet = false;
158 bool m_dialectVersionHasBeenSet = false;
159 bool m_viewValidationTextHasBeenSet = false;
160 bool m_updateTimeHasBeenSet = false;
161 bool m_stateHasBeenSet = false;
162 bool m_errorHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace Glue
167} // namespace Aws
void SetViewValidationText(ViewValidationTextT &&value)
ViewValidation & WithViewValidationText(ViewValidationTextT &&value)
void SetState(ResourceState value)
ViewValidation & WithDialectVersion(DialectVersionT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API ViewValidation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDialect(ViewDialect value)
AWS_GLUE_API ViewValidation(Aws::Utils::Json::JsonView jsonValue)
const ErrorDetail & GetError() const
void SetUpdateTime(UpdateTimeT &&value)
ViewValidation & WithUpdateTime(UpdateTimeT &&value)
ViewValidation & WithDialect(ViewDialect value)
const Aws::Utils::DateTime & GetUpdateTime() const
const Aws::String & GetViewValidationText() const
void SetDialectVersion(DialectVersionT &&value)
ViewValidation & WithState(ResourceState value)
AWS_GLUE_API ViewValidation()=default
const Aws::String & GetDialectVersion() const
ViewValidation & WithError(ErrorT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue