Package com.spotify.github.v3.git
Class ImmutableVerification
- java.lang.Object
-
- com.spotify.github.v3.git.ImmutableVerification
-
- All Implemented Interfaces:
Verification
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableVerification extends Object implements Verification
Immutable implementation ofVerification
.Use the builder to create immutable instances:
ImmutableVerification.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableVerification.Builder
Builds instances of typeImmutableVerification
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableVerification.Builder
builder()
Creates a builder forImmutableVerification
.static ImmutableVerification
copyOf(Verification instance)
Creates an immutable copy of aVerification
value.boolean
equals(Object another)
This instance is equal to all instances ofImmutableVerification
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:verified
,reason
,signature
,payload
.String
payload()
String
reason()
String
signature()
String
toString()
Prints the immutable valueVerification
with attribute values.Boolean
verified()
ImmutableVerification
withPayload(String value)
Copy the current immutable object by setting a value for thepayload
attribute.ImmutableVerification
withReason(String value)
Copy the current immutable object by setting a value for thereason
attribute.ImmutableVerification
withSignature(String value)
Copy the current immutable object by setting a value for thesignature
attribute.ImmutableVerification
withVerified(Boolean value)
Copy the current immutable object by setting a value for theverified
attribute.
-
-
-
Method Detail
-
verified
@Nullable public Boolean verified()
- Specified by:
verified
in interfaceVerification
- Returns:
- The value of the
verified
attribute
-
reason
@Nullable public String reason()
- Specified by:
reason
in interfaceVerification
- Returns:
- The value of the
reason
attribute
-
signature
@Nullable public String signature()
- Specified by:
signature
in interfaceVerification
- Returns:
- The value of the
signature
attribute
-
payload
@Nullable public String payload()
- Specified by:
payload
in interfaceVerification
- Returns:
- The value of the
payload
attribute
-
withVerified
public final ImmutableVerification withVerified(@Nullable Boolean value)
Copy the current immutable object by setting a value for theverified
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for verified (can benull
)- Returns:
- A modified copy of the
this
object
-
withReason
public final ImmutableVerification withReason(@Nullable String value)
Copy the current immutable object by setting a value for thereason
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for reason (can benull
)- Returns:
- A modified copy of the
this
object
-
withSignature
public final ImmutableVerification withSignature(@Nullable String value)
Copy the current immutable object by setting a value for thesignature
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for signature (can benull
)- Returns:
- A modified copy of the
this
object
-
withPayload
public final ImmutableVerification withPayload(@Nullable String value)
Copy the current immutable object by setting a value for thepayload
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for payload (can benull
)- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableVerification
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:verified
,reason
,signature
,payload
.
-
toString
public String toString()
Prints the immutable valueVerification
with attribute values.
-
copyOf
public static ImmutableVerification copyOf(Verification instance)
Creates an immutable copy of aVerification
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 Verification instance
-
builder
public static ImmutableVerification.Builder builder()
Creates a builder forImmutableVerification
.ImmutableVerification.builder() .verified(Boolean | null) // nullable
verified
.reason(String | null) // nullablereason
.signature(String | null) // nullablesignature
.payload(String | null) // nullablepayload
.build();- Returns:
- A new ImmutableVerification builder
-
-