@NotThreadSafe public static final class File.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
File |
build()
Builds a new
File. |
File.Builder |
from(Block instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.blocks.Block instance. |
File.Builder |
from(FileIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.blocks.FileIF instance. |
File.Builder |
setBlockId(Optional<String> blockId)
Initializes the optional value
blockId to blockId. |
File.Builder |
setBlockId(String blockId)
Initializes the optional value
blockId to blockId. |
File.Builder |
setExternalId(String externalId)
Initializes the value for the
externalId attribute. |
File.Builder |
setSource(String source)
Initializes the value for the
source attribute. |
public final File.Builder from(Block instance)
com.hubspot.slack.client.models.blocks.Block instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final File.Builder from(FileIF instance)
com.hubspot.slack.client.models.blocks.FileIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final File.Builder setExternalId(String externalId)
externalId attribute.externalId - The value for externalIdthis builder for use in a chained invocationpublic final File.Builder setSource(String source)
source attribute.source - The value for sourcethis builder for use in a chained invocationpublic final File.Builder setBlockId(@Nullable String blockId)
blockId to blockId.blockId - The value for blockId, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final File.Builder setBlockId(Optional<String> blockId)
blockId to blockId.blockId - The value for blockIdthis builder for use in a chained invocationCopyright © 2019. All rights reserved.