AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
UpdateMitigationActionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/MitigationActionParams.h>
11
12#include <utility>
13
14namespace Aws {
15namespace IoT {
16namespace Model {
17
21 public:
22 AWS_IOT_API UpdateMitigationActionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateMitigationAction"; }
29
30 AWS_IOT_API Aws::String SerializePayload() const override;
31
33
38 inline const Aws::String& GetActionName() const { return m_actionName; }
39 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
40 template <typename ActionNameT = Aws::String>
41 void SetActionName(ActionNameT&& value) {
42 m_actionNameHasBeenSet = true;
43 m_actionName = std::forward<ActionNameT>(value);
44 }
45 template <typename ActionNameT = Aws::String>
47 SetActionName(std::forward<ActionNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
57 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
58 template <typename RoleArnT = Aws::String>
59 void SetRoleArn(RoleArnT&& value) {
60 m_roleArnHasBeenSet = true;
61 m_roleArn = std::forward<RoleArnT>(value);
62 }
63 template <typename RoleArnT = Aws::String>
65 SetRoleArn(std::forward<RoleArnT>(value));
66 return *this;
67 }
69
71
74 inline const MitigationActionParams& GetActionParams() const { return m_actionParams; }
75 inline bool ActionParamsHasBeenSet() const { return m_actionParamsHasBeenSet; }
76 template <typename ActionParamsT = MitigationActionParams>
77 void SetActionParams(ActionParamsT&& value) {
78 m_actionParamsHasBeenSet = true;
79 m_actionParams = std::forward<ActionParamsT>(value);
80 }
81 template <typename ActionParamsT = MitigationActionParams>
83 SetActionParams(std::forward<ActionParamsT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_actionName;
89
90 Aws::String m_roleArn;
91
92 MitigationActionParams m_actionParams;
93 bool m_actionNameHasBeenSet = false;
94 bool m_roleArnHasBeenSet = false;
95 bool m_actionParamsHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace IoT
100} // namespace Aws
UpdateMitigationActionRequest & WithActionName(ActionNameT &&value)
UpdateMitigationActionRequest & WithRoleArn(RoleArnT &&value)
UpdateMitigationActionRequest & WithActionParams(ActionParamsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IOT_API Aws::String SerializePayload() const override
const MitigationActionParams & GetActionParams() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String