AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CodegenGenericDataEnum.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AmplifyUIBuilder {
21namespace Model {
22
29 public:
30 AWS_AMPLIFYUIBUILDER_API CodegenGenericDataEnum() = default;
31 AWS_AMPLIFYUIBUILDER_API CodegenGenericDataEnum(Aws::Utils::Json::JsonView jsonValue);
32 AWS_AMPLIFYUIBUILDER_API CodegenGenericDataEnum& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
40 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
41 template <typename ValuesT = Aws::Vector<Aws::String>>
42 void SetValues(ValuesT&& value) {
43 m_valuesHasBeenSet = true;
44 m_values = std::forward<ValuesT>(value);
45 }
46 template <typename ValuesT = Aws::Vector<Aws::String>>
48 SetValues(std::forward<ValuesT>(value));
49 return *this;
50 }
51 template <typename ValuesT = Aws::String>
53 m_valuesHasBeenSet = true;
54 m_values.emplace_back(std::forward<ValuesT>(value));
55 return *this;
56 }
58 private:
60 bool m_valuesHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace AmplifyUIBuilder
65} // namespace Aws
CodegenGenericDataEnum & WithValues(ValuesT &&value)
AWS_AMPLIFYUIBUILDER_API CodegenGenericDataEnum(Aws::Utils::Json::JsonView jsonValue)
CodegenGenericDataEnum & AddValues(ValuesT &&value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetValues() const
AWS_AMPLIFYUIBUILDER_API CodegenGenericDataEnum & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYUIBUILDER_API CodegenGenericDataEnum()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue