AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
MitigationAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9#include <aws/iot/model/MitigationActionParams.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
30 public:
31 AWS_IOT_API MitigationAction() = default;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 MitigationAction& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetId() const { return m_id; }
59 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
60 template <typename IdT = Aws::String>
61 void SetId(IdT&& value) {
62 m_idHasBeenSet = true;
63 m_id = std::forward<IdT>(value);
64 }
65 template <typename IdT = Aws::String>
66 MitigationAction& WithId(IdT&& value) {
67 SetId(std::forward<IdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
77 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
78 template <typename RoleArnT = Aws::String>
79 void SetRoleArn(RoleArnT&& value) {
80 m_roleArnHasBeenSet = true;
81 m_roleArn = std::forward<RoleArnT>(value);
82 }
83 template <typename RoleArnT = Aws::String>
84 MitigationAction& WithRoleArn(RoleArnT&& value) {
85 SetRoleArn(std::forward<RoleArnT>(value));
86 return *this;
87 }
89
91
95 inline const MitigationActionParams& GetActionParams() const { return m_actionParams; }
96 inline bool ActionParamsHasBeenSet() const { return m_actionParamsHasBeenSet; }
97 template <typename ActionParamsT = MitigationActionParams>
98 void SetActionParams(ActionParamsT&& value) {
99 m_actionParamsHasBeenSet = true;
100 m_actionParams = std::forward<ActionParamsT>(value);
101 }
102 template <typename ActionParamsT = MitigationActionParams>
103 MitigationAction& WithActionParams(ActionParamsT&& value) {
104 SetActionParams(std::forward<ActionParamsT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_name;
110
111 Aws::String m_id;
112
113 Aws::String m_roleArn;
114
115 MitigationActionParams m_actionParams;
116 bool m_nameHasBeenSet = false;
117 bool m_idHasBeenSet = false;
118 bool m_roleArnHasBeenSet = false;
119 bool m_actionParamsHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace IoT
124} // namespace Aws
void SetRoleArn(RoleArnT &&value)
MitigationAction & WithRoleArn(RoleArnT &&value)
const Aws::String & GetRoleArn() const
MitigationAction & WithId(IdT &&value)
const Aws::String & GetName() const
AWS_IOT_API MitigationAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
MitigationAction & WithName(NameT &&value)
const MitigationActionParams & GetActionParams() const
MitigationAction & WithActionParams(ActionParamsT &&value)
void SetActionParams(ActionParamsT &&value)
AWS_IOT_API MitigationAction(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API MitigationAction()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue