Class ImmutableStatus.Builder

  • Enclosing class:
    ImmutableStatus

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

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

        @CanIgnoreReturnValue
        public final ImmutableStatus.Builder createdAt​(@Nullable
                                                       GitHubInstant createdAt)
        Initializes the value for the createdAt attribute.
        Parameters:
        createdAt - The value for createdAt (can be null)
        Returns:
        this builder for use in a chained invocation
      • updatedAt

        @CanIgnoreReturnValue
        public final ImmutableStatus.Builder updatedAt​(@Nullable
                                                       GitHubInstant updatedAt)
        Initializes the value for the updatedAt attribute.
        Parameters:
        updatedAt - The value for updatedAt (can be null)
        Returns:
        this builder for use in a chained invocation
      • state

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

        @CanIgnoreReturnValue
        public final ImmutableStatus.Builder targetUrl​(URI targetUrl)
        Initializes the optional value targetUrl to targetUrl.
        Parameters:
        targetUrl - The value for targetUrl
        Returns:
        this builder for chained invocation
      • targetUrl

        @CanIgnoreReturnValue
        public final ImmutableStatus.Builder targetUrl​(Optional<? extends URI> targetUrl)
        Initializes the optional value targetUrl to targetUrl.
        Parameters:
        targetUrl - The value for targetUrl
        Returns:
        this builder for use in a chained invocation
      • description

        @CanIgnoreReturnValue
        public final ImmutableStatus.Builder description​(String description)
        Initializes the optional value description to description.
        Parameters:
        description - The value for description
        Returns:
        this builder for chained invocation
      • description

        @CanIgnoreReturnValue
        public final ImmutableStatus.Builder description​(Optional<String> description)
        Initializes the optional value description to description.
        Parameters:
        description - The value for description
        Returns:
        this builder for use in a chained invocation
      • id

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

        @CanIgnoreReturnValue
        public final ImmutableStatus.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
      • context

        @CanIgnoreReturnValue
        public final ImmutableStatus.Builder context​(String context)
        Initializes the optional value context to context.
        Parameters:
        context - The value for context
        Returns:
        this builder for chained invocation
      • context

        @CanIgnoreReturnValue
        public final ImmutableStatus.Builder context​(Optional<String> context)
        Initializes the optional value context to context.
        Parameters:
        context - The value for context
        Returns:
        this builder for use in a chained invocation
      • creator

        @CanIgnoreReturnValue
        public final ImmutableStatus.Builder creator​(User creator)
        Initializes the optional value creator to creator.
        Parameters:
        creator - The value for creator
        Returns:
        this builder for chained invocation
      • creator

        @CanIgnoreReturnValue
        public final ImmutableStatus.Builder creator​(Optional<? extends User> creator)
        Initializes the optional value creator to creator.
        Parameters:
        creator - The value for creator
        Returns:
        this builder for use in a chained invocation
      • deploymentUrl

        @CanIgnoreReturnValue
        public final ImmutableStatus.Builder deploymentUrl​(URI deploymentUrl)
        Initializes the optional value deploymentUrl to deploymentUrl.
        Parameters:
        deploymentUrl - The value for deploymentUrl
        Returns:
        this builder for chained invocation
      • deploymentUrl

        @CanIgnoreReturnValue
        public final ImmutableStatus.Builder deploymentUrl​(Optional<? extends URI> deploymentUrl)
        Initializes the optional value deploymentUrl to deploymentUrl.
        Parameters:
        deploymentUrl - The value for deploymentUrl
        Returns:
        this builder for use in a chained invocation
      • repositoryUrl

        @CanIgnoreReturnValue
        public final ImmutableStatus.Builder repositoryUrl​(URI repositoryUrl)
        Initializes the optional value repositoryUrl to repositoryUrl.
        Parameters:
        repositoryUrl - The value for repositoryUrl
        Returns:
        this builder for chained invocation
      • repositoryUrl

        @CanIgnoreReturnValue
        public final ImmutableStatus.Builder repositoryUrl​(Optional<? extends URI> repositoryUrl)
        Initializes the optional value repositoryUrl to repositoryUrl.
        Parameters:
        repositoryUrl - The value for repositoryUrl
        Returns:
        this builder for use in a chained invocation