AWS SDK for C++

AWS SDK for C++ Version 1.11.870

Loading...
Searching...
No Matches
TestTemplate.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10#include <aws/resiliencehubv2/model/TestAction.h>
11#include <aws/resiliencehubv2/model/TestTemplateParameter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace resiliencehubv2 {
23namespace Model {
24
33 public:
34 AWS_RESILIENCEHUBV2_API TestTemplate() = default;
35 AWS_RESILIENCEHUBV2_API TestTemplate(Aws::Utils::Json::JsonView jsonValue);
36 AWS_RESILIENCEHUBV2_API TestTemplate& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetTestTemplateArn() const { return m_testTemplateArn; }
44 inline bool TestTemplateArnHasBeenSet() const { return m_testTemplateArnHasBeenSet; }
45 template <typename TestTemplateArnT = Aws::String>
46 void SetTestTemplateArn(TestTemplateArnT&& value) {
47 m_testTemplateArnHasBeenSet = true;
48 m_testTemplateArn = std::forward<TestTemplateArnT>(value);
49 }
50 template <typename TestTemplateArnT = Aws::String>
51 TestTemplate& WithTestTemplateArn(TestTemplateArnT&& value) {
52 SetTestTemplateArn(std::forward<TestTemplateArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 TestTemplate& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
87 TestTemplate& WithDescription(DescriptionT&& value) {
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Vector<TestTemplateParameter>& GetParameters() const { return m_parameters; }
98 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
99 template <typename ParametersT = Aws::Vector<TestTemplateParameter>>
100 void SetParameters(ParametersT&& value) {
101 m_parametersHasBeenSet = true;
102 m_parameters = std::forward<ParametersT>(value);
103 }
104 template <typename ParametersT = Aws::Vector<TestTemplateParameter>>
105 TestTemplate& WithParameters(ParametersT&& value) {
106 SetParameters(std::forward<ParametersT>(value));
107 return *this;
108 }
109 template <typename ParametersT = TestTemplateParameter>
110 TestTemplate& AddParameters(ParametersT&& value) {
111 m_parametersHasBeenSet = true;
112 m_parameters.emplace_back(std::forward<ParametersT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Vector<TestAction>& GetActions() const { return m_actions; }
122 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
123 template <typename ActionsT = Aws::Vector<TestAction>>
124 void SetActions(ActionsT&& value) {
125 m_actionsHasBeenSet = true;
126 m_actions = std::forward<ActionsT>(value);
127 }
128 template <typename ActionsT = Aws::Vector<TestAction>>
129 TestTemplate& WithActions(ActionsT&& value) {
130 SetActions(std::forward<ActionsT>(value));
131 return *this;
132 }
133 template <typename ActionsT = TestAction>
134 TestTemplate& AddActions(ActionsT&& value) {
135 m_actionsHasBeenSet = true;
136 m_actions.emplace_back(std::forward<ActionsT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_testTemplateArn;
142
143 Aws::String m_name;
144
145 Aws::String m_description;
146
148
149 Aws::Vector<TestAction> m_actions;
150 bool m_testTemplateArnHasBeenSet = false;
151 bool m_nameHasBeenSet = false;
152 bool m_descriptionHasBeenSet = false;
153 bool m_parametersHasBeenSet = false;
154 bool m_actionsHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace resiliencehubv2
159} // namespace Aws
void SetDescription(DescriptionT &&value)
TestTemplate & WithName(NameT &&value)
TestTemplate & WithTestTemplateArn(TestTemplateArnT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetTestTemplateArn() const
void SetTestTemplateArn(TestTemplateArnT &&value)
TestTemplate & AddActions(ActionsT &&value)
TestTemplate & AddParameters(ParametersT &&value)
AWS_RESILIENCEHUBV2_API TestTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
TestTemplate & WithDescription(DescriptionT &&value)
const Aws::Vector< TestAction > & GetActions() const
TestTemplate & WithActions(ActionsT &&value)
const Aws::String & GetName() const
AWS_RESILIENCEHUBV2_API TestTemplate()=default
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
TestTemplate & WithParameters(ParametersT &&value)
void SetParameters(ParametersT &&value)
AWS_RESILIENCEHUBV2_API TestTemplate(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< TestTemplateParameter > & GetParameters() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue