Class ImmutableDeploymentStatusEvent.Builder

  • Enclosing class:
    ImmutableDeploymentStatusEvent

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

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

        @CanIgnoreReturnValue
        public final ImmutableDeploymentStatusEvent.Builder repository​(@Nullable
                                                                       Repository repository)
        Initializes the value for the repository attribute.
        Parameters:
        repository - The value for repository (can be null)
        Returns:
        this builder for use in a chained invocation
      • sender

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

        @CanIgnoreReturnValue
        public final ImmutableDeploymentStatusEvent.Builder deploymentStatus​(@Nullable
                                                                             Status deploymentStatus)
        Initializes the value for the deploymentStatus attribute.
        Parameters:
        deploymentStatus - The value for deploymentStatus (can be null)
        Returns:
        this builder for use in a chained invocation
      • deployment

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