Class SetUserProfileParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.users.SetUserProfileParams.Builder
- Enclosing class:
SetUserProfileParams
@Generated(from="SetUserProfileParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class SetUserProfileParams.Builder
extends Object
Builds instances of type
SetUserProfileParams.
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 newSetUserProfileParams.Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasUserinstance.from(SetUserProfileParamsIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.users.SetUserProfileParamsIFinstance.Initializes the optional valuenameto name.Initializes the optional valuenameto name.Initializes the value for theuserIdattribute.setUserProfile(UserProfile userProfile) Initializes the optional valueuserProfileto userProfile.setUserProfile(Optional<? extends UserProfile> userProfile) Initializes the optional valueuserProfileto userProfile.Initializes the optional valuevalueto value.Initializes the optional valuevalueto value.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.users.SetUserProfileParamsIFinstance.- 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
-
setUserProfile
Initializes the optional valueuserProfileto userProfile.- Parameters:
userProfile- The value for userProfile,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setUserProfile
public final SetUserProfileParams.Builder setUserProfile(Optional<? extends UserProfile> userProfile) Initializes the optional valueuserProfileto userProfile.- Parameters:
userProfile- The value for userProfile- Returns:
thisbuilder for use in a chained invocation
-
setName
Initializes the optional valuenameto name.- Parameters:
name- The value for name,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setName
Initializes the optional valuenameto name.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
setValue
Initializes the optional valuevalueto value.- Parameters:
value- The value for value,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setValue
Initializes the optional valuevalueto value.- Parameters:
value- The value for value- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newSetUserProfileParams.- Returns:
- An immutable instance of SetUserProfileParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-