Class SetUserProfileParams
java.lang.Object
com.hubspot.slack.client.methods.params.users.SetUserProfileParams
- All Implemented Interfaces:
HasUser,SetUserProfileParamsIF
@Generated(from="SetUserProfileParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SetUserProfileParams
extends Object
implements SetUserProfileParamsIF
Immutable implementation of
SetUserProfileParamsIF.
Use the builder to create immutable instances:
SetUserProfileParams.builder().
Use the static factory method to create immutable instances:
SetUserProfileParams.of().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSetUserProfileParams. -
Method Summary
Modifier and TypeMethodDescriptionstatic SetUserProfileParams.Builderbuilder()Creates a builder forSetUserProfileParams.static SetUserProfileParamscopyOf(SetUserProfileParamsIF instance) Creates an immutable copy of aSetUserProfileParamsIFvalue.booleanThis instance is equal to all instances ofSetUserProfileParamsthat have equal attribute values.getName()getValue()inthashCode()Computes a hash code from attributes:userId,userProfile,name,value.static SetUserProfileParamsConstruct a new immutableSetUserProfileParamsinstance.toString()Prints the immutable valueSetUserProfileParamswith attribute values.final SetUserProfileParamsCopy the current immutable object by setting a present value for the optionalnameattribute.final SetUserProfileParamsCopy the current immutable object by setting an optional value for thenameattribute.final SetUserProfileParamswithUserId(String value) Copy the current immutable object by setting a value for theuserIdattribute.final SetUserProfileParamswithUserProfile(UserProfile value) Copy the current immutable object by setting a present value for the optionaluserProfileattribute.final SetUserProfileParamswithUserProfile(Optional<? extends UserProfile> optional) Copy the current immutable object by setting an optional value for theuserProfileattribute.final SetUserProfileParamsCopy the current immutable object by setting a present value for the optionalvalueattribute.final SetUserProfileParamsCopy the current immutable object by setting an optional value for thevalueattribute.
-
Method Details
-
getUserId
- Specified by:
getUserIdin interfaceHasUser- Specified by:
getUserIdin interfaceSetUserProfileParamsIF- Returns:
- The value of the
userIdattribute
-
getUserProfile
- Specified by:
getUserProfilein interfaceSetUserProfileParamsIF- Returns:
- The value of the
userProfileattribute
-
getName
- Specified by:
getNamein interfaceSetUserProfileParamsIF- Returns:
- The value of the
nameattribute
-
getValue
- Specified by:
getValuein interfaceSetUserProfileParamsIF- Returns:
- The value of the
valueattribute
-
withUserId
Copy the current immutable object by setting a value for theuserIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userId- Returns:
- A modified copy or the
thisobject
-
withUserProfile
Copy the current immutable object by setting a present value for the optionaluserProfileattribute.- Parameters:
value- The value for userProfile,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withUserProfile
Copy the current immutable object by setting an optional value for theuserProfileattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for userProfile- Returns:
- A modified copy or
thisif not changed
-
withName
Copy the current immutable object by setting a present value for the optionalnameattribute.- Parameters:
value- The value for name,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withName
Copy the current immutable object by setting an optional value for thenameattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for name- Returns:
- A modified copy or
thisif not changed
-
withValue
Copy the current immutable object by setting a present value for the optionalvalueattribute.- Parameters:
value- The value for value,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withValue
Copy the current immutable object by setting an optional value for thevalueattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for value- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofSetUserProfileParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:userId,userProfile,name,value. -
toString
Prints the immutable valueSetUserProfileParamswith attribute values. -
of
Construct a new immutableSetUserProfileParamsinstance.- Parameters:
userId- The value for theuserIdattribute- Returns:
- An immutable SetUserProfileParams instance
-
copyOf
Creates an immutable copy of aSetUserProfileParamsIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable SetUserProfileParams instance
-
builder
Creates a builder forSetUserProfileParams.SetUserProfileParams.builder() .setUserId(String) // requireduserId.setUserProfile(Optional<com.hubspot.slack.client.models.users.UserProfile>) // optionaluserProfile.setName(Optional<String>) // optionalname.setValue(Optional<String>) // optionalvalue.build();- Returns:
- A new SetUserProfileParams builder
-