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 interfacePackageDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringavailablePackageVersion()Returns the value of the AvailablePackageVersion property for this object.static PackageDetails.Builderbuilder()InstantcreatedAt()Timestamp which tells creation date of the package.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)ErrorDetailserrorDetails()Additional information if the package is in an error state.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantlastUpdatedAt()Returns the value of the LastUpdatedAt property for this object.StringpackageDescription()User-specified description of the package.StringpackageID()Internal ID of the package.StringpackageName()User specified name of the package.PackageStatuspackageStatus()Current state of the package.StringpackageStatusAsString()Current state of the package.PackageTypepackageType()Currently supports only TXT-DICTIONARY.StringpackageTypeAsString()Currently supports only TXT-DICTIONARY.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends PackageDetails.Builder>serializableBuilderClass()PackageDetails.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
-
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,
packageTypewill 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,
packageTypewill 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,
packageStatuswill 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,
packageStatuswill 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:
toBuilderin 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:
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-