AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
45 inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
46 inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
47 inline UpdateMitigationActionRequest& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
48 inline UpdateMitigationActionRequest& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
49 inline UpdateMitigationActionRequest& WithActionName(const char* value) { SetActionName(value); return *this;}
51
53
56 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
57 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
58 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
59 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
60 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
61 inline UpdateMitigationActionRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
62 inline UpdateMitigationActionRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
63 inline UpdateMitigationActionRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
65
67
70 inline const MitigationActionParams& GetActionParams() const{ return m_actionParams; }
71 inline bool ActionParamsHasBeenSet() const { return m_actionParamsHasBeenSet; }
72 inline void SetActionParams(const MitigationActionParams& value) { m_actionParamsHasBeenSet = true; m_actionParams = value; }
73 inline void SetActionParams(MitigationActionParams&& value) { m_actionParamsHasBeenSet = true; m_actionParams = std::move(value); }
75 inline UpdateMitigationActionRequest& WithActionParams(MitigationActionParams&& value) { SetActionParams(std::move(value)); return *this;}
77 private:
78
79 Aws::String m_actionName;
80 bool m_actionNameHasBeenSet = false;
81
82 Aws::String m_roleArn;
83 bool m_roleArnHasBeenSet = false;
84
85 MitigationActionParams m_actionParams;
86 bool m_actionParamsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace IoT
91} // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdateMitigationActionRequest & WithRoleArn(const char *value)
AWS_IOT_API Aws::String SerializePayload() const override
void SetActionParams(const MitigationActionParams &value)
const MitigationActionParams & GetActionParams() const
UpdateMitigationActionRequest & WithRoleArn(const Aws::String &value)
UpdateMitigationActionRequest & WithActionParams(MitigationActionParams &&value)
UpdateMitigationActionRequest & WithRoleArn(Aws::String &&value)
UpdateMitigationActionRequest & WithActionName(Aws::String &&value)
UpdateMitigationActionRequest & WithActionName(const char *value)
UpdateMitigationActionRequest & WithActionName(const Aws::String &value)
UpdateMitigationActionRequest & WithActionParams(const MitigationActionParams &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String