Class ImmutableCloudBuild.ImmutablePackageInfo

  • All Implemented Interfaces:
    CloudBuild.PackageInfo
    Enclosing class:
    ImmutableCloudBuild

    public static final class ImmutableCloudBuild.ImmutablePackageInfo
    extends Object
    implements CloudBuild.PackageInfo
    Immutable implementation of CloudBuild.PackageInfo.

    Use the builder to create immutable instances: ImmutableCloudBuild.ImmutablePackageInfo.builder(). Use the static factory method to create immutable instances: ImmutableCloudBuild.ImmutablePackageInfo.of().

    • Method Detail

      • withGuid

        public final ImmutableCloudBuild.ImmutablePackageInfo withGuid​(UUID value)
        Copy the current immutable object by setting a value for the guid attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for guid (can be null)
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(Object another)
        This instance is equal to all instances of ImmutablePackageInfo that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: guid.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value PackageInfo with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • of

        public static ImmutableCloudBuild.ImmutablePackageInfo of​(UUID guid)
        Construct a new immutable PackageInfo instance.
        Parameters:
        guid - The value for the guid attribute
        Returns:
        An immutable PackageInfo instance