AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateExperimentTemplateActionInput.h
1
6#pragma once
7#include <aws/fis/FIS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace FIS
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_FIS_API CreateExperimentTemplateActionInput() = default;
43
44
46
50 inline const Aws::String& GetActionId() const { return m_actionId; }
51 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
52 template<typename ActionIdT = Aws::String>
53 void SetActionId(ActionIdT&& value) { m_actionIdHasBeenSet = true; m_actionId = std::forward<ActionIdT>(value); }
54 template<typename ActionIdT = Aws::String>
55 CreateExperimentTemplateActionInput& WithActionId(ActionIdT&& value) { SetActionId(std::forward<ActionIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template<typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
66 template<typename DescriptionT = Aws::String>
67 CreateExperimentTemplateActionInput& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
69
71
74 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
75 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
76 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
77 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
78 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
79 CreateExperimentTemplateActionInput& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
80 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
81 CreateExperimentTemplateActionInput& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
82 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
83 }
85
87
90 inline const Aws::Map<Aws::String, Aws::String>& GetTargets() const { return m_targets; }
91 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
92 template<typename TargetsT = Aws::Map<Aws::String, Aws::String>>
93 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
94 template<typename TargetsT = Aws::Map<Aws::String, Aws::String>>
95 CreateExperimentTemplateActionInput& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
96 template<typename TargetsKeyT = Aws::String, typename TargetsValueT = Aws::String>
97 CreateExperimentTemplateActionInput& AddTargets(TargetsKeyT&& key, TargetsValueT&& value) {
98 m_targetsHasBeenSet = true; m_targets.emplace(std::forward<TargetsKeyT>(key), std::forward<TargetsValueT>(value)); return *this;
99 }
101
103
108 inline const Aws::Vector<Aws::String>& GetStartAfter() const { return m_startAfter; }
109 inline bool StartAfterHasBeenSet() const { return m_startAfterHasBeenSet; }
110 template<typename StartAfterT = Aws::Vector<Aws::String>>
111 void SetStartAfter(StartAfterT&& value) { m_startAfterHasBeenSet = true; m_startAfter = std::forward<StartAfterT>(value); }
112 template<typename StartAfterT = Aws::Vector<Aws::String>>
113 CreateExperimentTemplateActionInput& WithStartAfter(StartAfterT&& value) { SetStartAfter(std::forward<StartAfterT>(value)); return *this;}
114 template<typename StartAfterT = Aws::String>
115 CreateExperimentTemplateActionInput& AddStartAfter(StartAfterT&& value) { m_startAfterHasBeenSet = true; m_startAfter.emplace_back(std::forward<StartAfterT>(value)); return *this; }
117 private:
118
119 Aws::String m_actionId;
120 bool m_actionIdHasBeenSet = false;
121
122 Aws::String m_description;
123 bool m_descriptionHasBeenSet = false;
124
126 bool m_parametersHasBeenSet = false;
127
129 bool m_targetsHasBeenSet = false;
130
131 Aws::Vector<Aws::String> m_startAfter;
132 bool m_startAfterHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace FIS
137} // namespace Aws
CreateExperimentTemplateActionInput & WithParameters(ParametersT &&value)
AWS_FIS_API Aws::Utils::Json::JsonValue Jsonize() const
CreateExperimentTemplateActionInput & WithStartAfter(StartAfterT &&value)
AWS_FIS_API CreateExperimentTemplateActionInput & operator=(Aws::Utils::Json::JsonView jsonValue)
CreateExperimentTemplateActionInput & WithDescription(DescriptionT &&value)
CreateExperimentTemplateActionInput & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
CreateExperimentTemplateActionInput & WithTargets(TargetsT &&value)
AWS_FIS_API CreateExperimentTemplateActionInput(Aws::Utils::Json::JsonView jsonValue)
CreateExperimentTemplateActionInput & AddStartAfter(StartAfterT &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
const Aws::Map< Aws::String, Aws::String > & GetTargets() const
CreateExperimentTemplateActionInput & AddTargets(TargetsKeyT &&key, TargetsValueT &&value)
CreateExperimentTemplateActionInput & WithActionId(ActionIdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue