AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
CreateMitigationActionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iot/IoTRequest.h>
10#include <aws/iot/IoT_EXPORTS.h>
11#include <aws/iot/model/MitigationActionParams.h>
12#include <aws/iot/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace IoT {
18namespace Model {
19
23 public:
24 AWS_IOT_API CreateMitigationActionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateMitigationAction"; }
31
32 AWS_IOT_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetActionName() const { return m_actionName; }
40 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
41 template <typename ActionNameT = Aws::String>
42 void SetActionName(ActionNameT&& value) {
43 m_actionNameHasBeenSet = true;
44 m_actionName = std::forward<ActionNameT>(value);
45 }
46 template <typename ActionNameT = Aws::String>
48 SetActionName(std::forward<ActionNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
58 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
59 template <typename RoleArnT = Aws::String>
60 void SetRoleArn(RoleArnT&& value) {
61 m_roleArnHasBeenSet = true;
62 m_roleArn = std::forward<RoleArnT>(value);
63 }
64 template <typename RoleArnT = Aws::String>
66 SetRoleArn(std::forward<RoleArnT>(value));
67 return *this;
68 }
70
72
75 inline const MitigationActionParams& GetActionParams() const { return m_actionParams; }
76 inline bool ActionParamsHasBeenSet() const { return m_actionParamsHasBeenSet; }
77 template <typename ActionParamsT = MitigationActionParams>
78 void SetActionParams(ActionParamsT&& value) {
79 m_actionParamsHasBeenSet = true;
80 m_actionParams = std::forward<ActionParamsT>(value);
81 }
82 template <typename ActionParamsT = MitigationActionParams>
84 SetActionParams(std::forward<ActionParamsT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template <typename TagsT = Aws::Vector<Tag>>
96 void SetTags(TagsT&& value) {
97 m_tagsHasBeenSet = true;
98 m_tags = std::forward<TagsT>(value);
99 }
100 template <typename TagsT = Aws::Vector<Tag>>
102 SetTags(std::forward<TagsT>(value));
103 return *this;
104 }
105 template <typename TagsT = Tag>
107 m_tagsHasBeenSet = true;
108 m_tags.emplace_back(std::forward<TagsT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_actionName;
114
115 Aws::String m_roleArn;
116
117 MitigationActionParams m_actionParams;
118
119 Aws::Vector<Tag> m_tags;
120 bool m_actionNameHasBeenSet = false;
121 bool m_roleArnHasBeenSet = false;
122 bool m_actionParamsHasBeenSet = false;
123 bool m_tagsHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace IoT
128} // namespace Aws
CreateMitigationActionRequest & WithTags(TagsT &&value)
CreateMitigationActionRequest & AddTags(TagsT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
CreateMitigationActionRequest & WithActionParams(ActionParamsT &&value)
CreateMitigationActionRequest & WithActionName(ActionNameT &&value)
CreateMitigationActionRequest & WithRoleArn(RoleArnT &&value)
const MitigationActionParams & GetActionParams() const
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector