AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateMitigationActionRequest.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 <utility>
12
13namespace Aws
14{
15namespace IoT
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_IOT_API UpdateMitigationActionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateMitigationAction"; }
32
33 AWS_IOT_API Aws::String SerializePayload() const override;
34
35
37
42 inline const Aws::String& GetActionName() const { return m_actionName; }
43 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
44 template<typename ActionNameT = Aws::String>
45 void SetActionName(ActionNameT&& value) { m_actionNameHasBeenSet = true; m_actionName = std::forward<ActionNameT>(value); }
46 template<typename ActionNameT = Aws::String>
47 UpdateMitigationActionRequest& WithActionName(ActionNameT&& value) { SetActionName(std::forward<ActionNameT>(value)); return *this;}
49
51
54 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
55 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
56 template<typename RoleArnT = Aws::String>
57 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
58 template<typename RoleArnT = Aws::String>
59 UpdateMitigationActionRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
61
63
66 inline const MitigationActionParams& GetActionParams() const { return m_actionParams; }
67 inline bool ActionParamsHasBeenSet() const { return m_actionParamsHasBeenSet; }
68 template<typename ActionParamsT = MitigationActionParams>
69 void SetActionParams(ActionParamsT&& value) { m_actionParamsHasBeenSet = true; m_actionParams = std::forward<ActionParamsT>(value); }
70 template<typename ActionParamsT = MitigationActionParams>
71 UpdateMitigationActionRequest& WithActionParams(ActionParamsT&& value) { SetActionParams(std::forward<ActionParamsT>(value)); return *this;}
73 private:
74
75 Aws::String m_actionName;
76 bool m_actionNameHasBeenSet = false;
77
78 Aws::String m_roleArn;
79 bool m_roleArnHasBeenSet = false;
80
81 MitigationActionParams m_actionParams;
82 bool m_actionParamsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace IoT
87} // 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