AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ValueMappings.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/amplifyuibuilder/model/ValueMapping.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/amplifyuibuilder/model/FormInputBindingPropertiesValue.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace AmplifyUIBuilder
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_AMPLIFYUIBUILDER_API ValueMappings() = default;
40 AWS_AMPLIFYUIBUILDER_API ValueMappings(Aws::Utils::Json::JsonView jsonValue);
41 AWS_AMPLIFYUIBUILDER_API ValueMappings& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Vector<ValueMapping>& GetValues() const { return m_values; }
50 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
51 template<typename ValuesT = Aws::Vector<ValueMapping>>
52 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
53 template<typename ValuesT = Aws::Vector<ValueMapping>>
54 ValueMappings& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
55 template<typename ValuesT = ValueMapping>
56 ValueMappings& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
58
60
63 inline const Aws::Map<Aws::String, FormInputBindingPropertiesValue>& GetBindingProperties() const { return m_bindingProperties; }
64 inline bool BindingPropertiesHasBeenSet() const { return m_bindingPropertiesHasBeenSet; }
65 template<typename BindingPropertiesT = Aws::Map<Aws::String, FormInputBindingPropertiesValue>>
66 void SetBindingProperties(BindingPropertiesT&& value) { m_bindingPropertiesHasBeenSet = true; m_bindingProperties = std::forward<BindingPropertiesT>(value); }
67 template<typename BindingPropertiesT = Aws::Map<Aws::String, FormInputBindingPropertiesValue>>
68 ValueMappings& WithBindingProperties(BindingPropertiesT&& value) { SetBindingProperties(std::forward<BindingPropertiesT>(value)); return *this;}
69 template<typename BindingPropertiesKeyT = Aws::String, typename BindingPropertiesValueT = FormInputBindingPropertiesValue>
70 ValueMappings& AddBindingProperties(BindingPropertiesKeyT&& key, BindingPropertiesValueT&& value) {
71 m_bindingPropertiesHasBeenSet = true; m_bindingProperties.emplace(std::forward<BindingPropertiesKeyT>(key), std::forward<BindingPropertiesValueT>(value)); return *this;
72 }
74 private:
75
77 bool m_valuesHasBeenSet = false;
78
80 bool m_bindingPropertiesHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace AmplifyUIBuilder
85} // 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