Package com.oracle.bmc.redis.model
Class OciCacheBackupSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.redis.model.OciCacheBackupSummary.Builder
-
- Enclosing class:
- OciCacheBackupSummary
public static class OciCacheBackupSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OciCacheBackupSummary.BuilderbackupSizeInGBs(Float backupSizeInGBs)Backup size in GB.OciCacheBackupSummary.BuilderbackupSource(OciCacheBackup.BackupSource backupSource)Specifies whether the backup was created from a replica or primary nodeOciCacheBackupSummary.BuilderbackupType(OciCacheBackupSummary.BackupType backupType)Backup Type.OciCacheBackupSummarybuild()OciCacheBackupSummary.BuilderclusterMode(RedisCluster.ClusterMode clusterMode)Specifies whether the cluster is sharded or non-sharded.OciCacheBackupSummary.BuildercompartmentId(String compartmentId)Compartment identifierOciCacheBackupSummary.Buildercopy(OciCacheBackupSummary model)OciCacheBackupSummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.OciCacheBackupSummary.BuilderdisplayName(String displayName)Backup identifier, can be renamedOciCacheBackupSummary.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.OciCacheBackupSummary.Builderid(String id)Unique identifier that is immutable on creationOciCacheBackupSummary.BuilderlifecycleState(OciCacheBackup.LifecycleState lifecycleState)The current state of the backup.OciCacheBackupSummary.BuilderretentionPeriodInDays(Integer retentionPeriodInDays)Backup retention period in days.OciCacheBackupSummary.BuildersourceClusterId(String sourceClusterId)The source OCI Cache Cluster OCID.OciCacheBackupSummary.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.OciCacheBackupSummary.BuildertimeCreated(Date timeCreated)The date and time the backup was created.OciCacheBackupSummary.BuildertimeUpdated(Date timeUpdated)The date and time the backup was updated.
-
-
-
Method Detail
-
id
public OciCacheBackupSummary.Builder id(String id)
Unique identifier that is immutable on creation- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public OciCacheBackupSummary.Builder displayName(String displayName)
Backup identifier, can be renamed- Parameters:
displayName- the value to set- Returns:
- this builder
-
compartmentId
public OciCacheBackupSummary.Builder compartmentId(String compartmentId)
Compartment identifier- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
sourceClusterId
public OciCacheBackupSummary.Builder sourceClusterId(String sourceClusterId)
The source OCI Cache Cluster OCID.- Parameters:
sourceClusterId- the value to set- Returns:
- this builder
-
timeCreated
public OciCacheBackupSummary.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 OciCacheBackupSummary.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
-
lifecycleState
public OciCacheBackupSummary.Builder lifecycleState(OciCacheBackup.LifecycleState lifecycleState)
The current state of the backup.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
clusterMode
public OciCacheBackupSummary.Builder clusterMode(RedisCluster.ClusterMode clusterMode)
Specifies whether the cluster is sharded or non-sharded.- Parameters:
clusterMode- the value to set- Returns:
- this builder
-
backupSource
public OciCacheBackupSummary.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
-
retentionPeriodInDays
public OciCacheBackupSummary.Builder retentionPeriodInDays(Integer retentionPeriodInDays)
Backup retention period in days.- Parameters:
retentionPeriodInDays- the value to set- Returns:
- this builder
-
backupSizeInGBs
public OciCacheBackupSummary.Builder backupSizeInGBs(Float backupSizeInGBs)
Backup size in GB.- Parameters:
backupSizeInGBs- the value to set- Returns:
- this builder
-
backupType
public OciCacheBackupSummary.Builder backupType(OciCacheBackupSummary.BackupType backupType)
Backup Type.- Parameters:
backupType- the value to set- Returns:
- this builder
-
freeformTags
public OciCacheBackupSummary.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 OciCacheBackupSummary.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 OciCacheBackupSummary.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 OciCacheBackupSummary build()
-
copy
public OciCacheBackupSummary.Builder copy(OciCacheBackupSummary model)
-
-