Class ImmutableRefLogResponseEntry.Builder

  • Enclosing class:
    ImmutableRefLogResponseEntry

    @NotThreadSafe
    public static final class ImmutableRefLogResponseEntry.Builder
    extends Object
    Builds instances of type ImmutableRefLogResponseEntry. 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 ImmutableRefLogResponseEntry.Builder from​(RefLogResponse.RefLogResponseEntry instance)
        Fill a builder with attribute values from the provided RefLogResponseEntry instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • refLogId

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

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

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

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

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

        @CanIgnoreReturnValue
        public final ImmutableRefLogResponseEntry.Builder operationTime​(long operationTime)
        Initializes the value for the operationTime attribute.
        Parameters:
        operationTime - The value for operationTime
        Returns:
        this builder for use in a chained invocation
      • operation

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

        @CanIgnoreReturnValue
        public final ImmutableRefLogResponseEntry.Builder addSourceHashes​(String... elements)
        Adds elements to sourceHashes list.
        Parameters:
        elements - An array of sourceHashes elements
        Returns:
        this builder for use in a chained invocation