Class PackageDetails
- java.lang.Object
-
- software.amazon.awssdk.services.elasticsearch.model.PackageDetails
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<PackageDetails.Builder,PackageDetails>
@Generated("software.amazon.awssdk:codegen") public final class PackageDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PackageDetails.Builder,PackageDetails>
Basic information about a package.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PackageDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
availablePackageVersion()
Returns the value of the AvailablePackageVersion property for this object.static PackageDetails.Builder
builder()
Instant
createdAt()
Timestamp which tells creation date of the package.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()
Returns the value of the LastUpdatedAt property for this object.String
packageDescription()
User-specified description of the package.String
packageID()
Internal ID of the package.String
packageName()
User specified name of the package.PackageStatus
packageStatus()
Current state of the package.String
packageStatusAsString()
Current state of the package.PackageType
packageType()
Currently supports only TXT-DICTIONARY.String
packageTypeAsString()
Currently supports only TXT-DICTIONARY.List<SdkField<?>>
sdkFields()
static Class<? extends PackageDetails.Builder>
serializableBuilderClass()
PackageDetails.Builder
toBuilder()
String
toString()
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
-
packageID
public final String packageID()
Internal ID of the package.
- Returns:
- Internal ID of the package.
-
packageName
public final String packageName()
User specified name of the package.
- Returns:
- User specified name of the package.
-
packageType
public final PackageType packageType()
Currently supports only TXT-DICTIONARY.
If the service returns an enum value that is not available in the current SDK version,
packageType
will returnPackageType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frompackageTypeAsString()
.- Returns:
- Currently supports only TXT-DICTIONARY.
- See Also:
PackageType
-
packageTypeAsString
public final String packageTypeAsString()
Currently supports only TXT-DICTIONARY.
If the service returns an enum value that is not available in the current SDK version,
packageType
will returnPackageType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frompackageTypeAsString()
.- Returns:
- Currently supports only TXT-DICTIONARY.
- See Also:
PackageType
-
packageDescription
public final String packageDescription()
User-specified description of the package.
- Returns:
- User-specified description of the package.
-
packageStatus
public final PackageStatus packageStatus()
Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED
If the service returns an enum value that is not available in the current SDK version,
packageStatus
will returnPackageStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frompackageStatusAsString()
.- Returns:
- Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED
- See Also:
PackageStatus
-
packageStatusAsString
public final String packageStatusAsString()
Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED
If the service returns an enum value that is not available in the current SDK version,
packageStatus
will returnPackageStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frompackageStatusAsString()
.- Returns:
- Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED
- See Also:
PackageStatus
-
createdAt
public final Instant createdAt()
Timestamp which tells creation date of the package.
- Returns:
- Timestamp which tells creation date of the package.
-
lastUpdatedAt
public final Instant lastUpdatedAt()
Returns the value of the LastUpdatedAt property for this object.- Returns:
- The value of the LastUpdatedAt property for this object.
-
availablePackageVersion
public final String availablePackageVersion()
Returns the value of the AvailablePackageVersion property for this object.- Returns:
- The value of the AvailablePackageVersion property for this object.
-
errorDetails
public final ErrorDetails errorDetails()
Additional information if the package is in an error state. Null otherwise.
- Returns:
- Additional information if the package is in an error state. Null otherwise.
-
toBuilder
public PackageDetails.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<PackageDetails.Builder,PackageDetails>
-
builder
public static PackageDetails.Builder builder()
-
serializableBuilderClass
public static Class<? extends PackageDetails.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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.
-
-