Class ImmutableFileCreate.Builder

  • Enclosing class:
    ImmutableFileCreate

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

        @CanIgnoreReturnValue
        public final ImmutableFileCreate.Builder message​(String message)
        Initializes the value for the message attribute.
        Parameters:
        message - The value for message
        Returns:
        this builder for use in a chained invocation
      • content

        @CanIgnoreReturnValue
        public final ImmutableFileCreate.Builder content​(String content)
        Initializes the value for the content attribute.
        Parameters:
        content - The value for content
        Returns:
        this builder for use in a chained invocation
      • branch

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