public static final class HarborTypes.CreateSpec.Builder
extends java.lang.Object
HarborTypes.CreateSpec
.Constructor and Description |
---|
Builder(java.util.List<HarborTypes.StorageSpec> storage)
Constructor with parameters for the required properties of
HarborTypes.CreateSpec . |
Modifier and Type | Method and Description |
---|---|
HarborTypes.CreateSpec |
build() |
HarborTypes.CreateSpec.Builder |
setCluster(java.lang.String cluster)
Identifier of the cluster hosting the registry.
|
HarborTypes.CreateSpec.Builder |
setGarbageCollection(HarborTypes.GarbageCollection garbageCollection)
Garbage collection configuration for the Harbor registry.
|
public Builder(java.util.List<HarborTypes.StorageSpec> storage)
HarborTypes.CreateSpec
.public HarborTypes.CreateSpec.Builder setCluster(java.lang.String cluster)
null
, registry will not be created on a specified cluster. This is
required in current version, since Harbor can only be created on a cluster with
Kubernetes enabled.cluster
- New value for the property.
When clients pass a value of this class as a parameter, the property must be an
identifier for the resource type: ClusterComputeResource
. When methods
return a value of this class as a return value, the property will be an
identifier for the resource type: ClusterComputeResource
.public HarborTypes.CreateSpec.Builder setGarbageCollection(HarborTypes.GarbageCollection garbageCollection)
null
, a default configuration is set, Recurrence#WEEKLY,
DayOfWeek#SATURDAY, GarbageCollection#hour is 2, GarbageCollection#minute is 0.garbageCollection
- New value for the property.public HarborTypes.CreateSpec build()