AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ComponentDataConfiguration.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/amplifyuibuilder/model/Predicate.h>
11#include <aws/amplifyuibuilder/model/SortProperty.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AmplifyUIBuilder
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_AMPLIFYUIBUILDER_API ComponentDataConfiguration() = default;
39 AWS_AMPLIFYUIBUILDER_API ComponentDataConfiguration(Aws::Utils::Json::JsonView jsonValue);
41 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetModel() const { return m_model; }
49 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
50 template<typename ModelT = Aws::String>
51 void SetModel(ModelT&& value) { m_modelHasBeenSet = true; m_model = std::forward<ModelT>(value); }
52 template<typename ModelT = Aws::String>
53 ComponentDataConfiguration& WithModel(ModelT&& value) { SetModel(std::forward<ModelT>(value)); return *this;}
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) { m_sortHasBeenSet = true; m_sort = std::forward<SortT>(value); }
64 template<typename SortT = Aws::Vector<SortProperty>>
65 ComponentDataConfiguration& WithSort(SortT&& value) { SetSort(std::forward<SortT>(value)); return *this;}
66 template<typename SortT = SortProperty>
67 ComponentDataConfiguration& AddSort(SortT&& value) { m_sortHasBeenSet = true; m_sort.emplace_back(std::forward<SortT>(value)); return *this; }
69
71
75 inline const Predicate& GetPredicate() const { return m_predicate; }
76 inline bool PredicateHasBeenSet() const { return m_predicateHasBeenSet; }
77 template<typename PredicateT = Predicate>
78 void SetPredicate(PredicateT&& value) { m_predicateHasBeenSet = true; m_predicate = std::forward<PredicateT>(value); }
79 template<typename PredicateT = Predicate>
80 ComponentDataConfiguration& WithPredicate(PredicateT&& value) { SetPredicate(std::forward<PredicateT>(value)); return *this;}
82
84
88 inline const Aws::Vector<Aws::String>& GetIdentifiers() const { return m_identifiers; }
89 inline bool IdentifiersHasBeenSet() const { return m_identifiersHasBeenSet; }
90 template<typename IdentifiersT = Aws::Vector<Aws::String>>
91 void SetIdentifiers(IdentifiersT&& value) { m_identifiersHasBeenSet = true; m_identifiers = std::forward<IdentifiersT>(value); }
92 template<typename IdentifiersT = Aws::Vector<Aws::String>>
93 ComponentDataConfiguration& WithIdentifiers(IdentifiersT&& value) { SetIdentifiers(std::forward<IdentifiersT>(value)); return *this;}
94 template<typename IdentifiersT = Aws::String>
95 ComponentDataConfiguration& AddIdentifiers(IdentifiersT&& value) { m_identifiersHasBeenSet = true; m_identifiers.emplace_back(std::forward<IdentifiersT>(value)); return *this; }
97 private:
98
99 Aws::String m_model;
100 bool m_modelHasBeenSet = false;
101
103 bool m_sortHasBeenSet = false;
104
105 Predicate m_predicate;
106 bool m_predicateHasBeenSet = false;
107
108 Aws::Vector<Aws::String> m_identifiers;
109 bool m_identifiersHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace AmplifyUIBuilder
114} // 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