7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10#include <aws/resiliencehubv2/model/EventActor.h>
11#include <aws/resiliencehubv2/model/PolicyEventDetails.h>
12#include <aws/resiliencehubv2/model/PolicyEventType.h>
23namespace resiliencehubv2 {
45 template <
typename EventIdT = Aws::String>
47 m_eventIdHasBeenSet =
true;
48 m_eventId = std::forward<EventIdT>(value);
50 template <
typename EventIdT = Aws::String>
63 template <
typename TimestampT = Aws::Utils::DateTime>
65 m_timestampHasBeenSet =
true;
66 m_timestamp = std::forward<TimestampT>(value);
68 template <
typename TimestampT = Aws::Utils::DateTime>
82 m_eventTypeHasBeenSet =
true;
95 template <
typename PolicyArnT = Aws::String>
97 m_policyArnHasBeenSet =
true;
98 m_policyArn = std::forward<PolicyArnT>(value);
100 template <
typename PolicyArnT = Aws::String>
111 template <
typename ActorT = EventActor>
113 m_actorHasBeenSet =
true;
114 m_actor = std::forward<ActorT>(value);
116 template <
typename ActorT = EventActor>
118 SetActor(std::forward<ActorT>(value));
129 template <
typename EventDetailsT = PolicyEventDetails>
131 m_eventDetailsHasBeenSet =
true;
132 m_eventDetails = std::forward<EventDetailsT>(value);
134 template <
typename EventDetailsT = PolicyEventDetails>
151 PolicyEventDetails m_eventDetails;
152 bool m_eventIdHasBeenSet =
false;
153 bool m_timestampHasBeenSet =
false;
154 bool m_eventTypeHasBeenSet =
false;
155 bool m_policyArnHasBeenSet =
false;
156 bool m_actorHasBeenSet =
false;
157 bool m_eventDetailsHasBeenSet =
false;
bool EventDetailsHasBeenSet() const
void SetEventDetails(EventDetailsT &&value)
PolicyEvent & WithActor(ActorT &&value)
void SetPolicyArn(PolicyArnT &&value)
AWS_RESILIENCEHUBV2_API PolicyEvent()=default
AWS_RESILIENCEHUBV2_API PolicyEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEventId(EventIdT &&value)
void SetActor(ActorT &&value)
PolicyEventType GetEventType() const
bool ActorHasBeenSet() const
const Aws::String & GetPolicyArn() const
bool TimestampHasBeenSet() const
void SetEventType(PolicyEventType value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RESILIENCEHUBV2_API PolicyEvent(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetTimestamp() const
const Aws::String & GetEventId() const
void SetTimestamp(TimestampT &&value)
bool PolicyArnHasBeenSet() const
PolicyEvent & WithTimestamp(TimestampT &&value)
bool EventIdHasBeenSet() const
const EventActor & GetActor() const
PolicyEvent & WithEventType(PolicyEventType value)
PolicyEvent & WithPolicyArn(PolicyArnT &&value)
PolicyEvent & WithEventDetails(EventDetailsT &&value)
bool EventTypeHasBeenSet() const
const PolicyEventDetails & GetEventDetails() const
PolicyEvent & WithEventId(EventIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue