AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ActionSummary.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/ActionTarget.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 ActionSummary() = default;
40
41
43
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template<typename IdT = Aws::String>
49 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
50 template<typename IdT = Aws::String>
51 ActionSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
62 template<typename ArnT = Aws::String>
63 ActionSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 template<typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
74 template<typename DescriptionT = Aws::String>
75 ActionSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
77
79
82 inline const Aws::Map<Aws::String, ActionTarget>& GetTargets() const { return m_targets; }
83 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
84 template<typename TargetsT = Aws::Map<Aws::String, ActionTarget>>
85 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
86 template<typename TargetsT = Aws::Map<Aws::String, ActionTarget>>
87 ActionSummary& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
88 template<typename TargetsKeyT = Aws::String, typename TargetsValueT = ActionTarget>
89 ActionSummary& AddTargets(TargetsKeyT&& key, TargetsValueT&& value) {
90 m_targetsHasBeenSet = true; m_targets.emplace(std::forward<TargetsKeyT>(key), std::forward<TargetsValueT>(value)); return *this;
91 }
93
95
98 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
101 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
102 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
103 ActionSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
104 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
105 ActionSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
106 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
107 }
109 private:
110
111 Aws::String m_id;
112 bool m_idHasBeenSet = false;
113
114 Aws::String m_arn;
115 bool m_arnHasBeenSet = false;
116
117 Aws::String m_description;
118 bool m_descriptionHasBeenSet = false;
119
121 bool m_targetsHasBeenSet = false;
122
124 bool m_tagsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace FIS
129} // 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