AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40
41
43
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline MitigationAction& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline MitigationAction& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline MitigationAction& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::String& GetId() const{ return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
63 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
64 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
65 inline MitigationAction& WithId(const Aws::String& value) { SetId(value); return *this;}
66 inline MitigationAction& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
67 inline MitigationAction& WithId(const char* value) { SetId(value); return *this;}
69
71
74 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
75 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
76 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
77 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
78 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
79 inline MitigationAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
80 inline MitigationAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
81 inline MitigationAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
83
85
89 inline const MitigationActionParams& GetActionParams() const{ return m_actionParams; }
90 inline bool ActionParamsHasBeenSet() const { return m_actionParamsHasBeenSet; }
91 inline void SetActionParams(const MitigationActionParams& value) { m_actionParamsHasBeenSet = true; m_actionParams = value; }
92 inline void SetActionParams(MitigationActionParams&& value) { m_actionParamsHasBeenSet = true; m_actionParams = std::move(value); }
93 inline MitigationAction& WithActionParams(const MitigationActionParams& value) { SetActionParams(value); return *this;}
94 inline MitigationAction& WithActionParams(MitigationActionParams&& value) { SetActionParams(std::move(value)); return *this;}
96 private:
97
98 Aws::String m_name;
99 bool m_nameHasBeenSet = false;
100
101 Aws::String m_id;
102 bool m_idHasBeenSet = false;
103
104 Aws::String m_roleArn;
105 bool m_roleArnHasBeenSet = false;
106
107 MitigationActionParams m_actionParams;
108 bool m_actionParamsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace IoT
113} // namespace Aws
MitigationAction & WithActionParams(MitigationActionParams &&value)
void SetActionParams(const MitigationActionParams &value)
void SetRoleArn(const Aws::String &value)
MitigationAction & WithId(const char *value)
void SetActionParams(MitigationActionParams &&value)
MitigationAction & WithRoleArn(const Aws::String &value)
const Aws::String & GetRoleArn() const
MitigationAction & WithRoleArn(Aws::String &&value)
void SetName(Aws::String &&value)
MitigationAction & WithRoleArn(const char *value)
void SetName(const Aws::String &value)
MitigationAction & WithActionParams(const MitigationActionParams &value)
void SetRoleArn(Aws::String &&value)
MitigationAction & WithName(const char *value)
MitigationAction & WithName(Aws::String &&value)
const Aws::String & GetName() const
void SetName(const char *value)
AWS_IOT_API MitigationAction & operator=(Aws::Utils::Json::JsonView jsonValue)
MitigationAction & WithId(Aws::String &&value)
const Aws::String & GetId() const
void SetRoleArn(const char *value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
MitigationAction & WithId(const Aws::String &value)
void SetId(const Aws::String &value)
const MitigationActionParams & GetActionParams() const
void SetId(Aws::String &&value)
MitigationAction & WithName(const Aws::String &value)
AWS_IOT_API MitigationAction(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue