Class File.Builder
java.lang.Object
com.hubspot.slack.client.models.blocks.File.Builder
- Enclosing class:
File
@Generated(from="FileIF",
generator="Immutables")
@NotThreadSafe
public static final class File.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newFile.final File.BuilderFill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.Blockinstance.final File.BuilderFill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.FileIFinstance.final File.BuildersetBlockId(String blockId) Initializes the optional valueblockIdto blockId.final File.BuildersetBlockId(Optional<String> blockId) Initializes the optional valueblockIdto blockId.final File.BuildersetExternalId(String externalId) Initializes the value for theexternalIdattribute.final File.BuilderInitializes the value for thesourceattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.FileIFinstance.- 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.Blockinstance.- 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
-
setExternalId
Initializes the value for theexternalIdattribute.- Parameters:
externalId- The value for externalId- Returns:
thisbuilder for use in a chained invocation
-
setSource
Initializes the value for thesourceattribute.- Parameters:
source- The value for source- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newFile.- Returns:
- An immutable instance of File
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-