Class ImmutableFileUpdate.Builder

  • Enclosing class:
    ImmutableFileUpdate

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

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

        @CanIgnoreReturnValue
        public final ImmutableFileUpdate.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