AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Action.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/fis/model/ActionParameter.h>
11#include <aws/fis/model/ActionTarget.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace FIS
25{
26namespace Model
27{
28
37 class Action
38 {
39 public:
40 AWS_FIS_API Action() = default;
41 AWS_FIS_API Action(Aws::Utils::Json::JsonView jsonValue);
44
45
47
50 inline const Aws::String& GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 template<typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
54 template<typename IdT = Aws::String>
55 Action& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
66 template<typename ArnT = Aws::String>
67 Action& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template<typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
78 template<typename DescriptionT = Aws::String>
79 Action& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
81
83
86 inline const Aws::Map<Aws::String, ActionParameter>& GetParameters() const { return m_parameters; }
87 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
88 template<typename ParametersT = Aws::Map<Aws::String, ActionParameter>>
89 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
90 template<typename ParametersT = Aws::Map<Aws::String, ActionParameter>>
91 Action& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
92 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = ActionParameter>
93 Action& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
94 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
95 }
97
99
102 inline const Aws::Map<Aws::String, ActionTarget>& GetTargets() const { return m_targets; }
103 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
104 template<typename TargetsT = Aws::Map<Aws::String, ActionTarget>>
105 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
106 template<typename TargetsT = Aws::Map<Aws::String, ActionTarget>>
107 Action& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
108 template<typename TargetsKeyT = Aws::String, typename TargetsValueT = ActionTarget>
109 Action& AddTargets(TargetsKeyT&& key, TargetsValueT&& value) {
110 m_targetsHasBeenSet = true; m_targets.emplace(std::forward<TargetsKeyT>(key), std::forward<TargetsValueT>(value)); return *this;
111 }
113
115
118 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
122 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 Action& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
124 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
125 Action& AddTags(TagsKeyT&& key, TagsValueT&& value) {
126 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
127 }
129 private:
130
131 Aws::String m_id;
132 bool m_idHasBeenSet = false;
133
134 Aws::String m_arn;
135 bool m_arnHasBeenSet = false;
136
137 Aws::String m_description;
138 bool m_descriptionHasBeenSet = false;
139
141 bool m_parametersHasBeenSet = false;
142
144 bool m_targetsHasBeenSet = false;
145
147 bool m_tagsHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace FIS
152} // namespace Aws
const Aws::Map< Aws::String, ActionParameter > & GetParameters() const
Definition Action.h:86
void SetTargets(TargetsT &&value)
Definition Action.h:105
Action & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
Definition Action.h:93
Action & WithParameters(ParametersT &&value)
Definition Action.h:91
void SetTags(TagsT &&value)
Definition Action.h:121
void SetArn(ArnT &&value)
Definition Action.h:65
void SetId(IdT &&value)
Definition Action.h:53
bool IdHasBeenSet() const
Definition Action.h:51
void SetParameters(ParametersT &&value)
Definition Action.h:89
bool TagsHasBeenSet() const
Definition Action.h:119
Action & AddTargets(TargetsKeyT &&key, TargetsValueT &&value)
Definition Action.h:109
bool DescriptionHasBeenSet() const
Definition Action.h:75
Action & WithDescription(DescriptionT &&value)
Definition Action.h:79
const Aws::String & GetArn() const
Definition Action.h:62
Action & WithTargets(TargetsT &&value)
Definition Action.h:107
Action & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Action.h:125
const Aws::String & GetDescription() const
Definition Action.h:74
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Action.h:118
bool ParametersHasBeenSet() const
Definition Action.h:87
AWS_FIS_API Action(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
Definition Action.h:77
bool TargetsHasBeenSet() const
Definition Action.h:103
Action & WithId(IdT &&value)
Definition Action.h:55
bool ArnHasBeenSet() const
Definition Action.h:63
Action & WithTags(TagsT &&value)
Definition Action.h:123
const Aws::Map< Aws::String, ActionTarget > & GetTargets() const
Definition Action.h:102
AWS_FIS_API Action & operator=(Aws::Utils::Json::JsonView jsonValue)
Action & WithArn(ArnT &&value)
Definition Action.h:67
const Aws::String & GetId() const
Definition Action.h:50
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