AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Action.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fis/FIS_EXPORTS.h>
10#include <aws/fis/model/ActionParameter.h>
11#include <aws/fis/model/ActionTarget.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace FIS {
23namespace Model {
24
33class Action {
34 public:
35 AWS_FIS_API Action() = default;
36 AWS_FIS_API Action(Aws::Utils::Json::JsonView jsonValue);
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
52 Action& WithId(IdT&& value) {
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetArn() const { return m_arn; }
63 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
64 template <typename ArnT = Aws::String>
65 void SetArn(ArnT&& value) {
66 m_arnHasBeenSet = true;
67 m_arn = std::forward<ArnT>(value);
68 }
69 template <typename ArnT = Aws::String>
70 Action& WithArn(ArnT&& value) {
71 SetArn(std::forward<ArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
88 Action& WithDescription(DescriptionT&& value) {
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Map<Aws::String, ActionParameter>& GetParameters() const { return m_parameters; }
99 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
100 template <typename ParametersT = Aws::Map<Aws::String, ActionParameter>>
101 void SetParameters(ParametersT&& value) {
102 m_parametersHasBeenSet = true;
103 m_parameters = std::forward<ParametersT>(value);
104 }
105 template <typename ParametersT = Aws::Map<Aws::String, ActionParameter>>
106 Action& WithParameters(ParametersT&& value) {
107 SetParameters(std::forward<ParametersT>(value));
108 return *this;
109 }
110 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = ActionParameter>
111 Action& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
112 m_parametersHasBeenSet = true;
113 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Map<Aws::String, ActionTarget>& GetTargets() const { return m_targets; }
123 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
124 template <typename TargetsT = Aws::Map<Aws::String, ActionTarget>>
125 void SetTargets(TargetsT&& value) {
126 m_targetsHasBeenSet = true;
127 m_targets = std::forward<TargetsT>(value);
128 }
129 template <typename TargetsT = Aws::Map<Aws::String, ActionTarget>>
130 Action& WithTargets(TargetsT&& value) {
131 SetTargets(std::forward<TargetsT>(value));
132 return *this;
133 }
134 template <typename TargetsKeyT = Aws::String, typename TargetsValueT = ActionTarget>
135 Action& AddTargets(TargetsKeyT&& key, TargetsValueT&& value) {
136 m_targetsHasBeenSet = true;
137 m_targets.emplace(std::forward<TargetsKeyT>(key), std::forward<TargetsValueT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
147 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
148 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
149 void SetTags(TagsT&& value) {
150 m_tagsHasBeenSet = true;
151 m_tags = std::forward<TagsT>(value);
152 }
153 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
154 Action& WithTags(TagsT&& value) {
155 SetTags(std::forward<TagsT>(value));
156 return *this;
157 }
158 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
159 Action& AddTags(TagsKeyT&& key, TagsValueT&& value) {
160 m_tagsHasBeenSet = true;
161 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_id;
167
168 Aws::String m_arn;
169
170 Aws::String m_description;
171
173
175
177 bool m_idHasBeenSet = false;
178 bool m_arnHasBeenSet = false;
179 bool m_descriptionHasBeenSet = false;
180 bool m_parametersHasBeenSet = false;
181 bool m_targetsHasBeenSet = false;
182 bool m_tagsHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace FIS
187} // namespace Aws
const Aws::Map< Aws::String, ActionParameter > & GetParameters() const
Definition Action.h:98
void SetTargets(TargetsT &&value)
Definition Action.h:125
Action & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
Definition Action.h:111
Action & WithParameters(ParametersT &&value)
Definition Action.h:106
void SetTags(TagsT &&value)
Definition Action.h:149
void SetArn(ArnT &&value)
Definition Action.h:65
void SetId(IdT &&value)
Definition Action.h:47
bool IdHasBeenSet() const
Definition Action.h:45
void SetParameters(ParametersT &&value)
Definition Action.h:101
bool TagsHasBeenSet() const
Definition Action.h:147
Action & AddTargets(TargetsKeyT &&key, TargetsValueT &&value)
Definition Action.h:135
bool DescriptionHasBeenSet() const
Definition Action.h:81
Action & WithDescription(DescriptionT &&value)
Definition Action.h:88
const Aws::String & GetArn() const
Definition Action.h:62
Action & WithTargets(TargetsT &&value)
Definition Action.h:130
Action & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Action.h:159
const Aws::String & GetDescription() const
Definition Action.h:80
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Action.h:146
bool ParametersHasBeenSet() const
Definition Action.h:99
AWS_FIS_API Action(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
Definition Action.h:83
bool TargetsHasBeenSet() const
Definition Action.h:123
Action & WithId(IdT &&value)
Definition Action.h:52
bool ArnHasBeenSet() const
Definition Action.h:63
Action & WithTags(TagsT &&value)
Definition Action.h:154
const Aws::Map< Aws::String, ActionTarget > & GetTargets() const
Definition Action.h:122
AWS_FIS_API Action & operator=(Aws::Utils::Json::JsonView jsonValue)
Action & WithArn(ArnT &&value)
Definition Action.h:70
const Aws::String & GetId() const
Definition Action.h:44
AWS_FIS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FIS_API Action()=default
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
Aws::Utils::Json::JsonValue JsonValue