Class ImmutableDeploymentStatusEvent.Builder
- java.lang.Object
-
- com.spotify.github.v3.activity.events.ImmutableDeploymentStatusEvent.Builder
-
- Enclosing class:
- ImmutableDeploymentStatusEvent
@NotThreadSafe public static final class ImmutableDeploymentStatusEvent.Builder extends Object
Builds instances of typeImmutableDeploymentStatusEvent
. Initialize attributes and then invoke thebuild()
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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableDeploymentStatusEvent
build()
Builds a newImmutableDeploymentStatusEvent
.ImmutableDeploymentStatusEvent.Builder
deployment(Deployment deployment)
Initializes the value for thedeployment
attribute.ImmutableDeploymentStatusEvent.Builder
deploymentStatus(Status deploymentStatus)
Initializes the value for thedeploymentStatus
attribute.ImmutableDeploymentStatusEvent.Builder
eventInstallation(EventInstallation eventInstallation)
Initializes the value for theeventInstallation
attribute.ImmutableDeploymentStatusEvent.Builder
from(BaseEvent instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.activity.events.BaseEvent
instance.ImmutableDeploymentStatusEvent.Builder
from(DeploymentStatusEvent instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.activity.events.DeploymentStatusEvent
instance.ImmutableDeploymentStatusEvent.Builder
repository(Repository repository)
Initializes the value for therepository
attribute.ImmutableDeploymentStatusEvent.Builder
sender(User sender)
Initializes the value for thesender
attribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableDeploymentStatusEvent.Builder from(DeploymentStatusEvent instance)
Fill a builder with attribute values from the providedcom.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 providedcom.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 therepository
attribute.- Parameters:
repository
- The value for repository (can benull
)- Returns:
this
builder for use in a chained invocation
-
sender
@CanIgnoreReturnValue public final ImmutableDeploymentStatusEvent.Builder sender(@Nullable User sender)
Initializes the value for thesender
attribute.- Parameters:
sender
- The value for sender (can benull
)- Returns:
this
builder for use in a chained invocation
-
eventInstallation
@CanIgnoreReturnValue public final ImmutableDeploymentStatusEvent.Builder eventInstallation(@Nullable EventInstallation eventInstallation)
Initializes the value for theeventInstallation
attribute.- Parameters:
eventInstallation
- The value for eventInstallation (can benull
)- Returns:
this
builder for use in a chained invocation
-
deploymentStatus
@CanIgnoreReturnValue public final ImmutableDeploymentStatusEvent.Builder deploymentStatus(@Nullable Status deploymentStatus)
Initializes the value for thedeploymentStatus
attribute.- Parameters:
deploymentStatus
- The value for deploymentStatus (can benull
)- Returns:
this
builder for use in a chained invocation
-
deployment
@CanIgnoreReturnValue public final ImmutableDeploymentStatusEvent.Builder deployment(@Nullable Deployment deployment)
Initializes the value for thedeployment
attribute.- Parameters:
deployment
- The value for deployment (can benull
)- Returns:
this
builder for use in a chained invocation
-
build
public ImmutableDeploymentStatusEvent build()
Builds a newImmutableDeploymentStatusEvent
.- Returns:
- An immutable instance of DeploymentStatusEvent
- Throws:
IllegalStateException
- if any required attributes are missing
-
-