AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateMitigationActionRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/model/MitigationActionParams.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iot/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace IoT
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_IOT_API CreateMitigationActionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateMitigationAction"; }
34
35 AWS_IOT_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetActionName() const { return m_actionName; }
44 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
45 template<typename ActionNameT = Aws::String>
46 void SetActionName(ActionNameT&& value) { m_actionNameHasBeenSet = true; m_actionName = std::forward<ActionNameT>(value); }
47 template<typename ActionNameT = Aws::String>
48 CreateMitigationActionRequest& WithActionName(ActionNameT&& value) { SetActionName(std::forward<ActionNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
56 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
57 template<typename RoleArnT = Aws::String>
58 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
59 template<typename RoleArnT = Aws::String>
60 CreateMitigationActionRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
62
64
67 inline const MitigationActionParams& GetActionParams() const { return m_actionParams; }
68 inline bool ActionParamsHasBeenSet() const { return m_actionParamsHasBeenSet; }
69 template<typename ActionParamsT = MitigationActionParams>
70 void SetActionParams(ActionParamsT&& value) { m_actionParamsHasBeenSet = true; m_actionParams = std::forward<ActionParamsT>(value); }
71 template<typename ActionParamsT = MitigationActionParams>
72 CreateMitigationActionRequest& WithActionParams(ActionParamsT&& value) { SetActionParams(std::forward<ActionParamsT>(value)); return *this;}
74
76
79 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
80 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
81 template<typename TagsT = Aws::Vector<Tag>>
82 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
83 template<typename TagsT = Aws::Vector<Tag>>
84 CreateMitigationActionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
85 template<typename TagsT = Tag>
86 CreateMitigationActionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
88 private:
89
90 Aws::String m_actionName;
91 bool m_actionNameHasBeenSet = false;
92
93 Aws::String m_roleArn;
94 bool m_roleArnHasBeenSet = false;
95
96 MitigationActionParams m_actionParams;
97 bool m_actionParamsHasBeenSet = false;
98
99 Aws::Vector<Tag> m_tags;
100 bool m_tagsHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace IoT
105} // 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