/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace SSMIncidents { namespace Model { /** */ class GetTimelineEventRequest : public SSMIncidentsRequest { public: AWS_SSMINCIDENTS_API GetTimelineEventRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetTimelineEvent"; } AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override; AWS_SSMINCIDENTS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The ID of the event. You can get an event's ID when you create it, or by * using ListTimelineEvents.

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

The ID of the event. You can get an event's ID when you create it, or by * using ListTimelineEvents.

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

The ID of the event. You can get an event's ID when you create it, or by * using ListTimelineEvents.

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

The ID of the event. You can get an event's ID when you create it, or by * using ListTimelineEvents.

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

The ID of the event. You can get an event's ID when you create it, or by * using ListTimelineEvents.

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

The ID of the event. You can get an event's ID when you create it, or by * using ListTimelineEvents.

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

The ID of the event. You can get an event's ID when you create it, or by * using ListTimelineEvents.

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

The ID of the event. You can get an event's ID when you create it, or by * using ListTimelineEvents.

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

The Amazon Resource Name (ARN) of the incident that includes the timeline * event.

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

The Amazon Resource Name (ARN) of the incident that includes the timeline * event.

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

The Amazon Resource Name (ARN) of the incident that includes the timeline * event.

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

The Amazon Resource Name (ARN) of the incident that includes the timeline * event.

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

The Amazon Resource Name (ARN) of the incident that includes the timeline * event.

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

The Amazon Resource Name (ARN) of the incident that includes the timeline * event.

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

The Amazon Resource Name (ARN) of the incident that includes the timeline * event.

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

The Amazon Resource Name (ARN) of the incident that includes the timeline * event.

*/ inline GetTimelineEventRequest& WithIncidentRecordArn(const char* value) { SetIncidentRecordArn(value); return *this;} private: Aws::String m_eventId; bool m_eventIdHasBeenSet = false; Aws::String m_incidentRecordArn; bool m_incidentRecordArnHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws