AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
53 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
54 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
55 inline Action& WithId(const Aws::String& value) { SetId(value); return *this;}
56 inline Action& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
57 inline Action& WithId(const char* value) { SetId(value); return *this;}
59
61
64 inline const Aws::String& GetArn() const{ return m_arn; }
65 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
66 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
67 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
68 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
69 inline Action& WithArn(const Aws::String& value) { SetArn(value); return *this;}
70 inline Action& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
71 inline Action& WithArn(const char* value) { SetArn(value); return *this;}
73
75
78 inline const Aws::String& GetDescription() const{ return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
81 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
82 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
83 inline Action& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
84 inline Action& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
85 inline Action& WithDescription(const char* value) { SetDescription(value); return *this;}
87
89
92 inline const Aws::Map<Aws::String, ActionParameter>& GetParameters() const{ return m_parameters; }
93 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
94 inline void SetParameters(const Aws::Map<Aws::String, ActionParameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
95 inline void SetParameters(Aws::Map<Aws::String, ActionParameter>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
96 inline Action& WithParameters(const Aws::Map<Aws::String, ActionParameter>& value) { SetParameters(value); return *this;}
97 inline Action& WithParameters(Aws::Map<Aws::String, ActionParameter>&& value) { SetParameters(std::move(value)); return *this;}
98 inline Action& AddParameters(const Aws::String& key, const ActionParameter& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
99 inline Action& AddParameters(Aws::String&& key, const ActionParameter& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
100 inline Action& AddParameters(const Aws::String& key, ActionParameter&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
101 inline Action& AddParameters(Aws::String&& key, ActionParameter&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
102 inline Action& AddParameters(const char* key, ActionParameter&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
103 inline Action& AddParameters(const char* key, const ActionParameter& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
105
107
110 inline const Aws::Map<Aws::String, ActionTarget>& GetTargets() const{ return m_targets; }
111 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
112 inline void SetTargets(const Aws::Map<Aws::String, ActionTarget>& value) { m_targetsHasBeenSet = true; m_targets = value; }
113 inline void SetTargets(Aws::Map<Aws::String, ActionTarget>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
114 inline Action& WithTargets(const Aws::Map<Aws::String, ActionTarget>& value) { SetTargets(value); return *this;}
115 inline Action& WithTargets(Aws::Map<Aws::String, ActionTarget>&& value) { SetTargets(std::move(value)); return *this;}
116 inline Action& AddTargets(const Aws::String& key, const ActionTarget& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, value); return *this; }
117 inline Action& AddTargets(Aws::String&& key, const ActionTarget& value) { m_targetsHasBeenSet = true; m_targets.emplace(std::move(key), value); return *this; }
118 inline Action& AddTargets(const Aws::String& key, ActionTarget&& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, std::move(value)); return *this; }
119 inline Action& AddTargets(Aws::String&& key, ActionTarget&& value) { m_targetsHasBeenSet = true; m_targets.emplace(std::move(key), std::move(value)); return *this; }
120 inline Action& AddTargets(const char* key, ActionTarget&& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, std::move(value)); return *this; }
121 inline Action& AddTargets(const char* key, const ActionTarget& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, value); return *this; }
123
125
128 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
129 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
130 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
131 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
132 inline Action& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
133 inline Action& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
134 inline Action& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
135 inline Action& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
136 inline Action& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
137 inline Action& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
138 inline Action& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
139 inline Action& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
140 inline Action& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
142 private:
143
144 Aws::String m_id;
145 bool m_idHasBeenSet = false;
146
147 Aws::String m_arn;
148 bool m_arnHasBeenSet = false;
149
150 Aws::String m_description;
151 bool m_descriptionHasBeenSet = false;
152
154 bool m_parametersHasBeenSet = false;
155
157 bool m_targetsHasBeenSet = false;
158
160 bool m_tagsHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace FIS
165} // namespace Aws
Action & WithDescription(const char *value)
Definition Action.h:85
Action & AddParameters(const Aws::String &key, const ActionParameter &value)
Definition Action.h:98
Action & AddTargets(const Aws::String &key, const ActionTarget &value)
Definition Action.h:116
Action & AddParameters(const char *key, const ActionParameter &value)
Definition Action.h:103
const Aws::Map< Aws::String, ActionParameter > & GetParameters() const
Definition Action.h:92
void SetId(const char *value)
Definition Action.h:54
Action & AddTags(const char *key, Aws::String &&value)
Definition Action.h:138
Action & AddTargets(const char *key, const ActionTarget &value)
Definition Action.h:121
void SetId(Aws::String &&value)
Definition Action.h:53
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Action.h:131
Action & AddTargets(const char *key, ActionTarget &&value)
Definition Action.h:120
Action & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Action.h:132
void SetArn(const Aws::String &value)
Definition Action.h:66
Action & AddParameters(const char *key, ActionParameter &&value)
Definition Action.h:102
void SetTargets(const Aws::Map< Aws::String, ActionTarget > &value)
Definition Action.h:112
Action & AddParameters(Aws::String &&key, const ActionParameter &value)
Definition Action.h:99
Action & WithId(const Aws::String &value)
Definition Action.h:55
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Action.h:130
Action & AddTags(const Aws::String &key, const Aws::String &value)
Definition Action.h:134
void SetId(const Aws::String &value)
Definition Action.h:52
Action & AddParameters(const Aws::String &key, ActionParameter &&value)
Definition Action.h:100
bool IdHasBeenSet() const
Definition Action.h:51
bool TagsHasBeenSet() const
Definition Action.h:129
bool DescriptionHasBeenSet() const
Definition Action.h:79
void SetTargets(Aws::Map< Aws::String, ActionTarget > &&value)
Definition Action.h:113
Action & WithArn(const Aws::String &value)
Definition Action.h:69
Action & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Action.h:133
const Aws::String & GetArn() const
Definition Action.h:64
Action & WithDescription(Aws::String &&value)
Definition Action.h:84
Action & AddTags(Aws::String &&key, Aws::String &&value)
Definition Action.h:137
void SetParameters(const Aws::Map< Aws::String, ActionParameter > &value)
Definition Action.h:94
const Aws::String & GetDescription() const
Definition Action.h:78
Action & AddTargets(const Aws::String &key, ActionTarget &&value)
Definition Action.h:118
Action & AddParameters(Aws::String &&key, ActionParameter &&value)
Definition Action.h:101
Action & AddTags(Aws::String &&key, const char *value)
Definition Action.h:139
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Action.h:128
bool ParametersHasBeenSet() const
Definition Action.h:93
Action & WithId(Aws::String &&value)
Definition Action.h:56
void SetParameters(Aws::Map< Aws::String, ActionParameter > &&value)
Definition Action.h:95
Action & WithArn(Aws::String &&value)
Definition Action.h:70
void SetArn(const char *value)
Definition Action.h:68
void SetArn(Aws::String &&value)
Definition Action.h:67
Action & WithTargets(const Aws::Map< Aws::String, ActionTarget > &value)
Definition Action.h:114
void SetDescription(const Aws::String &value)
Definition Action.h:80
Action & WithDescription(const Aws::String &value)
Definition Action.h:83
Action & AddTargets(Aws::String &&key, ActionTarget &&value)
Definition Action.h:119
void SetDescription(Aws::String &&value)
Definition Action.h:81
Action & AddTags(const char *key, const char *value)
Definition Action.h:140
Action & AddTargets(Aws::String &&key, const ActionTarget &value)
Definition Action.h:117
AWS_FIS_API Action(Aws::Utils::Json::JsonView jsonValue)
bool TargetsHasBeenSet() const
Definition Action.h:111
bool ArnHasBeenSet() const
Definition Action.h:65
Action & WithTargets(Aws::Map< Aws::String, ActionTarget > &&value)
Definition Action.h:115
Action & WithArn(const char *value)
Definition Action.h:71
void SetDescription(const char *value)
Definition Action.h:82
const Aws::Map< Aws::String, ActionTarget > & GetTargets() const
Definition Action.h:110
Action & AddTags(const Aws::String &key, Aws::String &&value)
Definition Action.h:136
AWS_FIS_API Action & operator=(Aws::Utils::Json::JsonView jsonValue)
Action & WithParameters(const Aws::Map< Aws::String, ActionParameter > &value)
Definition Action.h:96
const Aws::String & GetId() const
Definition Action.h:50
AWS_FIS_API Aws::Utils::Json::JsonValue Jsonize() const
Action & AddTags(Aws::String &&key, const Aws::String &value)
Definition Action.h:135
Action & WithId(const char *value)
Definition Action.h:57
Action & WithParameters(Aws::Map< Aws::String, ActionParameter > &&value)
Definition Action.h:97
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