Class ImmutableBody.Builder

  • Enclosing class:
    ImmutableBody

    @NotThreadSafe
    public static final class ImmutableBody.Builder
    extends Object
    Builds instances of type ImmutableBody. 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 ImmutableBody.Builder from​(@Nullable
                                                String from)
        Initializes the value for the from attribute.
        Parameters:
        from - The value for from (can be null)
        Returns:
        this builder for use in a chained invocation