AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PolicyDetails.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/model/FindingAction.h>
9#include <aws/macie2/model/FindingActor.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 Macie2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_MACIE2_API PolicyDetails() = default;
36 AWS_MACIE2_API PolicyDetails(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const FindingAction& GetAction() const { return m_action; }
46 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
47 template<typename ActionT = FindingAction>
48 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
49 template<typename ActionT = FindingAction>
50 PolicyDetails& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
52
54
57 inline const FindingActor& GetActor() const { return m_actor; }
58 inline bool ActorHasBeenSet() const { return m_actorHasBeenSet; }
59 template<typename ActorT = FindingActor>
60 void SetActor(ActorT&& value) { m_actorHasBeenSet = true; m_actor = std::forward<ActorT>(value); }
61 template<typename ActorT = FindingActor>
62 PolicyDetails& WithActor(ActorT&& value) { SetActor(std::forward<ActorT>(value)); return *this;}
64 private:
65
66 FindingAction m_action;
67 bool m_actionHasBeenSet = false;
68
69 FindingActor m_actor;
70 bool m_actorHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Macie2
75} // namespace Aws
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
PolicyDetails & WithActor(ActorT &&value)
void SetAction(ActionT &&value)
const FindingActor & GetActor() const
AWS_MACIE2_API PolicyDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API PolicyDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
PolicyDetails & WithAction(ActionT &&value)
AWS_MACIE2_API PolicyDetails()=default
const FindingAction & GetAction() const
Aws::Utils::Json::JsonValue JsonValue