Class Call
java.lang.Object
com.hubspot.slack.client.models.blocks.Call
- All Implemented Interfaces:
BlockOrAttachment,Block,CallIF,ChatUnfurlBlocksOrAttachment
@Generated(from="CallIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class Call
extends Object
implements CallIF
Immutable implementation of
CallIF.
Use the builder to create immutable instances:
Call.builder().
-
Nested Class Summary
Nested Classes -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Call.Builderbuilder()Creates a builder forCall.static CallCreates an immutable copy of aCallIFvalue.booleanThis instance is equal to all instances ofCallthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:blockId,type,callId.toString()Prints the immutable valueCallwith attribute values.final CallwithBlockId(String value) Copy the current immutable object by setting a present value for the optionalblockIdattribute.final CallwithBlockId(Optional<String> optional) Copy the current immutable object by setting an optional value for theblockIdattribute.final CallwithCallId(String value) Copy the current immutable object by setting a value for thecallIdattribute.
-
Method Details
-
getBlockId
- Specified by:
getBlockIdin interfaceBlock- Returns:
- The value of the
blockIdattribute
-
getType
-
getCallId
-
withBlockId
Copy the current immutable object by setting a present value for the optionalblockIdattribute.- Parameters:
value- The value for blockId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withBlockId
Copy the current immutable object by setting an optional value for theblockIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for blockId- Returns:
- A modified copy or
thisif not changed
-
withCallId
Copy the current immutable object by setting a value for thecallIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for callId- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofCallthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:blockId,type,callId. -
toString
Prints the immutable valueCallwith attribute values. -
copyOf
Creates an immutable copy of aCallIFvalue. 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 Call instance
-
builder
Creates a builder forCall.Call.builder() .setBlockId(Optional<String>) // optionalblockId.setCallId(String) // requiredcallId.build();- Returns:
- A new Call builder
-