/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SSMIncidents { namespace Model { /** *

Details about a timeline event during an incident.

See Also:

* AWS * API Reference

*/ class EventSummary { public: AWS_SSMINCIDENTS_API EventSummary(); AWS_SSMINCIDENTS_API EventSummary(Aws::Utils::Json::JsonView jsonValue); AWS_SSMINCIDENTS_API EventSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The timeline event ID.

*/ inline const Aws::String& GetEventId() const{ return m_eventId; } /** *

The timeline event ID.

*/ inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; } /** *

The timeline event ID.

*/ inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; } /** *

The timeline event ID.

*/ inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); } /** *

The timeline event ID.

*/ inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); } /** *

The timeline event ID.

*/ inline EventSummary& WithEventId(const Aws::String& value) { SetEventId(value); return *this;} /** *

The timeline event ID.

*/ inline EventSummary& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;} /** *

The timeline event ID.

*/ inline EventSummary& WithEventId(const char* value) { SetEventId(value); return *this;} /** *

A list of references in a TimelineEvent.

*/ inline const Aws::Vector& GetEventReferences() const{ return m_eventReferences; } /** *

A list of references in a TimelineEvent.

*/ inline bool EventReferencesHasBeenSet() const { return m_eventReferencesHasBeenSet; } /** *

A list of references in a TimelineEvent.

*/ inline void SetEventReferences(const Aws::Vector& value) { m_eventReferencesHasBeenSet = true; m_eventReferences = value; } /** *

A list of references in a TimelineEvent.

*/ inline void SetEventReferences(Aws::Vector&& value) { m_eventReferencesHasBeenSet = true; m_eventReferences = std::move(value); } /** *

A list of references in a TimelineEvent.

*/ inline EventSummary& WithEventReferences(const Aws::Vector& value) { SetEventReferences(value); return *this;} /** *

A list of references in a TimelineEvent.

*/ inline EventSummary& WithEventReferences(Aws::Vector&& value) { SetEventReferences(std::move(value)); return *this;} /** *

A list of references in a TimelineEvent.

*/ inline EventSummary& AddEventReferences(const EventReference& value) { m_eventReferencesHasBeenSet = true; m_eventReferences.push_back(value); return *this; } /** *

A list of references in a TimelineEvent.

*/ inline EventSummary& AddEventReferences(EventReference&& value) { m_eventReferencesHasBeenSet = true; m_eventReferences.push_back(std::move(value)); return *this; } /** *

The time that the event occurred.

*/ inline const Aws::Utils::DateTime& GetEventTime() const{ return m_eventTime; } /** *

The time that the event occurred.

*/ inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; } /** *

The time that the event occurred.

*/ inline void SetEventTime(const Aws::Utils::DateTime& value) { m_eventTimeHasBeenSet = true; m_eventTime = value; } /** *

The time that the event occurred.

*/ inline void SetEventTime(Aws::Utils::DateTime&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::move(value); } /** *

The time that the event occurred.

*/ inline EventSummary& WithEventTime(const Aws::Utils::DateTime& value) { SetEventTime(value); return *this;} /** *

The time that the event occurred.

*/ inline EventSummary& WithEventTime(Aws::Utils::DateTime&& value) { SetEventTime(std::move(value)); return *this;} /** *

The type of event. The timeline event must be Custom Event.

*/ inline const Aws::String& GetEventType() const{ return m_eventType; } /** *

The type of event. The timeline event must be Custom Event.

*/ inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; } /** *

The type of event. The timeline event must be Custom Event.

*/ inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; } /** *

The type of event. The timeline event must be Custom Event.

*/ inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); } /** *

The type of event. The timeline event must be Custom Event.

*/ inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); } /** *

The type of event. The timeline event must be Custom Event.

*/ inline EventSummary& WithEventType(const Aws::String& value) { SetEventType(value); return *this;} /** *

The type of event. The timeline event must be Custom Event.

*/ inline EventSummary& WithEventType(Aws::String&& value) { SetEventType(std::move(value)); return *this;} /** *

The type of event. The timeline event must be Custom Event.

*/ inline EventSummary& WithEventType(const char* value) { SetEventType(value); return *this;} /** *

The time that the timeline event was last updated.

*/ inline const Aws::Utils::DateTime& GetEventUpdatedTime() const{ return m_eventUpdatedTime; } /** *

The time that the timeline event was last updated.

*/ inline bool EventUpdatedTimeHasBeenSet() const { return m_eventUpdatedTimeHasBeenSet; } /** *

The time that the timeline event was last updated.

*/ inline void SetEventUpdatedTime(const Aws::Utils::DateTime& value) { m_eventUpdatedTimeHasBeenSet = true; m_eventUpdatedTime = value; } /** *

The time that the timeline event was last updated.

*/ inline void SetEventUpdatedTime(Aws::Utils::DateTime&& value) { m_eventUpdatedTimeHasBeenSet = true; m_eventUpdatedTime = std::move(value); } /** *

The time that the timeline event was last updated.

*/ inline EventSummary& WithEventUpdatedTime(const Aws::Utils::DateTime& value) { SetEventUpdatedTime(value); return *this;} /** *

The time that the timeline event was last updated.

*/ inline EventSummary& WithEventUpdatedTime(Aws::Utils::DateTime&& value) { SetEventUpdatedTime(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the incident that the event happened * during.

*/ inline const Aws::String& GetIncidentRecordArn() const{ return m_incidentRecordArn; } /** *

The Amazon Resource Name (ARN) of the incident that the event happened * during.

*/ inline bool IncidentRecordArnHasBeenSet() const { return m_incidentRecordArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the incident that the event happened * during.

*/ inline void SetIncidentRecordArn(const Aws::String& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = value; } /** *

The Amazon Resource Name (ARN) of the incident that the event happened * during.

*/ inline void SetIncidentRecordArn(Aws::String&& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the incident that the event happened * during.

*/ inline void SetIncidentRecordArn(const char* value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the incident that the event happened * during.

*/ inline EventSummary& WithIncidentRecordArn(const Aws::String& value) { SetIncidentRecordArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the incident that the event happened * during.

*/ inline EventSummary& WithIncidentRecordArn(Aws::String&& value) { SetIncidentRecordArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the incident that the event happened * during.

*/ inline EventSummary& WithIncidentRecordArn(const char* value) { SetIncidentRecordArn(value); return *this;} private: Aws::String m_eventId; bool m_eventIdHasBeenSet = false; Aws::Vector m_eventReferences; bool m_eventReferencesHasBeenSet = false; Aws::Utils::DateTime m_eventTime; bool m_eventTimeHasBeenSet = false; Aws::String m_eventType; bool m_eventTypeHasBeenSet = false; Aws::Utils::DateTime m_eventUpdatedTime; bool m_eventUpdatedTimeHasBeenSet = false; Aws::String m_incidentRecordArn; bool m_incidentRecordArnHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws