Class DndInfoParams
java.lang.Object
com.hubspot.slack.client.methods.params.dnd.DndInfoParams
- All Implemented Interfaces:
DndInfoParamsIF
@Generated(from="DndInfoParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class DndInfoParams
extends Object
implements DndInfoParamsIF
Immutable implementation of
DndInfoParamsIF.
Use the builder to create immutable instances:
DndInfoParams.builder().
Use the static factory method to create immutable instances:
DndInfoParams.of().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DndInfoParams.Builderbuilder()Creates a builder forDndInfoParams.static DndInfoParamscopyOf(DndInfoParamsIF instance) Creates an immutable copy of aDndInfoParamsIFvalue.booleanThis instance is equal to all instances ofDndInfoParamsthat have equal attribute values.inthashCode()Computes a hash code from attributes:userId.static DndInfoParamsConstruct a new immutableDndInfoParamsinstance.static DndInfoParamsConstruct a new immutableDndInfoParamsinstance.toString()Prints the immutable valueDndInfoParamswith attribute values.final DndInfoParamswithUserId(String value) Copy the current immutable object by setting a present value for the optionaluserIdattribute.final DndInfoParamswithUserId(Optional<String> optional) Copy the current immutable object by setting an optional value for theuserIdattribute.
-
Method Details
-
getUserId
- Specified by:
getUserIdin interfaceDndInfoParamsIF- Returns:
- The value of the
userIdattribute
-
withUserId
Copy the current immutable object by setting a present value for the optionaluserIdattribute.- Parameters:
value- The value for userId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withUserId
Copy the current immutable object by setting an optional value for theuserIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for userId- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofDndInfoParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:userId. -
toString
Prints the immutable valueDndInfoParamswith attribute values. -
of
Construct a new immutableDndInfoParamsinstance.- Parameters:
userId- The value for theuserIdattribute- Returns:
- An immutable DndInfoParams instance
-
of
Construct a new immutableDndInfoParamsinstance.- Parameters:
userId- The value for theuserIdattribute- Returns:
- An immutable DndInfoParams instance
-
copyOf
Creates an immutable copy of aDndInfoParamsIFvalue. 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 DndInfoParams instance
-
builder
Creates a builder forDndInfoParams.DndInfoParams.builder() .setUserId(Optional<String>) // optionaluserId.build();- Returns:
- A new DndInfoParams builder
-