/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace SSMIncidents { namespace Model { /** */ class UpdateTimelineEventRequest : public SSMIncidentsRequest { public: AWS_SSMINCIDENTS_API UpdateTimelineEventRequest(); // 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 "UpdateTimelineEvent"; } AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override; /** *

A token that ensures that a client calls the operation only once with the * specified details.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A token that ensures that a client calls the operation only once with the * specified details.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A token that ensures that a client calls the operation only once with the * specified details.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A token that ensures that a client calls the operation only once with the * specified details.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A token that ensures that a client calls the operation only once with the * specified details.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A token that ensures that a client calls the operation only once with the * specified details.

*/ inline UpdateTimelineEventRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A token that ensures that a client calls the operation only once with the * specified details.

*/ inline UpdateTimelineEventRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A token that ensures that a client calls the operation only once with the * specified details.

*/ inline UpdateTimelineEventRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

A short description of the event.

*/ inline const Aws::String& GetEventData() const{ return m_eventData; } /** *

A short description of the event.

*/ inline bool EventDataHasBeenSet() const { return m_eventDataHasBeenSet; } /** *

A short description of the event.

*/ inline void SetEventData(const Aws::String& value) { m_eventDataHasBeenSet = true; m_eventData = value; } /** *

A short description of the event.

*/ inline void SetEventData(Aws::String&& value) { m_eventDataHasBeenSet = true; m_eventData = std::move(value); } /** *

A short description of the event.

*/ inline void SetEventData(const char* value) { m_eventDataHasBeenSet = true; m_eventData.assign(value); } /** *

A short description of the event.

*/ inline UpdateTimelineEventRequest& WithEventData(const Aws::String& value) { SetEventData(value); return *this;} /** *

A short description of the event.

*/ inline UpdateTimelineEventRequest& WithEventData(Aws::String&& value) { SetEventData(std::move(value)); return *this;} /** *

A short description of the event.

*/ inline UpdateTimelineEventRequest& WithEventData(const char* value) { SetEventData(value); return *this;} /** *

The ID of the event to update. You can use ListTimelineEvents to * find an event's ID.

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

The ID of the event to update. You can use ListTimelineEvents to * find an event's ID.

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

The ID of the event to update. You can use ListTimelineEvents to * find an event's ID.

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

The ID of the event to update. You can use ListTimelineEvents to * find an event's ID.

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

The ID of the event to update. You can use ListTimelineEvents to * find an event's ID.

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

The ID of the event to update. You can use ListTimelineEvents to * find an event's ID.

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

The ID of the event to update. You can use ListTimelineEvents to * find an event's ID.

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

The ID of the event to update. You can use ListTimelineEvents to * find an event's ID.

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

Updates all existing references in a TimelineEvent. A reference * is an Amazon Web Services resource involved or associated with the incident. To * specify a reference, enter its Amazon Resource Name (ARN). You can also specify * a related item associated with that resource. For example, to specify an Amazon * DynamoDB (DynamoDB) table as a resource, use its ARN. You can also specify an * Amazon CloudWatch metric associated with the DynamoDB table as a related * item.

This update action overrides all existing references. * If you want to keep existing references, you must specify them in the call. If * you don't, this action removes any existing references and enters only new * references.

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

Updates all existing references in a TimelineEvent. A reference * is an Amazon Web Services resource involved or associated with the incident. To * specify a reference, enter its Amazon Resource Name (ARN). You can also specify * a related item associated with that resource. For example, to specify an Amazon * DynamoDB (DynamoDB) table as a resource, use its ARN. You can also specify an * Amazon CloudWatch metric associated with the DynamoDB table as a related * item.

This update action overrides all existing references. * If you want to keep existing references, you must specify them in the call. If * you don't, this action removes any existing references and enters only new * references.

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

Updates all existing references in a TimelineEvent. A reference * is an Amazon Web Services resource involved or associated with the incident. To * specify a reference, enter its Amazon Resource Name (ARN). You can also specify * a related item associated with that resource. For example, to specify an Amazon * DynamoDB (DynamoDB) table as a resource, use its ARN. You can also specify an * Amazon CloudWatch metric associated with the DynamoDB table as a related * item.

This update action overrides all existing references. * If you want to keep existing references, you must specify them in the call. If * you don't, this action removes any existing references and enters only new * references.

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

Updates all existing references in a TimelineEvent. A reference * is an Amazon Web Services resource involved or associated with the incident. To * specify a reference, enter its Amazon Resource Name (ARN). You can also specify * a related item associated with that resource. For example, to specify an Amazon * DynamoDB (DynamoDB) table as a resource, use its ARN. You can also specify an * Amazon CloudWatch metric associated with the DynamoDB table as a related * item.

This update action overrides all existing references. * If you want to keep existing references, you must specify them in the call. If * you don't, this action removes any existing references and enters only new * references.

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

Updates all existing references in a TimelineEvent. A reference * is an Amazon Web Services resource involved or associated with the incident. To * specify a reference, enter its Amazon Resource Name (ARN). You can also specify * a related item associated with that resource. For example, to specify an Amazon * DynamoDB (DynamoDB) table as a resource, use its ARN. You can also specify an * Amazon CloudWatch metric associated with the DynamoDB table as a related * item.

This update action overrides all existing references. * If you want to keep existing references, you must specify them in the call. If * you don't, this action removes any existing references and enters only new * references.

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

Updates all existing references in a TimelineEvent. A reference * is an Amazon Web Services resource involved or associated with the incident. To * specify a reference, enter its Amazon Resource Name (ARN). You can also specify * a related item associated with that resource. For example, to specify an Amazon * DynamoDB (DynamoDB) table as a resource, use its ARN. You can also specify an * Amazon CloudWatch metric associated with the DynamoDB table as a related * item.

This update action overrides all existing references. * If you want to keep existing references, you must specify them in the call. If * you don't, this action removes any existing references and enters only new * references.

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

Updates all existing references in a TimelineEvent. A reference * is an Amazon Web Services resource involved or associated with the incident. To * specify a reference, enter its Amazon Resource Name (ARN). You can also specify * a related item associated with that resource. For example, to specify an Amazon * DynamoDB (DynamoDB) table as a resource, use its ARN. You can also specify an * Amazon CloudWatch metric associated with the DynamoDB table as a related * item.

This update action overrides all existing references. * If you want to keep existing references, you must specify them in the call. If * you don't, this action removes any existing references and enters only new * references.

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

Updates all existing references in a TimelineEvent. A reference * is an Amazon Web Services resource involved or associated with the incident. To * specify a reference, enter its Amazon Resource Name (ARN). You can also specify * a related item associated with that resource. For example, to specify an Amazon * DynamoDB (DynamoDB) table as a resource, use its ARN. You can also specify an * Amazon CloudWatch metric associated with the DynamoDB table as a related * item.

This update action overrides all existing references. * If you want to keep existing references, you must specify them in the call. If * you don't, this action removes any existing references and enters only new * references.

*/ inline UpdateTimelineEventRequest& 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 UpdateTimelineEventRequest& WithEventTime(const Aws::Utils::DateTime& value) { SetEventTime(value); return *this;} /** *

The time that the event occurred.

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

The type of event. You can update events of type Custom * Event.

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

The type of event. You can update events of type Custom * Event.

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

The type of event. You can update events of type Custom * Event.

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

The type of event. You can update events of type Custom * Event.

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

The type of event. You can update events of type Custom * Event.

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

The type of event. You can update events of type Custom * Event.

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

The type of event. You can update events of type Custom * Event.

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

The type of event. You can update events of type Custom * Event.

*/ inline UpdateTimelineEventRequest& WithEventType(const char* value) { SetEventType(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 UpdateTimelineEventRequest& WithIncidentRecordArn(const Aws::String& value) { SetIncidentRecordArn(value); return *this;} /** *

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

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

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

*/ inline UpdateTimelineEventRequest& WithIncidentRecordArn(const char* value) { SetIncidentRecordArn(value); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_eventData; bool m_eventDataHasBeenSet = false; 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::String m_incidentRecordArn; bool m_incidentRecordArnHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws