AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ViewDefinitionInput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/LastRefreshType.h>
11#include <aws/glue/model/ViewRepresentationInput.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue {
23namespace Model {
24
32 public:
33 AWS_GLUE_API ViewDefinitionInput() = default;
37
39
46 inline bool GetIsProtected() const { return m_isProtected; }
47 inline bool IsProtectedHasBeenSet() const { return m_isProtectedHasBeenSet; }
48 inline void SetIsProtected(bool value) {
49 m_isProtectedHasBeenSet = true;
50 m_isProtected = value;
51 }
53 SetIsProtected(value);
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDefiner() const { return m_definer; }
63 inline bool DefinerHasBeenSet() const { return m_definerHasBeenSet; }
64 template <typename DefinerT = Aws::String>
65 void SetDefiner(DefinerT&& value) {
66 m_definerHasBeenSet = true;
67 m_definer = std::forward<DefinerT>(value);
68 }
69 template <typename DefinerT = Aws::String>
70 ViewDefinitionInput& WithDefiner(DefinerT&& value) {
71 SetDefiner(std::forward<DefinerT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Vector<ViewRepresentationInput>& GetRepresentations() const { return m_representations; }
82 inline bool RepresentationsHasBeenSet() const { return m_representationsHasBeenSet; }
83 template <typename RepresentationsT = Aws::Vector<ViewRepresentationInput>>
84 void SetRepresentations(RepresentationsT&& value) {
85 m_representationsHasBeenSet = true;
86 m_representations = std::forward<RepresentationsT>(value);
87 }
88 template <typename RepresentationsT = Aws::Vector<ViewRepresentationInput>>
89 ViewDefinitionInput& WithRepresentations(RepresentationsT&& value) {
90 SetRepresentations(std::forward<RepresentationsT>(value));
91 return *this;
92 }
93 template <typename RepresentationsT = ViewRepresentationInput>
94 ViewDefinitionInput& AddRepresentations(RepresentationsT&& value) {
95 m_representationsHasBeenSet = true;
96 m_representations.emplace_back(std::forward<RepresentationsT>(value));
97 return *this;
98 }
100
102
106 inline long long GetViewVersionId() const { return m_viewVersionId; }
107 inline bool ViewVersionIdHasBeenSet() const { return m_viewVersionIdHasBeenSet; }
108 inline void SetViewVersionId(long long value) {
109 m_viewVersionIdHasBeenSet = true;
110 m_viewVersionId = value;
111 }
112 inline ViewDefinitionInput& WithViewVersionId(long long value) {
113 SetViewVersionId(value);
114 return *this;
115 }
117
119
122 inline const Aws::String& GetViewVersionToken() const { return m_viewVersionToken; }
123 inline bool ViewVersionTokenHasBeenSet() const { return m_viewVersionTokenHasBeenSet; }
124 template <typename ViewVersionTokenT = Aws::String>
125 void SetViewVersionToken(ViewVersionTokenT&& value) {
126 m_viewVersionTokenHasBeenSet = true;
127 m_viewVersionToken = std::forward<ViewVersionTokenT>(value);
128 }
129 template <typename ViewVersionTokenT = Aws::String>
130 ViewDefinitionInput& WithViewVersionToken(ViewVersionTokenT&& value) {
131 SetViewVersionToken(std::forward<ViewVersionTokenT>(value));
132 return *this;
133 }
135
137
141 inline long long GetRefreshSeconds() const { return m_refreshSeconds; }
142 inline bool RefreshSecondsHasBeenSet() const { return m_refreshSecondsHasBeenSet; }
143 inline void SetRefreshSeconds(long long value) {
144 m_refreshSecondsHasBeenSet = true;
145 m_refreshSeconds = value;
146 }
147 inline ViewDefinitionInput& WithRefreshSeconds(long long value) {
148 SetRefreshSeconds(value);
149 return *this;
150 }
152
154
158 inline LastRefreshType GetLastRefreshType() const { return m_lastRefreshType; }
159 inline bool LastRefreshTypeHasBeenSet() const { return m_lastRefreshTypeHasBeenSet; }
161 m_lastRefreshTypeHasBeenSet = true;
162 m_lastRefreshType = value;
163 }
165 SetLastRefreshType(value);
166 return *this;
167 }
169
171
174 inline const Aws::Vector<Aws::String>& GetSubObjects() const { return m_subObjects; }
175 inline bool SubObjectsHasBeenSet() const { return m_subObjectsHasBeenSet; }
176 template <typename SubObjectsT = Aws::Vector<Aws::String>>
177 void SetSubObjects(SubObjectsT&& value) {
178 m_subObjectsHasBeenSet = true;
179 m_subObjects = std::forward<SubObjectsT>(value);
180 }
181 template <typename SubObjectsT = Aws::Vector<Aws::String>>
182 ViewDefinitionInput& WithSubObjects(SubObjectsT&& value) {
183 SetSubObjects(std::forward<SubObjectsT>(value));
184 return *this;
185 }
186 template <typename SubObjectsT = Aws::String>
187 ViewDefinitionInput& AddSubObjects(SubObjectsT&& value) {
188 m_subObjectsHasBeenSet = true;
189 m_subObjects.emplace_back(std::forward<SubObjectsT>(value));
190 return *this;
191 }
193
195
199 inline const Aws::Vector<long long>& GetSubObjectVersionIds() const { return m_subObjectVersionIds; }
200 inline bool SubObjectVersionIdsHasBeenSet() const { return m_subObjectVersionIdsHasBeenSet; }
201 template <typename SubObjectVersionIdsT = Aws::Vector<long long>>
202 void SetSubObjectVersionIds(SubObjectVersionIdsT&& value) {
203 m_subObjectVersionIdsHasBeenSet = true;
204 m_subObjectVersionIds = std::forward<SubObjectVersionIdsT>(value);
205 }
206 template <typename SubObjectVersionIdsT = Aws::Vector<long long>>
207 ViewDefinitionInput& WithSubObjectVersionIds(SubObjectVersionIdsT&& value) {
208 SetSubObjectVersionIds(std::forward<SubObjectVersionIdsT>(value));
209 return *this;
210 }
212 m_subObjectVersionIdsHasBeenSet = true;
213 m_subObjectVersionIds.push_back(value);
214 return *this;
215 }
217 private:
218 bool m_isProtected{false};
219
220 Aws::String m_definer;
221
222 Aws::Vector<ViewRepresentationInput> m_representations;
223
224 long long m_viewVersionId{0};
225
226 Aws::String m_viewVersionToken;
227
228 long long m_refreshSeconds{0};
229
230 LastRefreshType m_lastRefreshType{LastRefreshType::NOT_SET};
231
232 Aws::Vector<Aws::String> m_subObjects;
233
234 Aws::Vector<long long> m_subObjectVersionIds;
235 bool m_isProtectedHasBeenSet = false;
236 bool m_definerHasBeenSet = false;
237 bool m_representationsHasBeenSet = false;
238 bool m_viewVersionIdHasBeenSet = false;
239 bool m_viewVersionTokenHasBeenSet = false;
240 bool m_refreshSecondsHasBeenSet = false;
241 bool m_lastRefreshTypeHasBeenSet = false;
242 bool m_subObjectsHasBeenSet = false;
243 bool m_subObjectVersionIdsHasBeenSet = false;
244};
245
246} // namespace Model
247} // namespace Glue
248} // namespace Aws
ViewDefinitionInput & WithRepresentations(RepresentationsT &&value)
ViewDefinitionInput & AddSubObjectVersionIds(long long value)
ViewDefinitionInput & WithRefreshSeconds(long long value)
ViewDefinitionInput & WithIsProtected(bool value)
const Aws::Vector< long long > & GetSubObjectVersionIds() const
ViewDefinitionInput & AddSubObjects(SubObjectsT &&value)
const Aws::Vector< ViewRepresentationInput > & GetRepresentations() const
AWS_GLUE_API ViewDefinitionInput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRepresentations(RepresentationsT &&value)
ViewDefinitionInput & WithLastRefreshType(LastRefreshType value)
void SetLastRefreshType(LastRefreshType value)
void SetViewVersionToken(ViewVersionTokenT &&value)
const Aws::String & GetDefiner() const
ViewDefinitionInput & WithSubObjectVersionIds(SubObjectVersionIdsT &&value)
ViewDefinitionInput & AddRepresentations(RepresentationsT &&value)
ViewDefinitionInput & WithSubObjects(SubObjectsT &&value)
ViewDefinitionInput & WithDefiner(DefinerT &&value)
const Aws::String & GetViewVersionToken() const
ViewDefinitionInput & WithViewVersionToken(ViewVersionTokenT &&value)
ViewDefinitionInput & WithViewVersionId(long long value)
AWS_GLUE_API ViewDefinitionInput()=default
void SetSubObjectVersionIds(SubObjectVersionIdsT &&value)
AWS_GLUE_API ViewDefinitionInput(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSubObjects() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue