Class ImmutableVerification.Builder

  • Enclosing class:
    ImmutableVerification

    @NotThreadSafe
    public static final class ImmutableVerification.Builder
    extends Object
    Builds instances of type ImmutableVerification. 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 ImmutableVerification.Builder from​(Verification instance)
        Fill a builder with attribute values from the provided Verification 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
      • verified

        @CanIgnoreReturnValue
        public final ImmutableVerification.Builder verified​(@Nullable
                                                            Boolean verified)
        Initializes the value for the verified attribute.
        Parameters:
        verified - The value for verified (can be null)
        Returns:
        this builder for use in a chained invocation
      • reason

        @CanIgnoreReturnValue
        public final ImmutableVerification.Builder reason​(@Nullable
                                                          String reason)
        Initializes the value for the reason attribute.
        Parameters:
        reason - The value for reason (can be null)
        Returns:
        this builder for use in a chained invocation
      • signature

        @CanIgnoreReturnValue
        public final ImmutableVerification.Builder signature​(@Nullable
                                                             String signature)
        Initializes the value for the signature attribute.
        Parameters:
        signature - The value for signature (can be null)
        Returns:
        this builder for use in a chained invocation
      • payload

        @CanIgnoreReturnValue
        public final ImmutableVerification.Builder payload​(@Nullable
                                                           String payload)
        Initializes the value for the payload attribute.
        Parameters:
        payload - The value for payload (can be null)
        Returns:
        this builder for use in a chained invocation