public static final class OfflineTypes.CreateSpec.Builder
extends java.lang.Object
OfflineTypes.CreateSpec
.Constructor and Description |
---|
Builder(OfflineTypes.SourceType sourceType)
Constructor with parameters for the required properties of
OfflineTypes.CreateSpec . |
Modifier and Type | Method and Description |
---|---|
OfflineTypes.CreateSpec |
build() |
OfflineTypes.CreateSpec.Builder |
setDescription(java.lang.String description)
Description of the depot.
|
OfflineTypes.CreateSpec.Builder |
setFileId(java.lang.String fileId)
File identifier returned by the file upload endpoint after file is uploaded.
|
OfflineTypes.CreateSpec.Builder |
setLocation(java.net.URI location)
Location of the depot from which content should be retrieved.
|
public Builder(OfflineTypes.SourceType sourceType)
OfflineTypes.CreateSpec
.public OfflineTypes.CreateSpec.Builder setDescription(java.lang.String description)
null
, the description will be empty.description
- New value for the property.public OfflineTypes.CreateSpec.Builder setLocation(java.net.URI location)
getSourceType()
is OfflineTypes.SourceType.PULL
.location
- New value for the property.public OfflineTypes.CreateSpec.Builder setFileId(java.lang.String fileId)
getSourceType()
is OfflineTypes.SourceType.PUSH
.fileId
- New value for the property.public OfflineTypes.CreateSpec build()