AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ViewDefinition.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/model/ViewRepresentation.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GLUE_API ViewDefinition() = default;
41
42
44
51 inline bool GetIsProtected() const { return m_isProtected; }
52 inline bool IsProtectedHasBeenSet() const { return m_isProtectedHasBeenSet; }
53 inline void SetIsProtected(bool value) { m_isProtectedHasBeenSet = true; m_isProtected = value; }
54 inline ViewDefinition& WithIsProtected(bool value) { SetIsProtected(value); return *this;}
56
58
61 inline const Aws::String& GetDefiner() const { return m_definer; }
62 inline bool DefinerHasBeenSet() const { return m_definerHasBeenSet; }
63 template<typename DefinerT = Aws::String>
64 void SetDefiner(DefinerT&& value) { m_definerHasBeenSet = true; m_definer = std::forward<DefinerT>(value); }
65 template<typename DefinerT = Aws::String>
66 ViewDefinition& WithDefiner(DefinerT&& value) { SetDefiner(std::forward<DefinerT>(value)); return *this;}
68
70
73 inline const Aws::Vector<Aws::String>& GetSubObjects() const { return m_subObjects; }
74 inline bool SubObjectsHasBeenSet() const { return m_subObjectsHasBeenSet; }
75 template<typename SubObjectsT = Aws::Vector<Aws::String>>
76 void SetSubObjects(SubObjectsT&& value) { m_subObjectsHasBeenSet = true; m_subObjects = std::forward<SubObjectsT>(value); }
77 template<typename SubObjectsT = Aws::Vector<Aws::String>>
78 ViewDefinition& WithSubObjects(SubObjectsT&& value) { SetSubObjects(std::forward<SubObjectsT>(value)); return *this;}
79 template<typename SubObjectsT = Aws::String>
80 ViewDefinition& AddSubObjects(SubObjectsT&& value) { m_subObjectsHasBeenSet = true; m_subObjects.emplace_back(std::forward<SubObjectsT>(value)); return *this; }
82
84
87 inline const Aws::Vector<ViewRepresentation>& GetRepresentations() const { return m_representations; }
88 inline bool RepresentationsHasBeenSet() const { return m_representationsHasBeenSet; }
89 template<typename RepresentationsT = Aws::Vector<ViewRepresentation>>
90 void SetRepresentations(RepresentationsT&& value) { m_representationsHasBeenSet = true; m_representations = std::forward<RepresentationsT>(value); }
91 template<typename RepresentationsT = Aws::Vector<ViewRepresentation>>
92 ViewDefinition& WithRepresentations(RepresentationsT&& value) { SetRepresentations(std::forward<RepresentationsT>(value)); return *this;}
93 template<typename RepresentationsT = ViewRepresentation>
94 ViewDefinition& AddRepresentations(RepresentationsT&& value) { m_representationsHasBeenSet = true; m_representations.emplace_back(std::forward<RepresentationsT>(value)); return *this; }
96 private:
97
98 bool m_isProtected{false};
99 bool m_isProtectedHasBeenSet = false;
100
101 Aws::String m_definer;
102 bool m_definerHasBeenSet = false;
103
104 Aws::Vector<Aws::String> m_subObjects;
105 bool m_subObjectsHasBeenSet = false;
106
107 Aws::Vector<ViewRepresentation> m_representations;
108 bool m_representationsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Glue
113} // namespace Aws
void SetRepresentations(RepresentationsT &&value)
ViewDefinition & AddSubObjects(SubObjectsT &&value)
ViewDefinition & WithRepresentations(RepresentationsT &&value)
const Aws::Vector< Aws::String > & GetSubObjects() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API ViewDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API ViewDefinition()=default
const Aws::Vector< ViewRepresentation > & GetRepresentations() const
const Aws::String & GetDefiner() const
AWS_GLUE_API ViewDefinition(Aws::Utils::Json::JsonView jsonValue)
void SetSubObjects(SubObjectsT &&value)
ViewDefinition & WithSubObjects(SubObjectsT &&value)
ViewDefinition & WithIsProtected(bool value)
void SetDefiner(DefinerT &&value)
ViewDefinition & AddRepresentations(RepresentationsT &&value)
ViewDefinition & WithDefiner(DefinerT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue