public static class GenericArtifact.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GenericArtifact.Builder |
artifactPath(String artifactPath)
A user-defined path to describe the location of an artifact.
|
GenericArtifact |
build() |
GenericArtifact.Builder |
compartmentId(String compartmentId)
The OCID
of the repository’s compartment.
|
GenericArtifact.Builder |
copy(GenericArtifact model) |
GenericArtifact.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
GenericArtifact.Builder |
displayName(String displayName)
The artifact name with the format of
<artifact-path>:<artifact-version> . |
GenericArtifact.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
GenericArtifact.Builder |
id(String id)
The OCID
of the artifact.
|
GenericArtifact.Builder |
lifecycleState(GenericArtifact.LifecycleState lifecycleState)
The current state of the artifact.
|
GenericArtifact.Builder |
repositoryId(String repositoryId)
The OCID of the
repository.
|
GenericArtifact.Builder |
sha256(String sha256)
The SHA256 digest for the artifact.
|
GenericArtifact.Builder |
sizeInBytes(Long sizeInBytes)
The size of the artifact in bytes.
|
GenericArtifact.Builder |
timeCreated(Date timeCreated)
An RFC 3339 timestamp indicating when the repository was created.
|
GenericArtifact.Builder |
version(String version)
A user-defined string to describe the artifact version.
|
public GenericArtifact.Builder id(String id)
The OCID of the artifact.
Example: ocid1.genericartifact.oc1..exampleuniqueID
id
- the value to setpublic GenericArtifact.Builder displayName(String displayName)
The artifact name with the format of <artifact-path>:<artifact-version>
. The
artifact name is truncated to a maximum length of 255.
Example: project01/my-web-app/artifact-abc:1.0.0
displayName
- the value to setpublic GenericArtifact.Builder compartmentId(String compartmentId)
The OCID of the repository’s compartment.
compartmentId
- the value to setpublic GenericArtifact.Builder repositoryId(String repositoryId)
The OCID of the repository.
repositoryId
- the value to setpublic GenericArtifact.Builder artifactPath(String artifactPath)
A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version.
Example: project01/my-web-app/artifact-abc
artifactPath
- the value to setpublic GenericArtifact.Builder version(String version)
A user-defined string to describe the artifact version.
Example: 1.1.0
or 1.2-beta-2
version
- the value to setpublic GenericArtifact.Builder sha256(String sha256)
The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.
sha256
- the value to setpublic GenericArtifact.Builder sizeInBytes(Long sizeInBytes)
The size of the artifact in bytes.
sizeInBytes
- the value to setpublic GenericArtifact.Builder lifecycleState(GenericArtifact.LifecycleState lifecycleState)
The current state of the artifact.
lifecycleState
- the value to setpublic GenericArtifact.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
freeformTags
- the value to setpublic GenericArtifact.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
definedTags
- the value to setpublic GenericArtifact.Builder timeCreated(Date timeCreated)
An RFC 3339 timestamp indicating when the repository was created.
timeCreated
- the value to setpublic GenericArtifact build()
public GenericArtifact.Builder copy(GenericArtifact model)
Copyright © 2016–2024. All rights reserved.