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 classImmutableVerification.BuilderBuilds instances of typeImmutableVerification.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableVerification.Builderbuilder()Creates a builder forImmutableVerification.static ImmutableVerificationcopyOf(Verification instance)Creates an immutable copy of aVerificationvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableVerificationthat have equal attribute values.inthashCode()Computes a hash code from attributes:verified,reason,signature,payload.Stringpayload()Stringreason()Stringsignature()StringtoString()Prints the immutable valueVerificationwith attribute values.Booleanverified()ImmutableVerificationwithPayload(String value)Copy the current immutable object by setting a value for thepayloadattribute.ImmutableVerificationwithReason(String value)Copy the current immutable object by setting a value for thereasonattribute.ImmutableVerificationwithSignature(String value)Copy the current immutable object by setting a value for thesignatureattribute.ImmutableVerificationwithVerified(Boolean value)Copy the current immutable object by setting a value for theverifiedattribute.
-
-
-
Method Detail
-
verified
@Nullable public Boolean verified()
- Specified by:
verifiedin interfaceVerification- Returns:
- The value of the
verifiedattribute
-
reason
@Nullable public String reason()
- Specified by:
reasonin interfaceVerification- Returns:
- The value of the
reasonattribute
-
signature
@Nullable public String signature()
- Specified by:
signaturein interfaceVerification- Returns:
- The value of the
signatureattribute
-
payload
@Nullable public String payload()
- Specified by:
payloadin interfaceVerification- Returns:
- The value of the
payloadattribute
-
withVerified
public final ImmutableVerification withVerified(@Nullable Boolean value)
Copy the current immutable object by setting a value for theverifiedattribute. 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
thisobject
-
withReason
public final ImmutableVerification withReason(@Nullable String value)
Copy the current immutable object by setting a value for thereasonattribute. 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
thisobject
-
withSignature
public final ImmutableVerification withSignature(@Nullable String value)
Copy the current immutable object by setting a value for thesignatureattribute. 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
thisobject
-
withPayload
public final ImmutableVerification withPayload(@Nullable String value)
Copy the current immutable object by setting a value for thepayloadattribute. 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
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableVerificationthat 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 valueVerificationwith attribute values.
-
copyOf
public static ImmutableVerification copyOf(Verification instance)
Creates an immutable copy of aVerificationvalue. 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) // nullableverified.reason(String | null) // nullablereason.signature(String | null) // nullablesignature.payload(String | null) // nullablepayload.build();- Returns:
- A new ImmutableVerification builder
-
-