Class ImmutableDeployment.Builder

  • Enclosing class:
    ImmutableDeployment

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

        @CanIgnoreReturnValue
        public final ImmutableDeployment.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 ImmutableDeployment.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 ImmutableDeployment.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
      • url

        @CanIgnoreReturnValue
        public final ImmutableDeployment.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
      • id

        @CanIgnoreReturnValue
        public final ImmutableDeployment.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
      • sha

        @CanIgnoreReturnValue
        public final ImmutableDeployment.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
      • ref

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

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

        @CanIgnoreReturnValue
        public final ImmutableDeployment.Builder payload​(Map<String,​String> payload)
        Initializes the optional value payload to payload.
        Parameters:
        payload - The value for payload
        Returns:
        this builder for chained invocation
      • payload

        @CanIgnoreReturnValue
        public final ImmutableDeployment.Builder payload​(Optional<? extends Map<String,​String>> payload)
        Initializes the optional value payload to payload.
        Parameters:
        payload - The value for payload
        Returns:
        this builder for use in a chained invocation
      • environment

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

        @CanIgnoreReturnValue
        public final ImmutableDeployment.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 ImmutableDeployment.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
      • creator

        @CanIgnoreReturnValue
        public final ImmutableDeployment.Builder creator​(@Nullable
                                                         User creator)
        Initializes the value for the creator attribute.
        Parameters:
        creator - The value for creator (can be null)
        Returns:
        this builder for use in a chained invocation
      • statusesUrl

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

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