Class Operation
- java.lang.Object
-
- software.amazon.awssdk.services.lightsail.model.Operation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Operation.Builder,Operation>
@Generated("software.amazon.awssdk:codegen") public final class Operation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Operation.Builder,Operation>
Describes the API operation.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOperation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Operation.Builderbuilder()InstantcreatedAt()The timestamp when the operation was initialized (1479816991.349).booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringerrorCode()The error code.StringerrorDetails()The error details.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The ID of the operation.BooleanisTerminal()A Boolean value indicating whether the operation is terminal.ResourceLocationlocation()The Amazon Web Services Region and Availability Zone.StringoperationDetails()Details about the operation (Debian-1GB-Ohio-1).OperationTypeoperationType()The type of operation.StringoperationTypeAsString()The type of operation.StringresourceName()The resource name.ResourceTyperesourceType()The resource type.StringresourceTypeAsString()The resource type.List<SdkField<?>>sdkFields()static Class<? extends Operation.Builder>serializableBuilderClass()OperationStatusstatus()The status of the operation.StringstatusAsString()The status of the operation.InstantstatusChangedAt()The timestamp when the status was changed (1479816991.349).Operation.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
id
public final String id()
The ID of the operation.
- Returns:
- The ID of the operation.
-
resourceName
public final String resourceName()
The resource name.
- Returns:
- The resource name.
-
resourceType
public final ResourceType resourceType()
The resource type.
If the service returns an enum value that is not available in the current SDK version,
resourceTypewill returnResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- The resource type.
- See Also:
ResourceType
-
resourceTypeAsString
public final String resourceTypeAsString()
The resource type.
If the service returns an enum value that is not available in the current SDK version,
resourceTypewill returnResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- The resource type.
- See Also:
ResourceType
-
createdAt
public final Instant createdAt()
The timestamp when the operation was initialized (
1479816991.349).- Returns:
- The timestamp when the operation was initialized (
1479816991.349).
-
location
public final ResourceLocation location()
The Amazon Web Services Region and Availability Zone.
- Returns:
- The Amazon Web Services Region and Availability Zone.
-
isTerminal
public final Boolean isTerminal()
A Boolean value indicating whether the operation is terminal.
- Returns:
- A Boolean value indicating whether the operation is terminal.
-
operationDetails
public final String operationDetails()
Details about the operation (
Debian-1GB-Ohio-1).- Returns:
- Details about the operation (
Debian-1GB-Ohio-1).
-
operationType
public final OperationType operationType()
The type of operation.
If the service returns an enum value that is not available in the current SDK version,
operationTypewill returnOperationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoperationTypeAsString().- Returns:
- The type of operation.
- See Also:
OperationType
-
operationTypeAsString
public final String operationTypeAsString()
The type of operation.
If the service returns an enum value that is not available in the current SDK version,
operationTypewill returnOperationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoperationTypeAsString().- Returns:
- The type of operation.
- See Also:
OperationType
-
status
public final OperationStatus status()
The status of the operation.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnOperationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the operation.
- See Also:
OperationStatus
-
statusAsString
public final String statusAsString()
The status of the operation.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnOperationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the operation.
- See Also:
OperationStatus
-
statusChangedAt
public final Instant statusChangedAt()
The timestamp when the status was changed (
1479816991.349).- Returns:
- The timestamp when the status was changed (
1479816991.349).
-
errorCode
public final String errorCode()
The error code.
- Returns:
- The error code.
-
errorDetails
public final String errorDetails()
The error details.
- Returns:
- The error details.
-
toBuilder
public Operation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Operation.Builder,Operation>
-
builder
public static Operation.Builder builder()
-
serializableBuilderClass
public static Class<? extends Operation.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-