@NotThreadSafe public static final class AuthTestResponse.Builder extends Object
AuthTestResponse.
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 |
|---|---|
AuthTestResponse |
build()
Builds a new
AuthTestResponse. |
AuthTestResponse.Builder |
from(AuthTestResponseIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.response.auth.AuthTestResponseIF instance. |
AuthTestResponse.Builder |
from(SlackResponse instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.response.SlackResponse instance. |
AuthTestResponse.Builder |
setOk(boolean ok)
Initializes the value for the
ok attribute. |
AuthTestResponse.Builder |
setResponseMetadata(Optional<ResponseMetadata> responseMetadata)
Initializes the optional value
responseMetadata to responseMetadata. |
AuthTestResponse.Builder |
setResponseMetadata(ResponseMetadata responseMetadata)
Initializes the optional value
responseMetadata to responseMetadata. |
AuthTestResponse.Builder |
setTeam(String team)
Initializes the value for the
team attribute. |
AuthTestResponse.Builder |
setTeamId(String teamId)
Initializes the value for the
teamId attribute. |
AuthTestResponse.Builder |
setUrl(String url)
Initializes the value for the
url attribute. |
AuthTestResponse.Builder |
setUser(Optional<String> user)
Initializes the optional value
user to user. |
AuthTestResponse.Builder |
setUser(String user)
Initializes the optional value
user to user. |
AuthTestResponse.Builder |
setUserId(Optional<String> userId)
Initializes the optional value
userId to userId. |
AuthTestResponse.Builder |
setUserId(String userId)
Initializes the optional value
userId to userId. |
public final AuthTestResponse.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 AuthTestResponse.Builder from(AuthTestResponseIF instance)
com.hubspot.slack.client.models.response.auth.AuthTestResponseIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final AuthTestResponse.Builder setUrl(String url)
url attribute.url - The value for urlthis builder for use in a chained invocationpublic final AuthTestResponse.Builder setTeam(String team)
team attribute.team - The value for teamthis builder for use in a chained invocationpublic final AuthTestResponse.Builder setTeamId(String teamId)
teamId attribute.teamId - The value for teamIdthis builder for use in a chained invocationpublic final AuthTestResponse.Builder setUser(@Nullable String user)
user to user.user - The value for user, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final AuthTestResponse.Builder setUser(Optional<String> user)
user to user.user - The value for userthis builder for use in a chained invocationpublic final AuthTestResponse.Builder setUserId(@Nullable String userId)
userId to userId.userId - The value for userId, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final AuthTestResponse.Builder setUserId(Optional<String> userId)
userId to userId.userId - The value for userIdthis builder for use in a chained invocationpublic final AuthTestResponse.Builder setOk(boolean ok)
ok attribute.ok - The value for okthis builder for use in a chained invocationpublic final AuthTestResponse.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 AuthTestResponse.Builder setResponseMetadata(Optional<ResponseMetadata> responseMetadata)
responseMetadata to responseMetadata.responseMetadata - The value for responseMetadatathis builder for use in a chained invocationpublic AuthTestResponse build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
AuthTestResponse.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.