Class CallsEndParams
java.lang.Object
com.hubspot.slack.client.methods.params.calls.CallsEndParams
- All Implemented Interfaces:
CallsEndParamsIF
@Generated(from="CallsEndParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class CallsEndParams
extends Object
implements CallsEndParamsIF
Immutable implementation of
CallsEndParamsIF.
Use the builder to create immutable instances:
CallsEndParams.builder().
Use the static factory method to create immutable instances:
CallsEndParams.of().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CallsEndParams.Builderbuilder()Creates a builder forCallsEndParams.static CallsEndParamscopyOf(CallsEndParamsIF instance) Creates an immutable copy of aCallsEndParamsIFvalue.booleanThis instance is equal to all instances ofCallsEndParamsthat have equal attribute values.getId()inthashCode()Computes a hash code from attributes:id,duration,durationSeconds.static CallsEndParamsConstruct a new immutableCallsEndParamsinstance.toString()Prints the immutable valueCallsEndParamswith attribute values.final CallsEndParamswithDuration(Duration value) Copy the current immutable object by setting a present value for the optionaldurationattribute.final CallsEndParamswithDuration(Optional<? extends Duration> optional) Copy the current immutable object by setting an optional value for thedurationattribute.final CallsEndParamsCopy the current immutable object by setting a value for theidattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceCallsEndParamsIF- Returns:
- The value of the
idattribute
-
getDuration
- Specified by:
getDurationin interfaceCallsEndParamsIF- Returns:
- The value of the
durationattribute
-
getDurationSeconds
- Specified by:
getDurationSecondsin interfaceCallsEndParamsIF- Returns:
- The computed-at-construction value of the
durationSecondsattribute
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy or the
thisobject
-
withDuration
Copy the current immutable object by setting a present value for the optionaldurationattribute.- Parameters:
value- The value for duration,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withDuration
Copy the current immutable object by setting an optional value for thedurationattribute. 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 duration- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofCallsEndParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,duration,durationSeconds. -
toString
Prints the immutable valueCallsEndParamswith attribute values. -
of
Construct a new immutableCallsEndParamsinstance.- Parameters:
id- The value for theidattribute- Returns:
- An immutable CallsEndParams instance
-
copyOf
Creates an immutable copy of aCallsEndParamsIFvalue. 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 CallsEndParams instance
-
builder
Creates a builder forCallsEndParams.CallsEndParams.builder() .setId(String) // requiredid.setDuration(Optional<java.time.Duration>) // optionalduration.build();- Returns:
- A new CallsEndParams builder
-