@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AuthRevokeResponseIF"}) @Immutable public final class AuthRevokeResponse extends Object implements AuthRevokeResponseIF
AuthRevokeResponseIF.
Use the builder to create immutable instances:
AuthRevokeResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
AuthRevokeResponse.Builder
Builds instances of type
AuthRevokeResponse. |
| Modifier and Type | Method and Description |
|---|---|
static AuthRevokeResponse.Builder |
builder()
Creates a builder for
AuthRevokeResponse. |
static AuthRevokeResponse |
copyOf(AuthRevokeResponseIF instance)
Creates an immutable copy of a
AuthRevokeResponseIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
AuthRevokeResponse that have equal attribute values. |
Optional<ResponseMetadata> |
getResponseMetadata() |
int |
hashCode()
Computes a hash code from attributes:
revoked, ok, responseMetadata. |
boolean |
isOk() |
boolean |
isRevoked() |
String |
toString()
Prints the immutable value
AuthRevokeResponse with attribute values. |
AuthRevokeResponse |
withOk(boolean ok)
Copy the current immutable object by setting a value for the
ok attribute. |
AuthRevokeResponse |
withResponseMetadata(Optional<ResponseMetadata> optional)
Copy the current immutable object by setting an optional value for the
responseMetadata attribute. |
AuthRevokeResponse |
withResponseMetadata(ResponseMetadata value)
Copy the current immutable object by setting a present value for the optional
responseMetadata attribute. |
AuthRevokeResponse |
withRevoked(boolean revoked)
Copy the current immutable object by setting a value for the
revoked attribute. |
public boolean isRevoked()
isRevoked in interface AuthRevokeResponseIFrevoked attributepublic boolean isOk()
isOk in interface SlackResponseok attributepublic Optional<ResponseMetadata> getResponseMetadata()
getResponseMetadata in interface SlackResponseresponseMetadata attributepublic final AuthRevokeResponse withRevoked(boolean revoked)
revoked attribute.
A value equality check is used to prevent copying of the same value by returning this.revoked - A new value for revokedthis objectpublic final AuthRevokeResponse withOk(boolean ok)
ok attribute.
A value equality check is used to prevent copying of the same value by returning this.ok - A new value for okthis objectpublic final AuthRevokeResponse withResponseMetadata(@Nullable ResponseMetadata value)
responseMetadata attribute.value - The value for responseMetadata, null is accepted as java.util.Optional.empty()this objectpublic final AuthRevokeResponse withResponseMetadata(Optional<ResponseMetadata> optional)
responseMetadata attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for responseMetadatathis objectpublic boolean equals(@Nullable Object another)
AuthRevokeResponse that have equal attribute values.public int hashCode()
revoked, ok, responseMetadata.public String toString()
AuthRevokeResponse with attribute values.public static AuthRevokeResponse copyOf(AuthRevokeResponseIF instance)
AuthRevokeResponseIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static AuthRevokeResponse.Builder builder()
AuthRevokeResponse.Copyright © 2019. All rights reserved.