Class DomainPackageDetails

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

        public 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().

        Returns:
        The type of package.
        See Also:
        PackageType
      • lastUpdated

        public final Instant lastUpdated()

        Timestamp of the most recent update to the package association status.

        Returns:
        Timestamp of the most recent update to the package association status.
      • domainName

        public final String domainName()

        Name of the domain that the package is associated with.

        Returns:
        Name of the domain that the package is associated with.
      • packageVersion

        public final String packageVersion()

        The current version of the package.

        Returns:
        The current version of the package.
      • hasPrerequisitePackageIDList

        public final boolean hasPrerequisitePackageIDList()
        For responses, this returns true if the service returned a value for the PrerequisitePackageIDList property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • prerequisitePackageIDList

        public final List<String> prerequisitePackageIDList()

        A list of package IDs that must be associated with the domain before or with the package can be associated.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasPrerequisitePackageIDList() method.

        Returns:
        A list of package IDs that must be associated with the domain before or with the package can be associated.
      • referencePath

        public final String referencePath()

        The relative path of the package on the OpenSearch Service cluster nodes. This is synonym_path when the package is for synonym files.

        Returns:
        The relative path of the package on the OpenSearch Service cluster nodes. This is synonym_path when the package is for synonym files.
      • 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.
      • associationConfiguration

        public final PackageAssociationConfiguration associationConfiguration()

        The configuration for associating a package with an Amazon OpenSearch Service domain.

        Returns:
        The configuration for associating a package with an Amazon OpenSearch Service domain.
      • 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)