Class UploadArtifactOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.platform_services.global_catalog.v1.model.UploadArtifactOptions.Builder
-
- Enclosing class:
- UploadArtifactOptions
public static class UploadArtifactOptions.Builder extends java.lang.ObjectBuilder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UploadArtifactOptions.Builderaccount(java.lang.String account)Set the account.UploadArtifactOptions.Builderartifact(java.io.File artifact)Set the artifact.UploadArtifactOptions.Builderartifact(java.io.InputStream artifact)Set the artifact.UploadArtifactOptions.BuilderartifactId(java.lang.String artifactId)Set the artifactId.UploadArtifactOptionsbuild()Builds a UploadArtifactOptions.UploadArtifactOptions.BuildercontentType(java.lang.String contentType)Set the contentType.UploadArtifactOptions.BuilderobjectId(java.lang.String objectId)Set the objectId.
-
-
-
Method Detail
-
build
public UploadArtifactOptions build()
Builds a UploadArtifactOptions.- Returns:
- the new UploadArtifactOptions instance
-
objectId
public UploadArtifactOptions.Builder objectId(java.lang.String objectId)
Set the objectId.- Parameters:
objectId- the objectId- Returns:
- the UploadArtifactOptions builder
-
artifactId
public UploadArtifactOptions.Builder artifactId(java.lang.String artifactId)
Set the artifactId.- Parameters:
artifactId- the artifactId- Returns:
- the UploadArtifactOptions builder
-
artifact
public UploadArtifactOptions.Builder artifact(java.io.InputStream artifact)
Set the artifact.- Parameters:
artifact- the artifact- Returns:
- the UploadArtifactOptions builder
-
contentType
public UploadArtifactOptions.Builder contentType(java.lang.String contentType)
Set the contentType.- Parameters:
contentType- the contentType- Returns:
- the UploadArtifactOptions builder
-
account
public UploadArtifactOptions.Builder account(java.lang.String account)
Set the account.- Parameters:
account- the account- Returns:
- the UploadArtifactOptions builder
-
artifact
public UploadArtifactOptions.Builder artifact(java.io.File artifact) throws java.io.FileNotFoundException
Set the artifact.- Parameters:
artifact- the artifact- Returns:
- the UploadArtifactOptions builder
- Throws:
java.io.FileNotFoundException- if the file could not be found
-
-