@Generated(value="software.amazon.awssdk:codegen") public final class PackageDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PackageDetails.Builder,PackageDetails>
Basic information about a package.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PackageDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
availablePackageVersion()
The package version.
|
static PackageDetails.Builder |
builder() |
Instant |
createdAt()
The timestamp when the package was created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
ErrorDetails |
errorDetails()
Additional information if the package is in an error state.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Instant |
lastUpdatedAt()
Date and time when the package was last updated.
|
String |
packageDescription()
User-specified description of the package.
|
String |
packageID()
The unique identifier of the package.
|
String |
packageName()
The user-specified name of the package.
|
PackageStatus |
packageStatus()
The current status of the package.
|
String |
packageStatusAsString()
The current status of the package.
|
PackageType |
packageType()
The type of package.
|
String |
packageTypeAsString()
The type of package.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PackageDetails.Builder> |
serializableBuilderClass() |
PackageDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String packageID()
The unique identifier of the package.
public final String packageName()
The user-specified name of the package.
public final PackageType packageType()
The type of package.
If the service returns an enum value that is not available in the current SDK version, packageType will
return PackageType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
packageTypeAsString().
PackageTypepublic final String packageTypeAsString()
The type of package.
If the service returns an enum value that is not available in the current SDK version, packageType will
return PackageType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
packageTypeAsString().
PackageTypepublic final String packageDescription()
User-specified description of the package.
public final PackageStatus packageStatus()
The current status of the package. The available options are AVAILABLE, COPYING,
COPY_FAILED, VALIDATNG, VALIDATION_FAILED, DELETING, and
DELETE_FAILED.
If the service returns an enum value that is not available in the current SDK version, packageStatus
will return PackageStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
packageStatusAsString().
AVAILABLE, COPYING
, COPY_FAILED, VALIDATNG, VALIDATION_FAILED, DELETING
, and DELETE_FAILED.PackageStatuspublic final String packageStatusAsString()
The current status of the package. The available options are AVAILABLE, COPYING,
COPY_FAILED, VALIDATNG, VALIDATION_FAILED, DELETING, and
DELETE_FAILED.
If the service returns an enum value that is not available in the current SDK version, packageStatus
will return PackageStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
packageStatusAsString().
AVAILABLE, COPYING
, COPY_FAILED, VALIDATNG, VALIDATION_FAILED, DELETING
, and DELETE_FAILED.PackageStatuspublic final Instant createdAt()
The timestamp when the package was created.
public final Instant lastUpdatedAt()
Date and time when the package was last updated.
public final String availablePackageVersion()
The package version.
public final ErrorDetails errorDetails()
Additional information if the package is in an error state. Null otherwise.
public PackageDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PackageDetails.Builder,PackageDetails>public static PackageDetails.Builder builder()
public static Class<? extends PackageDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.