Class PackageDetails

    • 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.
      • 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 return PackageStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from packageStatusAsString().

        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 return PackageStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from packageStatusAsString().

        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.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)