Class Call.Builder
java.lang.Object
com.hubspot.slack.client.models.blocks.Call.Builder
- Enclosing class:
Call
@Generated(from="CallIF",
generator="Immutables")
@NotThreadSafe
public static final class Call.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newCall.final Call.BuilderFill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.Blockinstance.final Call.BuilderFill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.CallIFinstance.final Call.BuildersetBlockId(String blockId) Initializes the optional valueblockIdto blockId.final Call.BuildersetBlockId(Optional<String> blockId) Initializes the optional valueblockIdto blockId.final Call.BuilderInitializes the value for thecallIdattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.Blockinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.CallIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setBlockId
Initializes the optional valueblockIdto blockId.- Parameters:
blockId- The value for blockId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setBlockId
Initializes the optional valueblockIdto blockId.- Parameters:
blockId- The value for blockId- Returns:
thisbuilder for use in a chained invocation
-
setCallId
Initializes the value for thecallIdattribute.- Parameters:
callId- The value for callId- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newCall.- Returns:
- An immutable instance of Call
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-