Interface OperationEvent.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<OperationEvent.Builder,OperationEvent>,SdkBuilder<OperationEvent.Builder,OperationEvent>,SdkPojo
- Enclosing class:
- OperationEvent
public static interface OperationEvent.Builder extends SdkPojo, CopyableBuilder<OperationEvent.Builder,OperationEvent>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description OperationEvent.Builderdescription(String description)A description of the operation event.default OperationEvent.Builderresource(Consumer<Resource.Builder> resource)The resource involved in the operations event.OperationEvent.Builderresource(Resource resource)The resource involved in the operations event.OperationEvent.Builderstatus(String status)The status of the operation event.OperationEvent.Builderstatus(OperationEventStatus status)The status of the operation event.OperationEvent.BuilderstatusMessage(String statusMessage)The status message relating to a specific operation event.OperationEvent.Buildertimestamp(Instant timestamp)The timestamp of the specified operation event.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
description
OperationEvent.Builder description(String description)
A description of the operation event. For example, "Stop the EC2 instance i-abcdefgh987654321".
- Parameters:
description- A description of the operation event. For example, "Stop the EC2 instance i-abcdefgh987654321".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
OperationEvent.Builder resource(Resource resource)
The resource involved in the operations event.
Contains
ResourceArnARN andResourceType.- Parameters:
resource- The resource involved in the operations event.Contains
ResourceArnARN andResourceType.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
default OperationEvent.Builder resource(Consumer<Resource.Builder> resource)
The resource involved in the operations event.
Contains
This is a convenience method that creates an instance of theResourceArnARN andResourceType.Resource.Builderavoiding the need to create one manually viaResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresource(Resource).- Parameters:
resource- a consumer that will call methods onResource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
resource(Resource)
-
status
OperationEvent.Builder status(String status)
The status of the operation event. The possible statuses are:
IN_PROGRESS,COMPLETED, andFAILED.- Parameters:
status- The status of the operation event. The possible statuses are:IN_PROGRESS,COMPLETED, andFAILED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OperationEventStatus,OperationEventStatus
-
status
OperationEvent.Builder status(OperationEventStatus status)
The status of the operation event. The possible statuses are:
IN_PROGRESS,COMPLETED, andFAILED.- Parameters:
status- The status of the operation event. The possible statuses are:IN_PROGRESS,COMPLETED, andFAILED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OperationEventStatus,OperationEventStatus
-
statusMessage
OperationEvent.Builder statusMessage(String statusMessage)
The status message relating to a specific operation event.
- Parameters:
statusMessage- The status message relating to a specific operation event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestamp
OperationEvent.Builder timestamp(Instant timestamp)
The timestamp of the specified operation event.
- Parameters:
timestamp- The timestamp of the specified operation event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-