AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MitigationAction.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/MitigationActionParams.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOT_API MitigationAction() = default;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 MitigationAction& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
62 template<typename IdT = Aws::String>
63 MitigationAction& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
71 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
72 template<typename RoleArnT = Aws::String>
73 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
74 template<typename RoleArnT = Aws::String>
75 MitigationAction& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
77
79
83 inline const MitigationActionParams& GetActionParams() const { return m_actionParams; }
84 inline bool ActionParamsHasBeenSet() const { return m_actionParamsHasBeenSet; }
85 template<typename ActionParamsT = MitigationActionParams>
86 void SetActionParams(ActionParamsT&& value) { m_actionParamsHasBeenSet = true; m_actionParams = std::forward<ActionParamsT>(value); }
87 template<typename ActionParamsT = MitigationActionParams>
88 MitigationAction& WithActionParams(ActionParamsT&& value) { SetActionParams(std::forward<ActionParamsT>(value)); return *this;}
90 private:
91
92 Aws::String m_name;
93 bool m_nameHasBeenSet = false;
94
95 Aws::String m_id;
96 bool m_idHasBeenSet = false;
97
98 Aws::String m_roleArn;
99 bool m_roleArnHasBeenSet = false;
100
101 MitigationActionParams m_actionParams;
102 bool m_actionParamsHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace IoT
107} // 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