AWS SDK for C++

AWS SDK for C++ Version 1.11.870

Loading...
Searching...
No Matches
TestTemplateParameter.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
9#include <aws/resiliencehubv2/model/ParameterType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace resiliencehubv2 {
21namespace Model {
22
30 public:
31 AWS_RESILIENCEHUBV2_API TestTemplateParameter() = default;
32 AWS_RESILIENCEHUBV2_API TestTemplateParameter(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUBV2_API TestTemplateParameter& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 TestTemplateParameter& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
76 inline ParameterType GetType() const { return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 inline void SetType(ParameterType value) {
79 m_typeHasBeenSet = true;
80 m_type = value;
81 }
83 SetType(value);
84 return *this;
85 }
87
89
92 inline bool GetRequired() const { return m_required; }
93 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
94 inline void SetRequired(bool value) {
95 m_requiredHasBeenSet = true;
96 m_required = value;
97 }
98 inline TestTemplateParameter& WithRequired(bool value) {
99 SetRequired(value);
100 return *this;
101 }
103
105
108 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
109 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
110 template <typename DefaultValueT = Aws::String>
111 void SetDefaultValue(DefaultValueT&& value) {
112 m_defaultValueHasBeenSet = true;
113 m_defaultValue = std::forward<DefaultValueT>(value);
114 }
115 template <typename DefaultValueT = Aws::String>
116 TestTemplateParameter& WithDefaultValue(DefaultValueT&& value) {
117 SetDefaultValue(std::forward<DefaultValueT>(value));
118 return *this;
119 }
121
123
126 inline int GetMaxValues() const { return m_maxValues; }
127 inline bool MaxValuesHasBeenSet() const { return m_maxValuesHasBeenSet; }
128 inline void SetMaxValues(int value) {
129 m_maxValuesHasBeenSet = true;
130 m_maxValues = value;
131 }
133 SetMaxValues(value);
134 return *this;
135 }
137 private:
138 Aws::String m_name;
139
140 Aws::String m_description;
141
143
144 bool m_required{false};
145
146 Aws::String m_defaultValue;
147
148 int m_maxValues{0};
149 bool m_nameHasBeenSet = false;
150 bool m_descriptionHasBeenSet = false;
151 bool m_typeHasBeenSet = false;
152 bool m_requiredHasBeenSet = false;
153 bool m_defaultValueHasBeenSet = false;
154 bool m_maxValuesHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace resiliencehubv2
159} // namespace Aws
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RESILIENCEHUBV2_API TestTemplateParameter()=default
TestTemplateParameter & WithDefaultValue(DefaultValueT &&value)
TestTemplateParameter & WithDescription(DescriptionT &&value)
AWS_RESILIENCEHUBV2_API TestTemplateParameter(Aws::Utils::Json::JsonView jsonValue)
TestTemplateParameter & WithName(NameT &&value)
TestTemplateParameter & WithType(ParameterType value)
AWS_RESILIENCEHUBV2_API TestTemplateParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue