AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Macie2 {
21namespace Model {
22
29 public:
30 AWS_MACIE2_API PolicyDetails() = default;
31 AWS_MACIE2_API PolicyDetails(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const FindingAction& GetAction() const { return m_action; }
40 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
41 template <typename ActionT = FindingAction>
42 void SetAction(ActionT&& value) {
43 m_actionHasBeenSet = true;
44 m_action = std::forward<ActionT>(value);
45 }
46 template <typename ActionT = FindingAction>
47 PolicyDetails& WithAction(ActionT&& value) {
48 SetAction(std::forward<ActionT>(value));
49 return *this;
50 }
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) {
61 m_actorHasBeenSet = true;
62 m_actor = std::forward<ActorT>(value);
63 }
64 template <typename ActorT = FindingActor>
65 PolicyDetails& WithActor(ActorT&& value) {
66 SetActor(std::forward<ActorT>(value));
67 return *this;
68 }
70 private:
71 FindingAction m_action;
72
73 FindingActor m_actor;
74 bool m_actionHasBeenSet = false;
75 bool m_actorHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Macie2
80} // 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