AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetModel(const Aws::String& value) { m_modelHasBeenSet = true; m_model = value; }
51 inline void SetModel(Aws::String&& value) { m_modelHasBeenSet = true; m_model = std::move(value); }
52 inline void SetModel(const char* value) { m_modelHasBeenSet = true; m_model.assign(value); }
53 inline ComponentDataConfiguration& WithModel(const Aws::String& value) { SetModel(value); return *this;}
54 inline ComponentDataConfiguration& WithModel(Aws::String&& value) { SetModel(std::move(value)); return *this;}
55 inline ComponentDataConfiguration& WithModel(const char* value) { SetModel(value); return *this;}
57
59
62 inline const Aws::Vector<SortProperty>& GetSort() const{ return m_sort; }
63 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
64 inline void SetSort(const Aws::Vector<SortProperty>& value) { m_sortHasBeenSet = true; m_sort = value; }
65 inline void SetSort(Aws::Vector<SortProperty>&& value) { m_sortHasBeenSet = true; m_sort = std::move(value); }
66 inline ComponentDataConfiguration& WithSort(const Aws::Vector<SortProperty>& value) { SetSort(value); return *this;}
67 inline ComponentDataConfiguration& WithSort(Aws::Vector<SortProperty>&& value) { SetSort(std::move(value)); return *this;}
68 inline ComponentDataConfiguration& AddSort(const SortProperty& value) { m_sortHasBeenSet = true; m_sort.push_back(value); return *this; }
69 inline ComponentDataConfiguration& AddSort(SortProperty&& value) { m_sortHasBeenSet = true; m_sort.push_back(std::move(value)); return *this; }
71
73
77 inline const Predicate& GetPredicate() const{ return m_predicate; }
78 inline bool PredicateHasBeenSet() const { return m_predicateHasBeenSet; }
79 inline void SetPredicate(const Predicate& value) { m_predicateHasBeenSet = true; m_predicate = value; }
80 inline void SetPredicate(Predicate&& value) { m_predicateHasBeenSet = true; m_predicate = std::move(value); }
81 inline ComponentDataConfiguration& WithPredicate(const Predicate& value) { SetPredicate(value); return *this;}
82 inline ComponentDataConfiguration& WithPredicate(Predicate&& value) { SetPredicate(std::move(value)); return *this;}
84
86
90 inline const Aws::Vector<Aws::String>& GetIdentifiers() const{ return m_identifiers; }
91 inline bool IdentifiersHasBeenSet() const { return m_identifiersHasBeenSet; }
92 inline void SetIdentifiers(const Aws::Vector<Aws::String>& value) { m_identifiersHasBeenSet = true; m_identifiers = value; }
93 inline void SetIdentifiers(Aws::Vector<Aws::String>&& value) { m_identifiersHasBeenSet = true; m_identifiers = std::move(value); }
95 inline ComponentDataConfiguration& WithIdentifiers(Aws::Vector<Aws::String>&& value) { SetIdentifiers(std::move(value)); return *this;}
96 inline ComponentDataConfiguration& AddIdentifiers(const Aws::String& value) { m_identifiersHasBeenSet = true; m_identifiers.push_back(value); return *this; }
97 inline ComponentDataConfiguration& AddIdentifiers(Aws::String&& value) { m_identifiersHasBeenSet = true; m_identifiers.push_back(std::move(value)); return *this; }
98 inline ComponentDataConfiguration& AddIdentifiers(const char* value) { m_identifiersHasBeenSet = true; m_identifiers.push_back(value); return *this; }
100 private:
101
102 Aws::String m_model;
103 bool m_modelHasBeenSet = false;
104
106 bool m_sortHasBeenSet = false;
107
108 Predicate m_predicate;
109 bool m_predicateHasBeenSet = false;
110
111 Aws::Vector<Aws::String> m_identifiers;
112 bool m_identifiersHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace AmplifyUIBuilder
117} // namespace Aws
ComponentDataConfiguration & WithIdentifiers(Aws::Vector< Aws::String > &&value)
ComponentDataConfiguration & WithSort(const Aws::Vector< SortProperty > &value)
ComponentDataConfiguration & AddIdentifiers(Aws::String &&value)
ComponentDataConfiguration & WithSort(Aws::Vector< SortProperty > &&value)
ComponentDataConfiguration & WithModel(const Aws::String &value)
ComponentDataConfiguration & WithModel(Aws::String &&value)
ComponentDataConfiguration & AddIdentifiers(const Aws::String &value)
AWS_AMPLIFYUIBUILDER_API ComponentDataConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ComponentDataConfiguration & AddIdentifiers(const char *value)
ComponentDataConfiguration & WithPredicate(Predicate &&value)
void SetIdentifiers(const Aws::Vector< Aws::String > &value)
ComponentDataConfiguration & AddSort(const SortProperty &value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentDataConfiguration & WithIdentifiers(const Aws::Vector< Aws::String > &value)
ComponentDataConfiguration & WithPredicate(const Predicate &value)
void SetSort(const Aws::Vector< SortProperty > &value)
ComponentDataConfiguration & AddSort(SortProperty &&value)
ComponentDataConfiguration & WithModel(const char *value)
AWS_AMPLIFYUIBUILDER_API ComponentDataConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue