Package com.oracle.bmc.redis.model
Class OciCacheBackup.Builder
- java.lang.Object
-
- com.oracle.bmc.redis.model.OciCacheBackup.Builder
-
- Enclosing class:
- OciCacheBackup
public static class OciCacheBackup.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OciCacheBackup.BuilderbackupSizeInGBs(Float backupSizeInGBs)Backup size in GB.OciCacheBackup.BuilderbackupSource(OciCacheBackup.BackupSource backupSource)Specifies whether the backup was created from a replica or primary nodeOciCacheBackup.BuilderbackupType(OciCacheBackup.BackupType backupType)Backup Type.OciCacheBackupbuild()OciCacheBackup.BuilderclusterMemoryInGBs(Float clusterMemoryInGBs)The amount of memory allocated to the cluster, in gigabytes.OciCacheBackup.BuilderclusterMode(RedisCluster.ClusterMode clusterMode)Specifies whether the cluster is sharded or non-sharded.OciCacheBackup.BuildercompartmentId(String compartmentId)Backup compartment identifierOciCacheBackup.Buildercopy(OciCacheBackup model)OciCacheBackup.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.OciCacheBackup.Builderdescription(String description)Backup descriptionOciCacheBackup.BuilderdisplayName(String displayName)Backup display nameOciCacheBackup.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.OciCacheBackup.Builderid(String id)Unique identifier that is immutable on creationOciCacheBackup.BuilderlifecycleState(OciCacheBackup.LifecycleState lifecycleState)The current state of the backup.OciCacheBackup.BuilderretentionPeriodInDays(Integer retentionPeriodInDays)Backup retention period in days.OciCacheBackup.BuildershardCount(Integer shardCount)The number of shards in a sharded cluster.OciCacheBackup.BuildersoftwareVersion(RedisCluster.SoftwareVersion softwareVersion)The OCI Cache engine version that the cluster is running.OciCacheBackup.BuildersourceClusterId(String sourceClusterId)The source OCI Cache Cluster OCID.OciCacheBackup.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.OciCacheBackup.BuildertimeCreated(Date timeCreated)The date and time the backup was created.OciCacheBackup.BuildertimeUpdated(Date timeUpdated)The date and time the backup was updated.
-
-
-
Method Detail
-
id
public OciCacheBackup.Builder id(String id)
Unique identifier that is immutable on creation- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public OciCacheBackup.Builder displayName(String displayName)
Backup display name- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public OciCacheBackup.Builder description(String description)
Backup description- Parameters:
description- the value to set- Returns:
- this builder
-
compartmentId
public OciCacheBackup.Builder compartmentId(String compartmentId)
Backup compartment identifier- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
backupSource
public OciCacheBackup.Builder backupSource(OciCacheBackup.BackupSource backupSource)
Specifies whether the backup was created from a replica or primary node- Parameters:
backupSource- the value to set- Returns:
- this builder
-
lifecycleState
public OciCacheBackup.Builder lifecycleState(OciCacheBackup.LifecycleState lifecycleState)
The current state of the backup.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
retentionPeriodInDays
public OciCacheBackup.Builder retentionPeriodInDays(Integer retentionPeriodInDays)
Backup retention period in days.- Parameters:
retentionPeriodInDays- the value to set- Returns:
- this builder
-
backupSizeInGBs
public OciCacheBackup.Builder backupSizeInGBs(Float backupSizeInGBs)
Backup size in GB.- Parameters:
backupSizeInGBs- the value to set- Returns:
- this builder
-
sourceClusterId
public OciCacheBackup.Builder sourceClusterId(String sourceClusterId)
The source OCI Cache Cluster OCID.- Parameters:
sourceClusterId- the value to set- Returns:
- this builder
-
clusterMode
public OciCacheBackup.Builder clusterMode(RedisCluster.ClusterMode clusterMode)
Specifies whether the cluster is sharded or non-sharded.- Parameters:
clusterMode- the value to set- Returns:
- this builder
-
clusterMemoryInGBs
public OciCacheBackup.Builder clusterMemoryInGBs(Float clusterMemoryInGBs)
The amount of memory allocated to the cluster, in gigabytes.- Parameters:
clusterMemoryInGBs- the value to set- Returns:
- this builder
-
shardCount
public OciCacheBackup.Builder shardCount(Integer shardCount)
The number of shards in a sharded cluster.Only applicable when clusterMode is SHARDED.
- Parameters:
shardCount- the value to set- Returns:
- this builder
-
softwareVersion
public OciCacheBackup.Builder softwareVersion(RedisCluster.SoftwareVersion softwareVersion)
The OCI Cache engine version that the cluster is running.- Parameters:
softwareVersion- the value to set- Returns:
- this builder
-
timeCreated
public OciCacheBackup.Builder timeCreated(Date timeCreated)
The date and time the backup was created.An RFC3339 formatted datetime string.
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public OciCacheBackup.Builder timeUpdated(Date timeUpdated)
The date and time the backup was updated.An RFC3339 formatted datetime string.
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
backupType
public OciCacheBackup.Builder backupType(OciCacheBackup.BackupType backupType)
Backup Type.- Parameters:
backupType- the value to set- Returns:
- this builder
-
freeformTags
public OciCacheBackup.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public OciCacheBackup.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
systemTags
public OciCacheBackup.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public OciCacheBackup build()
-
copy
public OciCacheBackup.Builder copy(OciCacheBackup model)
-
-