public static final class DraftsTypes.ImportSpec.Builder
extends java.lang.Object
DraftsTypes.ImportSpec
.Constructor and Description |
---|
Builder(DraftsTypes.SourceType sourceType)
Constructor with parameters for the required properties of
DraftsTypes.ImportSpec . |
Modifier and Type | Method and Description |
---|---|
DraftsTypes.ImportSpec |
build() |
DraftsTypes.ImportSpec.Builder |
setFileId(java.lang.String fileId)
File identifier returned by the file upload endpoint after file is uploaded.
|
DraftsTypes.ImportSpec.Builder |
setLocation(java.net.URI location)
Location of the software specification file to be imported.
|
DraftsTypes.ImportSpec.Builder |
setSoftwareSpec(java.lang.String softwareSpec)
The JSON string representing the desired software specification.
|
public Builder(DraftsTypes.SourceType sourceType)
DraftsTypes.ImportSpec
.public DraftsTypes.ImportSpec.Builder setLocation(java.net.URI location)
getSourceType()
is DraftsTypes.SourceType.PULL
.location
- New value for the property.public DraftsTypes.ImportSpec.Builder setFileId(java.lang.String fileId)
getSourceType()
is DraftsTypes.SourceType.PUSH
.fileId
- New value for the property.public DraftsTypes.ImportSpec.Builder setSoftwareSpec(java.lang.String softwareSpec)
getSourceType()
is DraftsTypes.SourceType.JSON_STRING
.softwareSpec
- New value for the property.public DraftsTypes.ImportSpec build()