Interface CreateTimelineEventRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateTimelineEventRequest.Builder,
,CreateTimelineEventRequest> SdkBuilder<CreateTimelineEventRequest.Builder,
,CreateTimelineEventRequest> SdkPojo
,SdkRequest.Builder
,SsmIncidentsRequest.Builder
- Enclosing class:
CreateTimelineEventRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) A token that ensures that a client calls the action only once with the specified details.A short description of the event.eventReferences
(Collection<EventReference> eventReferences) Adds one or more references to theTimelineEvent
.eventReferences
(Consumer<EventReference.Builder>... eventReferences) Adds one or more references to theTimelineEvent
.eventReferences
(EventReference... eventReferences) Adds one or more references to theTimelineEvent
.The timestamp for when the event occurred.The type of event.incidentRecordArn
(String incidentRecordArn) The Amazon Resource Name (ARN) of the incident record that the action adds the incident to.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.services.ssmincidents.model.SsmIncidentsRequest.Builder
build
-
Method Details
-
clientToken
A token that ensures that a client calls the action only once with the specified details.
- Parameters:
clientToken
- A token that ensures that a client calls the action only once with the specified details.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventData
A short description of the event.
- Parameters:
eventData
- A short description of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventReferences
Adds one or more references to the
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 a resource. For example, to specify an Amazon DynamoDB (DynamoDB) table as a resource, use the table's ARN. You can also specify an Amazon CloudWatch metric associated with the DynamoDB table as a related item.- Parameters:
eventReferences
- Adds one or more references to theTimelineEvent
. 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 a resource. For example, to specify an Amazon DynamoDB (DynamoDB) table as a resource, use the table's ARN. You can also specify an Amazon CloudWatch metric associated with the DynamoDB table as a related item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventReferences
Adds one or more references to the
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 a resource. For example, to specify an Amazon DynamoDB (DynamoDB) table as a resource, use the table's ARN. You can also specify an Amazon CloudWatch metric associated with the DynamoDB table as a related item.- Parameters:
eventReferences
- Adds one or more references to theTimelineEvent
. 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 a resource. For example, to specify an Amazon DynamoDB (DynamoDB) table as a resource, use the table's ARN. You can also specify an Amazon CloudWatch metric associated with the DynamoDB table as a related item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventReferences
CreateTimelineEventRequest.Builder eventReferences(Consumer<EventReference.Builder>... eventReferences) Adds one or more references to the
This is a convenience method that creates an instance of theTimelineEvent
. 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 a resource. For example, to specify an Amazon DynamoDB (DynamoDB) table as a resource, use the table's ARN. You can also specify an Amazon CloudWatch metric associated with the DynamoDB table as a related item.EventReference.Builder
avoiding the need to create one manually viaEventReference.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toeventReferences(List<EventReference>)
.- Parameters:
eventReferences
- a consumer that will call methods onEventReference.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventTime
The timestamp for when the event occurred.
- Parameters:
eventTime
- The timestamp for when the event occurred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventType
The type of event. You can create timeline events of type
Custom Event
andNote
.To make a Note-type event appear on the Incident notes panel in the console, specify
eventType
asNote
and enter the Amazon Resource Name (ARN) of the incident as the value foreventReference
.- Parameters:
eventType
- The type of event. You can create timeline events of typeCustom Event
andNote
.To make a Note-type event appear on the Incident notes panel in the console, specify
eventType
asNote
and enter the Amazon Resource Name (ARN) of the incident as the value foreventReference
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
incidentRecordArn
The Amazon Resource Name (ARN) of the incident record that the action adds the incident to.
- Parameters:
incidentRecordArn
- The Amazon Resource Name (ARN) of the incident record that the action adds the incident to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateTimelineEventRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateTimelineEventRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-