@NotThreadSafe public static final class AuthRevokeResponse.Builder extends Object
AuthRevokeResponse.
Initialize attributes and then invoke the build() 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.
| Modifier and Type | Method and Description |
|---|---|
AuthRevokeResponse |
build()
Builds a new
AuthRevokeResponse. |
AuthRevokeResponse.Builder |
from(AuthRevokeResponseIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.response.auth.AuthRevokeResponseIF instance. |
AuthRevokeResponse.Builder |
from(SlackResponse instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.response.SlackResponse instance. |
AuthRevokeResponse.Builder |
setOk(boolean ok)
Initializes the value for the
ok attribute. |
AuthRevokeResponse.Builder |
setResponseMetadata(Optional<ResponseMetadata> responseMetadata)
Initializes the optional value
responseMetadata to responseMetadata. |
AuthRevokeResponse.Builder |
setResponseMetadata(ResponseMetadata responseMetadata)
Initializes the optional value
responseMetadata to responseMetadata. |
AuthRevokeResponse.Builder |
setRevoked(boolean revoked)
Initializes the value for the
revoked attribute. |
public final AuthRevokeResponse.Builder from(AuthRevokeResponseIF instance)
com.hubspot.slack.client.models.response.auth.AuthRevokeResponseIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final AuthRevokeResponse.Builder from(SlackResponse instance)
com.hubspot.slack.client.models.response.SlackResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final AuthRevokeResponse.Builder setRevoked(boolean revoked)
revoked attribute.revoked - The value for revokedthis builder for use in a chained invocationpublic final AuthRevokeResponse.Builder setOk(boolean ok)
ok attribute.ok - The value for okthis builder for use in a chained invocationpublic final AuthRevokeResponse.Builder setResponseMetadata(@Nullable ResponseMetadata responseMetadata)
responseMetadata to responseMetadata.responseMetadata - The value for responseMetadata, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final AuthRevokeResponse.Builder setResponseMetadata(Optional<ResponseMetadata> responseMetadata)
responseMetadata to responseMetadata.responseMetadata - The value for responseMetadatathis builder for use in a chained invocationpublic AuthRevokeResponse build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
AuthRevokeResponse.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.