Class GenericArtifactSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.artifacts.model.GenericArtifactSummary.Builder
-
- Enclosing class:
- GenericArtifactSummary
public static class GenericArtifactSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenericArtifactSummary.Builder
artifactPath(String artifactPath)
A user-defined path to describe the location of an artifact.GenericArtifactSummary
build()
GenericArtifactSummary.Builder
compartmentId(String compartmentId)
The OCID of the artifact’s compartment.GenericArtifactSummary.Builder
copy(GenericArtifactSummary model)
GenericArtifactSummary.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.GenericArtifactSummary.Builder
displayName(String displayName)
The artifact name with the format of: . GenericArtifactSummary.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.GenericArtifactSummary.Builder
id(String id)
The OCID of the artifact.GenericArtifactSummary.Builder
lifecycleState(GenericArtifact.LifecycleState lifecycleState)
The current state of the generic artifact.GenericArtifactSummary.Builder
repositoryId(String repositoryId)
The OCID of the repository.GenericArtifactSummary.Builder
sha256(String sha256)
The SHA256 digest for the artifact.GenericArtifactSummary.Builder
sizeInBytes(Long sizeInBytes)
The size of the artifact in bytes.GenericArtifactSummary.Builder
timeCreated(Date timeCreated)
An RFC 3339 timestamp indicating when the artifact was created.GenericArtifactSummary.Builder
version(String version)
A user-defined string to describe the artifact version.
-
-
-
Method Detail
-
id
public GenericArtifactSummary.Builder id(String id)
The OCID of the artifact.Example: ocid1.genericartifact.oc1..exampleuniqueID
- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public GenericArtifactSummary.Builder displayName(String displayName)
The artifact name with the format of: . The artifact name is truncated to a maximum length of 255.
Example: project01/my-web-app/artifact-abc:1.0.0
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
compartmentId
public GenericArtifactSummary.Builder compartmentId(String compartmentId)
The OCID of the artifact’s compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
repositoryId
public GenericArtifactSummary.Builder repositoryId(String repositoryId)
The OCID of the repository.- Parameters:
repositoryId
- the value to set- Returns:
- this builder
-
artifactPath
public GenericArtifactSummary.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
- Parameters:
artifactPath
- the value to set- Returns:
- this builder
-
version
public GenericArtifactSummary.Builder version(String version)
A user-defined string to describe the artifact version.Example: 1.1.0 or 1.2-beta-2
- Parameters:
version
- the value to set- Returns:
- this builder
-
sha256
public GenericArtifactSummary.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.
- Parameters:
sha256
- the value to set- Returns:
- this builder
-
sizeInBytes
public GenericArtifactSummary.Builder sizeInBytes(Long sizeInBytes)
The size of the artifact in bytes.- Parameters:
sizeInBytes
- the value to set- Returns:
- this builder
-
lifecycleState
public GenericArtifactSummary.Builder lifecycleState(GenericArtifact.LifecycleState lifecycleState)
The current state of the generic artifact.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
freeformTags
public GenericArtifactSummary.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"}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public GenericArtifactSummary.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"}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
timeCreated
public GenericArtifactSummary.Builder timeCreated(Date timeCreated)
An RFC 3339 timestamp indicating when the artifact was created.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
build
public GenericArtifactSummary build()
-
copy
public GenericArtifactSummary.Builder copy(GenericArtifactSummary model)
-
-