Class UserEmailParams
java.lang.Object
com.hubspot.slack.client.methods.params.users.UserEmailParams
- All Implemented Interfaces:
UserEmailParamsIF
@Generated(from="UserEmailParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class UserEmailParams
extends Object
implements UserEmailParamsIF
Immutable implementation of
UserEmailParamsIF.
Use the builder to create immutable instances:
UserEmailParams.builder().
Use the static factory method to create immutable instances:
UserEmailParams.of().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic UserEmailParams.Builderbuilder()Creates a builder forUserEmailParams.static UserEmailParamscopyOf(UserEmailParamsIF instance) Creates an immutable copy of aUserEmailParamsIFvalue.booleanThis instance is equal to all instances ofUserEmailParamsthat have equal attribute values.getEmail()inthashCode()Computes a hash code from attributes:email.static UserEmailParamsConstruct a new immutableUserEmailParamsinstance.toString()Prints the immutable valueUserEmailParamswith attribute values.final UserEmailParamsCopy the current immutable object by setting a value for theemailattribute.
-
Method Details
-
getEmail
- Specified by:
getEmailin interfaceUserEmailParamsIF- Returns:
- The value of the
emailattribute
-
withEmail
Copy the current immutable object by setting a value for theemailattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for email- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofUserEmailParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:email. -
toString
Prints the immutable valueUserEmailParamswith attribute values. -
of
Construct a new immutableUserEmailParamsinstance.- Parameters:
email- The value for theemailattribute- Returns:
- An immutable UserEmailParams instance
-
copyOf
Creates an immutable copy of aUserEmailParamsIFvalue. 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 UserEmailParams instance
-
builder
Creates a builder forUserEmailParams.UserEmailParams.builder() .setEmail(String) // requiredemail.build();- Returns:
- A new UserEmailParams builder
-