AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ComponentDataConfiguration.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/Predicate.h>
9#include <aws/amplifyuibuilder/model/SortProperty.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AmplifyUIBuilder {
23namespace Model {
24
32 public:
33 AWS_AMPLIFYUIBUILDER_API ComponentDataConfiguration() = default;
34 AWS_AMPLIFYUIBUILDER_API ComponentDataConfiguration(Aws::Utils::Json::JsonView jsonValue);
36 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetModel() const { return m_model; }
43 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
44 template <typename ModelT = Aws::String>
45 void SetModel(ModelT&& value) {
46 m_modelHasBeenSet = true;
47 m_model = std::forward<ModelT>(value);
48 }
49 template <typename ModelT = Aws::String>
51 SetModel(std::forward<ModelT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<SortProperty>& GetSort() const { return m_sort; }
61 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
62 template <typename SortT = Aws::Vector<SortProperty>>
63 void SetSort(SortT&& value) {
64 m_sortHasBeenSet = true;
65 m_sort = std::forward<SortT>(value);
66 }
67 template <typename SortT = Aws::Vector<SortProperty>>
69 SetSort(std::forward<SortT>(value));
70 return *this;
71 }
72 template <typename SortT = SortProperty>
74 m_sortHasBeenSet = true;
75 m_sort.emplace_back(std::forward<SortT>(value));
76 return *this;
77 }
79
81
85 inline const Predicate& GetPredicate() const { return m_predicate; }
86 inline bool PredicateHasBeenSet() const { return m_predicateHasBeenSet; }
87 template <typename PredicateT = Predicate>
88 void SetPredicate(PredicateT&& value) {
89 m_predicateHasBeenSet = true;
90 m_predicate = std::forward<PredicateT>(value);
91 }
92 template <typename PredicateT = Predicate>
94 SetPredicate(std::forward<PredicateT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::Vector<Aws::String>& GetIdentifiers() const { return m_identifiers; }
105 inline bool IdentifiersHasBeenSet() const { return m_identifiersHasBeenSet; }
106 template <typename IdentifiersT = Aws::Vector<Aws::String>>
107 void SetIdentifiers(IdentifiersT&& value) {
108 m_identifiersHasBeenSet = true;
109 m_identifiers = std::forward<IdentifiersT>(value);
110 }
111 template <typename IdentifiersT = Aws::Vector<Aws::String>>
113 SetIdentifiers(std::forward<IdentifiersT>(value));
114 return *this;
115 }
116 template <typename IdentifiersT = Aws::String>
118 m_identifiersHasBeenSet = true;
119 m_identifiers.emplace_back(std::forward<IdentifiersT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_model;
125
127
128 Predicate m_predicate;
129
130 Aws::Vector<Aws::String> m_identifiers;
131 bool m_modelHasBeenSet = false;
132 bool m_sortHasBeenSet = false;
133 bool m_predicateHasBeenSet = false;
134 bool m_identifiersHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace AmplifyUIBuilder
139} // namespace Aws
AWS_AMPLIFYUIBUILDER_API ComponentDataConfiguration()=default
AWS_AMPLIFYUIBUILDER_API ComponentDataConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ComponentDataConfiguration & WithPredicate(PredicateT &&value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentDataConfiguration & AddIdentifiers(IdentifiersT &&value)
AWS_AMPLIFYUIBUILDER_API ComponentDataConfiguration(Aws::Utils::Json::JsonView jsonValue)
ComponentDataConfiguration & WithIdentifiers(IdentifiersT &&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