Class ImmutableTag.Builder

  • Enclosing class:
    ImmutableTag

    @NotThreadSafe
    public static final class ImmutableTag.Builder
    extends Object
    Builds instances of type ImmutableTag. 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 ImmutableTag.Builder from​(Tag instance)
        Fill a builder with attribute values from the provided com.spotify.github.v3.git.Tag instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        @CanIgnoreReturnValue
        public final ImmutableTag.Builder from​(ShaLink instance)
        Fill a builder with attribute values from the provided com.spotify.github.v3.git.ShaLink instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • sha

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

        @CanIgnoreReturnValue
        public final ImmutableTag.Builder url​(@Nullable
                                              URI url)
        Initializes the value for the url attribute.
        Parameters:
        url - The value for url (can be null)
        Returns:
        this builder for use in a chained invocation
      • tag

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

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

        @CanIgnoreReturnValue
        public final ImmutableTag.Builder tagger​(@Nullable
                                                 Author tagger)
        Initializes the value for the tagger attribute.
        Parameters:
        tagger - The value for tagger (can be null)
        Returns:
        this builder for use in a chained invocation
      • object

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