AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ActionSummary.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/ActionTarget.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace FIS {
22namespace Model {
23
30 public:
31 AWS_FIS_API ActionSummary() = default;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
48 ActionSummary& WithId(IdT&& value) {
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetArn() const { return m_arn; }
59 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
60 template <typename ArnT = Aws::String>
61 void SetArn(ArnT&& value) {
62 m_arnHasBeenSet = true;
63 m_arn = std::forward<ArnT>(value);
64 }
65 template <typename ArnT = Aws::String>
66 ActionSummary& WithArn(ArnT&& value) {
67 SetArn(std::forward<ArnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 ActionSummary& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Map<Aws::String, ActionTarget>& GetTargets() const { return m_targets; }
95 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
96 template <typename TargetsT = Aws::Map<Aws::String, ActionTarget>>
97 void SetTargets(TargetsT&& value) {
98 m_targetsHasBeenSet = true;
99 m_targets = std::forward<TargetsT>(value);
100 }
101 template <typename TargetsT = Aws::Map<Aws::String, ActionTarget>>
102 ActionSummary& WithTargets(TargetsT&& value) {
103 SetTargets(std::forward<TargetsT>(value));
104 return *this;
105 }
106 template <typename TargetsKeyT = Aws::String, typename TargetsValueT = ActionTarget>
107 ActionSummary& AddTargets(TargetsKeyT&& key, TargetsValueT&& value) {
108 m_targetsHasBeenSet = true;
109 m_targets.emplace(std::forward<TargetsKeyT>(key), std::forward<TargetsValueT>(value));
110 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) {
122 m_tagsHasBeenSet = true;
123 m_tags = std::forward<TagsT>(value);
124 }
125 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
126 ActionSummary& WithTags(TagsT&& value) {
127 SetTags(std::forward<TagsT>(value));
128 return *this;
129 }
130 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
131 ActionSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
132 m_tagsHasBeenSet = true;
133 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_id;
139
140 Aws::String m_arn;
141
142 Aws::String m_description;
143
145
147 bool m_idHasBeenSet = false;
148 bool m_arnHasBeenSet = false;
149 bool m_descriptionHasBeenSet = false;
150 bool m_targetsHasBeenSet = false;
151 bool m_tagsHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace FIS
156} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ActionSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_FIS_API ActionSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_FIS_API ActionSummary()=default
void SetDescription(DescriptionT &&value)
const Aws::String & GetId() const
ActionSummary & WithTags(TagsT &&value)
void SetTargets(TargetsT &&value)
const Aws::String & GetDescription() const
AWS_FIS_API Aws::Utils::Json::JsonValue Jsonize() const
ActionSummary & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, ActionTarget > & GetTargets() const
AWS_FIS_API ActionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ActionSummary & WithId(IdT &&value)
ActionSummary & WithTargets(TargetsT &&value)
ActionSummary & AddTargets(TargetsKeyT &&key, TargetsValueT &&value)
ActionSummary & WithArn(ArnT &&value)
const Aws::String & GetArn() 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
Aws::Utils::Json::JsonValue JsonValue