AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ExperimentTemplateAction.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
34 {
35 public:
36 AWS_FIS_API ExperimentTemplateAction() = default;
40
41
43
46 inline const Aws::String& GetActionId() const { return m_actionId; }
47 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
48 template<typename ActionIdT = Aws::String>
49 void SetActionId(ActionIdT&& value) { m_actionIdHasBeenSet = true; m_actionId = std::forward<ActionIdT>(value); }
50 template<typename ActionIdT = Aws::String>
51 ExperimentTemplateAction& WithActionId(ActionIdT&& value) { SetActionId(std::forward<ActionIdT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
62 template<typename DescriptionT = Aws::String>
63 ExperimentTemplateAction& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
65
67
70 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
71 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
72 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
73 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
74 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
75 ExperimentTemplateAction& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
76 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
77 ExperimentTemplateAction& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
78 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
79 }
81
83
86 inline const Aws::Map<Aws::String, Aws::String>& GetTargets() const { return m_targets; }
87 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
88 template<typename TargetsT = Aws::Map<Aws::String, Aws::String>>
89 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
90 template<typename TargetsT = Aws::Map<Aws::String, Aws::String>>
91 ExperimentTemplateAction& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
92 template<typename TargetsKeyT = Aws::String, typename TargetsValueT = Aws::String>
93 ExperimentTemplateAction& AddTargets(TargetsKeyT&& key, TargetsValueT&& value) {
94 m_targetsHasBeenSet = true; m_targets.emplace(std::forward<TargetsKeyT>(key), std::forward<TargetsValueT>(value)); return *this;
95 }
97
99
103 inline const Aws::Vector<Aws::String>& GetStartAfter() const { return m_startAfter; }
104 inline bool StartAfterHasBeenSet() const { return m_startAfterHasBeenSet; }
105 template<typename StartAfterT = Aws::Vector<Aws::String>>
106 void SetStartAfter(StartAfterT&& value) { m_startAfterHasBeenSet = true; m_startAfter = std::forward<StartAfterT>(value); }
107 template<typename StartAfterT = Aws::Vector<Aws::String>>
108 ExperimentTemplateAction& WithStartAfter(StartAfterT&& value) { SetStartAfter(std::forward<StartAfterT>(value)); return *this;}
109 template<typename StartAfterT = Aws::String>
110 ExperimentTemplateAction& AddStartAfter(StartAfterT&& value) { m_startAfterHasBeenSet = true; m_startAfter.emplace_back(std::forward<StartAfterT>(value)); return *this; }
112 private:
113
114 Aws::String m_actionId;
115 bool m_actionIdHasBeenSet = false;
116
117 Aws::String m_description;
118 bool m_descriptionHasBeenSet = false;
119
121 bool m_parametersHasBeenSet = false;
122
124 bool m_targetsHasBeenSet = false;
125
126 Aws::Vector<Aws::String> m_startAfter;
127 bool m_startAfterHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace FIS
132} // namespace Aws
ExperimentTemplateAction & WithActionId(ActionIdT &&value)
ExperimentTemplateAction & AddStartAfter(StartAfterT &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
AWS_FIS_API ExperimentTemplateAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetStartAfter() const
ExperimentTemplateAction & WithDescription(DescriptionT &&value)
ExperimentTemplateAction & AddTargets(TargetsKeyT &&key, TargetsValueT &&value)
ExperimentTemplateAction & WithTargets(TargetsT &&value)
ExperimentTemplateAction & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
AWS_FIS_API ExperimentTemplateAction()=default
const Aws::Map< Aws::String, Aws::String > & GetTargets() const
ExperimentTemplateAction & WithStartAfter(StartAfterT &&value)
AWS_FIS_API ExperimentTemplateAction(Aws::Utils::Json::JsonView jsonValue)
ExperimentTemplateAction & WithParameters(ParametersT &&value)
AWS_FIS_API Aws::Utils::Json::JsonValue Jsonize() const
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