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