AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
46 inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
47 inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
48 inline CreateMitigationActionRequest& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
49 inline CreateMitigationActionRequest& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
50 inline CreateMitigationActionRequest& WithActionName(const char* value) { SetActionName(value); return *this;}
52
54
57 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
58 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
59 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
60 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
61 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
62 inline CreateMitigationActionRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
63 inline CreateMitigationActionRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
64 inline CreateMitigationActionRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
66
68
71 inline const MitigationActionParams& GetActionParams() const{ return m_actionParams; }
72 inline bool ActionParamsHasBeenSet() const { return m_actionParamsHasBeenSet; }
73 inline void SetActionParams(const MitigationActionParams& value) { m_actionParamsHasBeenSet = true; m_actionParams = value; }
74 inline void SetActionParams(MitigationActionParams&& value) { m_actionParamsHasBeenSet = true; m_actionParams = std::move(value); }
76 inline CreateMitigationActionRequest& WithActionParams(MitigationActionParams&& value) { SetActionParams(std::move(value)); return *this;}
78
80
83 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
84 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
85 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
86 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
87 inline CreateMitigationActionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
88 inline CreateMitigationActionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
89 inline CreateMitigationActionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
90 inline CreateMitigationActionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
92 private:
93
94 Aws::String m_actionName;
95 bool m_actionNameHasBeenSet = false;
96
97 Aws::String m_roleArn;
98 bool m_roleArnHasBeenSet = false;
99
100 MitigationActionParams m_actionParams;
101 bool m_actionParamsHasBeenSet = false;
102
103 Aws::Vector<Tag> m_tags;
104 bool m_tagsHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace IoT
109} // namespace Aws
CreateMitigationActionRequest & WithRoleArn(Aws::String &&value)
CreateMitigationActionRequest & WithActionName(const Aws::String &value)
CreateMitigationActionRequest & WithRoleArn(const Aws::String &value)
AWS_IOT_API Aws::String SerializePayload() const override
void SetActionParams(const MitigationActionParams &value)
CreateMitigationActionRequest & WithActionName(Aws::String &&value)
CreateMitigationActionRequest & WithActionName(const char *value)
CreateMitigationActionRequest & WithRoleArn(const char *value)
CreateMitigationActionRequest & WithActionParams(const MitigationActionParams &value)
CreateMitigationActionRequest & WithActionParams(MitigationActionParams &&value)
CreateMitigationActionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateMitigationActionRequest & AddTags(Tag &&value)
CreateMitigationActionRequest & AddTags(const Tag &value)
CreateMitigationActionRequest & WithTags(Aws::Vector< Tag > &&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