Class ImmutableCatalogDeregistration.Builder

  • Enclosing class:
    ImmutableCatalogDeregistration

    @NotThreadSafe
    public static final class ImmutableCatalogDeregistration.Builder
    extends java.lang.Object
    Builds instances of type ImmutableCatalogDeregistration. Initialize attributes and then invoke the build() method to create an immutable instance.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Detail

      • from

        @CanIgnoreReturnValue
        public final ImmutableCatalogDeregistration.Builder from​(CatalogDeregistration instance)
        Fill a builder with attribute values from the provided CatalogDeregistration instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • datacenter

        @CanIgnoreReturnValue
        public final ImmutableCatalogDeregistration.Builder datacenter​(java.lang.String datacenter)
        Initializes the optional value datacenter to datacenter.
        Parameters:
        datacenter - The value for datacenter
        Returns:
        this builder for chained invocation
      • datacenter

        @CanIgnoreReturnValue
        public final ImmutableCatalogDeregistration.Builder datacenter​(java.util.Optional<java.lang.String> datacenter)
        Initializes the optional value datacenter to datacenter.
        Parameters:
        datacenter - The value for datacenter
        Returns:
        this builder for use in a chained invocation
      • node

        @CanIgnoreReturnValue
        public final ImmutableCatalogDeregistration.Builder node​(java.lang.String node)
        Initializes the value for the node attribute.
        Parameters:
        node - The value for node
        Returns:
        this builder for use in a chained invocation
      • checkId

        @CanIgnoreReturnValue
        public final ImmutableCatalogDeregistration.Builder checkId​(java.lang.String checkId)
        Initializes the optional value checkId to checkId.
        Parameters:
        checkId - The value for checkId
        Returns:
        this builder for chained invocation
      • checkId

        @CanIgnoreReturnValue
        public final ImmutableCatalogDeregistration.Builder checkId​(java.util.Optional<java.lang.String> checkId)
        Initializes the optional value checkId to checkId.
        Parameters:
        checkId - The value for checkId
        Returns:
        this builder for use in a chained invocation
      • serviceId

        @CanIgnoreReturnValue
        public final ImmutableCatalogDeregistration.Builder serviceId​(java.lang.String serviceId)
        Initializes the optional value serviceId to serviceId.
        Parameters:
        serviceId - The value for serviceId
        Returns:
        this builder for chained invocation
      • serviceId

        @CanIgnoreReturnValue
        public final ImmutableCatalogDeregistration.Builder serviceId​(java.util.Optional<java.lang.String> serviceId)
        Initializes the optional value serviceId to serviceId.
        Parameters:
        serviceId - The value for serviceId
        Returns:
        this builder for use in a chained invocation
      • writeRequest

        @CanIgnoreReturnValue
        public final ImmutableCatalogDeregistration.Builder writeRequest​(java.util.Optional<? extends WriteRequest> writeRequest)
        Initializes the optional value writeRequest to writeRequest.
        Parameters:
        writeRequest - The value for writeRequest
        Returns:
        this builder for use in a chained invocation