Class FileInfo.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.files.FileInfo.Builder
- Enclosing class:
FileInfo
@Generated(from="FileInfoIF",
generator="Immutables")
@NotThreadSafe
public static final class FileInfo.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newFileInfo.final FileInfo.Builderfrom(FileInfoIF instance) Fill a builder with attribute values from the providedFileInfoIFinstance.final FileInfo.BuilderInitializes the value for theidattribute.final FileInfo.BuilderInitializes the value for thetitleattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedFileInfoIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setId
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
setTitle
Initializes the value for thetitleattribute.- Parameters:
title- The value for title- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newFileInfo.- Returns:
- An immutable instance of FileInfo
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-