Class ImmutableDeploymentStatusEvent
- java.lang.Object
-
- com.spotify.github.v3.activity.events.ImmutableDeploymentStatusEvent
-
- All Implemented Interfaces:
BaseEvent
,DeploymentStatusEvent
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDeploymentStatusEvent extends Object implements DeploymentStatusEvent
Immutable implementation ofDeploymentStatusEvent
.Use the builder to create immutable instances:
ImmutableDeploymentStatusEvent.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableDeploymentStatusEvent.Builder
Builds instances of typeImmutableDeploymentStatusEvent
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableDeploymentStatusEvent.Builder
builder()
Creates a builder forImmutableDeploymentStatusEvent
.static ImmutableDeploymentStatusEvent
copyOf(DeploymentStatusEvent instance)
Creates an immutable copy of aDeploymentStatusEvent
value.Deployment
deployment()
DeploymentStatus
deploymentStatus()
The deployment status.boolean
equals(Object another)
This instance is equal to all instances ofImmutableDeploymentStatusEvent
that have equal attribute values.EventInstallation
eventInstallation()
TheEventInstallation
, if the event comes from a Github App.int
hashCode()
Computes a hash code from attributes:repository
,sender
,eventInstallation
,deploymentStatus
,deployment
.Repository
repository()
TheRepository
User
sender()
TheUser
that triggered/sent the event.String
toString()
Prints the immutable valueDeploymentStatusEvent
with attribute values.ImmutableDeploymentStatusEvent
withDeployment(Deployment value)
Copy the current immutable object by setting a value for thedeployment
attribute.ImmutableDeploymentStatusEvent
withDeploymentStatus(Status value)
Copy the current immutable object by setting a value for thedeploymentStatus
attribute.ImmutableDeploymentStatusEvent
withEventInstallation(EventInstallation value)
Copy the current immutable object by setting a value for theeventInstallation
attribute.ImmutableDeploymentStatusEvent
withRepository(Repository value)
Copy the current immutable object by setting a value for therepository
attribute.ImmutableDeploymentStatusEvent
withSender(User value)
Copy the current immutable object by setting a value for thesender
attribute.
-
-
-
Method Detail
-
repository
@Nullable public Repository repository()
TheRepository
- Specified by:
repository
in interfaceBaseEvent
-
eventInstallation
@Nullable public EventInstallation eventInstallation()
TheEventInstallation
, if the event comes from a Github App.- Specified by:
eventInstallation
in interfaceBaseEvent
-
deploymentStatus
@Nullable public Status deploymentStatus()
The deployment status.- Specified by:
deploymentStatus
in interfaceDeploymentStatusEvent
-
deployment
@Nullable public Deployment deployment()
Deployment- Specified by:
deployment
in interfaceDeploymentStatusEvent
-
withRepository
public final ImmutableDeploymentStatusEvent withRepository(@Nullable Repository value)
Copy the current immutable object by setting a value for therepository
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for repository (can benull
)- Returns:
- A modified copy of the
this
object
-
withSender
public final ImmutableDeploymentStatusEvent withSender(@Nullable User value)
Copy the current immutable object by setting a value for thesender
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for sender (can benull
)- Returns:
- A modified copy of the
this
object
-
withEventInstallation
public final ImmutableDeploymentStatusEvent withEventInstallation(@Nullable EventInstallation value)
Copy the current immutable object by setting a value for theeventInstallation
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for eventInstallation (can benull
)- Returns:
- A modified copy of the
this
object
-
withDeploymentStatus
public final ImmutableDeploymentStatusEvent withDeploymentStatus(@Nullable Status value)
Copy the current immutable object by setting a value for thedeploymentStatus
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for deploymentStatus (can benull
)- Returns:
- A modified copy of the
this
object
-
withDeployment
public final ImmutableDeploymentStatusEvent withDeployment(@Nullable Deployment value)
Copy the current immutable object by setting a value for thedeployment
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for deployment (can benull
)- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableDeploymentStatusEvent
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:repository
,sender
,eventInstallation
,deploymentStatus
,deployment
.
-
toString
public String toString()
Prints the immutable valueDeploymentStatusEvent
with attribute values.
-
copyOf
public static ImmutableDeploymentStatusEvent copyOf(DeploymentStatusEvent instance)
Creates an immutable copy of aDeploymentStatusEvent
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable DeploymentStatusEvent instance
-
builder
public static ImmutableDeploymentStatusEvent.Builder builder()
Creates a builder forImmutableDeploymentStatusEvent
.ImmutableDeploymentStatusEvent.builder() .repository(com.spotify.github.v3.repos.Repository | null) // nullable
repository
.sender(com.spotify.github.v3.User | null) // nullablesender
.eventInstallation(com.spotify.github.v3.activity.events.EventInstallation | null) // nullableeventInstallation
.deploymentStatus(com.spotify.github.v3.repos.Status | null) // nullabledeploymentStatus
.deployment(com.spotify.github.v3.repos.Deployment | null) // nullabledeployment
.build();- Returns:
- A new ImmutableDeploymentStatusEvent builder
-
-