Class UsersInfoParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.users.UsersInfoParams.Builder
- Enclosing class:
UsersInfoParams
@Generated(from="UsersInfoParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class UsersInfoParams.Builder
extends Object
Builds instances of type
UsersInfoParams.
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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newUsersInfoParams.final UsersInfoParams.BuilderFill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasUserinstance.final UsersInfoParams.Builderfrom(UsersInfoParamsIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.users.UsersInfoParamsIFinstance.final UsersInfoParams.BuildersetIncludeLocale(boolean includeLocale) Initializes the value for theincludeLocaleattribute.final UsersInfoParams.BuilderInitializes the value for theuserIdattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.users.UsersInfoParamsIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasUserinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setUserId
Initializes the value for theuserIdattribute.- Parameters:
userId- The value for userId- Returns:
thisbuilder for use in a chained invocation
-
setIncludeLocale
Initializes the value for theincludeLocaleattribute.If not set, this attribute will have a default value as returned by the initializer of
includeLocale.- Parameters:
includeLocale- The value for includeLocale- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newUsersInfoParams.- Returns:
- An immutable instance of UsersInfoParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-