@NotThreadSafe public static final class TeamInfoResponse.Builder extends Object
TeamInfoResponse.
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 |
|---|---|
TeamInfoResponse |
build()
Builds a new
TeamInfoResponse. |
TeamInfoResponse.Builder |
from(SlackResponse instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.response.SlackResponse instance. |
TeamInfoResponse.Builder |
from(TeamInfoResponseIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.response.team.TeamInfoResponseIF instance. |
TeamInfoResponse.Builder |
setOk(boolean ok)
Initializes the value for the
ok attribute. |
TeamInfoResponse.Builder |
setResponseMetadata(Optional<ResponseMetadata> responseMetadata)
Initializes the optional value
responseMetadata to responseMetadata. |
TeamInfoResponse.Builder |
setResponseMetadata(ResponseMetadata responseMetadata)
Initializes the optional value
responseMetadata to responseMetadata. |
TeamInfoResponse.Builder |
setSlackTeam(SlackTeam slackTeam)
Initializes the value for the
slackTeam attribute. |
public final TeamInfoResponse.Builder from(TeamInfoResponseIF instance)
com.hubspot.slack.client.models.response.team.TeamInfoResponseIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final TeamInfoResponse.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 TeamInfoResponse.Builder setSlackTeam(SlackTeam slackTeam)
slackTeam attribute.slackTeam - The value for slackTeamthis builder for use in a chained invocationpublic final TeamInfoResponse.Builder setOk(boolean ok)
ok attribute.ok - The value for okthis builder for use in a chained invocationpublic final TeamInfoResponse.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 TeamInfoResponse.Builder setResponseMetadata(Optional<ResponseMetadata> responseMetadata)
responseMetadata to responseMetadata.responseMetadata - The value for responseMetadatathis builder for use in a chained invocationpublic TeamInfoResponse build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
TeamInfoResponse.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.