Class ImmutableCatalogDeregistration


  • @ParametersAreNonnullByDefault
    @Generated("org.immutables.processor.ProxyProcessor")
    @Immutable
    @CheckReturnValue
    public final class ImmutableCatalogDeregistration
    extends CatalogDeregistration
    Immutable implementation of CatalogDeregistration.

    Use the builder to create immutable instances: ImmutableCatalogDeregistration.builder().

    • Method Detail

      • datacenter

        public java.util.Optional<java.lang.String> datacenter()
        Specified by:
        datacenter in class CatalogDeregistration
        Returns:
        The value of the datacenter attribute
      • node

        public java.lang.String node()
        Specified by:
        node in class CatalogDeregistration
        Returns:
        The value of the node attribute
      • checkId

        public java.util.Optional<java.lang.String> checkId()
        Specified by:
        checkId in class CatalogDeregistration
        Returns:
        The value of the checkId attribute
      • serviceId

        public java.util.Optional<java.lang.String> serviceId()
        Specified by:
        serviceId in class CatalogDeregistration
        Returns:
        The value of the serviceId attribute
      • withDatacenter

        public final ImmutableCatalogDeregistration withDatacenter​(java.lang.String value)
        Copy the current immutable object by setting a present value for the optional datacenter attribute.
        Parameters:
        value - The value for datacenter
        Returns:
        A modified copy of this object
      • withDatacenter

        public final ImmutableCatalogDeregistration withDatacenter​(java.util.Optional<java.lang.String> optional)
        Copy the current immutable object by setting an optional value for the datacenter attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for datacenter
        Returns:
        A modified copy of this object
      • withNode

        public final ImmutableCatalogDeregistration withNode​(java.lang.String value)
        Copy the current immutable object by setting a value for the node attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for node
        Returns:
        A modified copy of the this object
      • withCheckId

        public final ImmutableCatalogDeregistration withCheckId​(java.lang.String value)
        Copy the current immutable object by setting a present value for the optional checkId attribute.
        Parameters:
        value - The value for checkId
        Returns:
        A modified copy of this object
      • withCheckId

        public final ImmutableCatalogDeregistration withCheckId​(java.util.Optional<java.lang.String> optional)
        Copy the current immutable object by setting an optional value for the checkId attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for checkId
        Returns:
        A modified copy of this object
      • withServiceId

        public final ImmutableCatalogDeregistration withServiceId​(java.lang.String value)
        Copy the current immutable object by setting a present value for the optional serviceId attribute.
        Parameters:
        value - The value for serviceId
        Returns:
        A modified copy of this object
      • withServiceId

        public final ImmutableCatalogDeregistration withServiceId​(java.util.Optional<java.lang.String> optional)
        Copy the current immutable object by setting an optional value for the serviceId attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for serviceId
        Returns:
        A modified copy of this object
      • withWriteRequest

        public final ImmutableCatalogDeregistration withWriteRequest​(WriteRequest value)
        Copy the current immutable object by setting a present value for the optional writeRequest attribute.
        Parameters:
        value - The value for writeRequest
        Returns:
        A modified copy of this object
      • withWriteRequest

        public final ImmutableCatalogDeregistration withWriteRequest​(java.util.Optional<? extends WriteRequest> optional)
        Copy the current immutable object by setting an optional value for the writeRequest attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for writeRequest
        Returns:
        A modified copy of this object
      • equals

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

        public int hashCode()
        Computes a hash code from attributes: datacenter, node, checkId, serviceId, writeRequest.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

        public static ImmutableCatalogDeregistration copyOf​(CatalogDeregistration instance)
        Creates an immutable copy of a CatalogDeregistration value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
        Parameters:
        instance - The instance to copy
        Returns:
        A copied immutable CatalogDeregistration instance