Class PrepareFile.Builder
- java.lang.Object
-
- com.rivet.api.resources.upload.common.types.PrepareFile.Builder
-
- All Implemented Interfaces:
PrepareFile._FinalStage,PrepareFile.ContentLengthStage,PrepareFile.PathStage
- Enclosing class:
- PrepareFile
public static final class PrepareFile.Builder extends java.lang.Object implements PrepareFile.PathStage, PrepareFile.ContentLengthStage, PrepareFile._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrepareFilebuild()PrepareFile._FinalStagecontentLength(long contentLength)Unsigned 64 bit integer.PrepareFile._FinalStagecontentType(java.lang.String contentType)The MIME type of the file.PrepareFile._FinalStagecontentType(java.util.Optional<java.lang.String> contentType)PrepareFile.Builderfrom(PrepareFile other)PrepareFile.ContentLengthStagepath(java.lang.String path)The path/filename of the file.
-
-
-
Method Detail
-
from
public PrepareFile.Builder from(PrepareFile other)
- Specified by:
fromin interfacePrepareFile.PathStage
-
path
public PrepareFile.ContentLengthStage path(java.lang.String path)
The path/filename of the file.
- Specified by:
pathin interfacePrepareFile.PathStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contentLength
public PrepareFile._FinalStage contentLength(long contentLength)
Unsigned 64 bit integer.
- Specified by:
contentLengthin interfacePrepareFile.ContentLengthStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contentType
public PrepareFile._FinalStage contentType(java.lang.String contentType)
The MIME type of the file.
- Specified by:
contentTypein interfacePrepareFile._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contentType
public PrepareFile._FinalStage contentType(java.util.Optional<java.lang.String> contentType)
- Specified by:
contentTypein interfacePrepareFile._FinalStage
-
build
public PrepareFile build()
- Specified by:
buildin interfacePrepareFile._FinalStage
-
-