AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ValueMappings.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/FormInputBindingPropertiesValue.h>
9#include <aws/amplifyuibuilder/model/ValueMapping.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AmplifyUIBuilder {
24namespace Model {
25
33 public:
34 AWS_AMPLIFYUIBUILDER_API ValueMappings() = default;
35 AWS_AMPLIFYUIBUILDER_API ValueMappings(Aws::Utils::Json::JsonView jsonValue);
36 AWS_AMPLIFYUIBUILDER_API ValueMappings& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Vector<ValueMapping>& GetValues() const { return m_values; }
44 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
45 template <typename ValuesT = Aws::Vector<ValueMapping>>
46 void SetValues(ValuesT&& value) {
47 m_valuesHasBeenSet = true;
48 m_values = std::forward<ValuesT>(value);
49 }
50 template <typename ValuesT = Aws::Vector<ValueMapping>>
51 ValueMappings& WithValues(ValuesT&& value) {
52 SetValues(std::forward<ValuesT>(value));
53 return *this;
54 }
55 template <typename ValuesT = ValueMapping>
56 ValueMappings& AddValues(ValuesT&& value) {
57 m_valuesHasBeenSet = true;
58 m_values.emplace_back(std::forward<ValuesT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::Map<Aws::String, FormInputBindingPropertiesValue>& GetBindingProperties() const { return m_bindingProperties; }
68 inline bool BindingPropertiesHasBeenSet() const { return m_bindingPropertiesHasBeenSet; }
69 template <typename BindingPropertiesT = Aws::Map<Aws::String, FormInputBindingPropertiesValue>>
70 void SetBindingProperties(BindingPropertiesT&& value) {
71 m_bindingPropertiesHasBeenSet = true;
72 m_bindingProperties = std::forward<BindingPropertiesT>(value);
73 }
74 template <typename BindingPropertiesT = Aws::Map<Aws::String, FormInputBindingPropertiesValue>>
75 ValueMappings& WithBindingProperties(BindingPropertiesT&& value) {
76 SetBindingProperties(std::forward<BindingPropertiesT>(value));
77 return *this;
78 }
79 template <typename BindingPropertiesKeyT = Aws::String, typename BindingPropertiesValueT = FormInputBindingPropertiesValue>
80 ValueMappings& AddBindingProperties(BindingPropertiesKeyT&& key, BindingPropertiesValueT&& value) {
81 m_bindingPropertiesHasBeenSet = true;
82 m_bindingProperties.emplace(std::forward<BindingPropertiesKeyT>(key), std::forward<BindingPropertiesValueT>(value));
83 return *this;
84 }
86 private:
88
90 bool m_valuesHasBeenSet = false;
91 bool m_bindingPropertiesHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace AmplifyUIBuilder
96} // namespace Aws
void SetBindingProperties(BindingPropertiesT &&value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
ValueMappings & WithValues(ValuesT &&value)
AWS_AMPLIFYUIBUILDER_API ValueMappings(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, FormInputBindingPropertiesValue > & GetBindingProperties() const
ValueMappings & AddValues(ValuesT &&value)
const Aws::Vector< ValueMapping > & GetValues() const
AWS_AMPLIFYUIBUILDER_API ValueMappings & operator=(Aws::Utils::Json::JsonView jsonValue)
ValueMappings & WithBindingProperties(BindingPropertiesT &&value)
AWS_AMPLIFYUIBUILDER_API ValueMappings()=default
ValueMappings & AddBindingProperties(BindingPropertiesKeyT &&key, BindingPropertiesValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue