public static final class BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails.Builder extends GeneratedMessage.Builder<BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails.Builder> implements BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetailsOrBuilderRetentionPolicyDetails defines a Backup retention policy for a BackupPlan.
Protobuf type
google.cloud.gkebackup.v1.BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails build()| Returns | |
|---|---|
| Type | Description |
BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails |
|
buildPartial()
public BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails buildPartial()| Returns | |
|---|---|
| Type | Description |
BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails |
|
clear()
public BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails.Builder clear()| Returns | |
|---|---|
| Type | Description |
BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails.Builder |
|
clearBackupDeleteLockDays()
public BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails.Builder clearBackupDeleteLockDays()Optional. Minimum age for Backups created via this BackupPlan (in days). This field MUST be an integer value between 0-90 (inclusive). A Backup created under this BackupPlan will NOT be deletable until it reaches Backup's (create_time + backup_delete_lock_days). Updating this field of a BackupPlan does NOT affect existing Backups under it. Backups created AFTER a successful update will inherit the new value.
Default: 0 (no delete blocking)
int32 backup_delete_lock_days = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails.Builder |
This builder for chaining. |
clearBackupRetainDays()
public BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails.Builder clearBackupRetainDays()Optional. The default maximum age of a Backup created via this BackupPlan. This field MUST be an integer value >= 0 and <= 365. If specified, a Backup created under this BackupPlan will be automatically deleted after its age reaches (create_time + backup_retain_days). If not specified, Backups created under this BackupPlan will NOT be subject to automatic deletion. Default: 0 (no automatic deletion)
int32 backup_retain_days = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails.Builder |
This builder for chaining. |
getBackupDeleteLockDays()
public int getBackupDeleteLockDays()Optional. Minimum age for Backups created via this BackupPlan (in days). This field MUST be an integer value between 0-90 (inclusive). A Backup created under this BackupPlan will NOT be deletable until it reaches Backup's (create_time + backup_delete_lock_days). Updating this field of a BackupPlan does NOT affect existing Backups under it. Backups created AFTER a successful update will inherit the new value.
Default: 0 (no delete blocking)
int32 backup_delete_lock_days = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The backupDeleteLockDays. |
getBackupRetainDays()
public int getBackupRetainDays()Optional. The default maximum age of a Backup created via this BackupPlan. This field MUST be an integer value >= 0 and <= 365. If specified, a Backup created under this BackupPlan will be automatically deleted after its age reaches (create_time + backup_retain_days). If not specified, Backups created under this BackupPlan will NOT be subject to automatic deletion. Default: 0 (no automatic deletion)
int32 backup_retain_days = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The backupRetainDays. |
getDefaultInstanceForType()
public BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails other)
public BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails.Builder mergeFrom(BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails other)| Parameter | |
|---|---|
| Name | Description |
other |
BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails |
| Returns | |
|---|---|
| Type | Description |
BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails.Builder |
|
setBackupDeleteLockDays(int value)
public BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails.Builder setBackupDeleteLockDays(int value)Optional. Minimum age for Backups created via this BackupPlan (in days). This field MUST be an integer value between 0-90 (inclusive). A Backup created under this BackupPlan will NOT be deletable until it reaches Backup's (create_time + backup_delete_lock_days). Updating this field of a BackupPlan does NOT affect existing Backups under it. Backups created AFTER a successful update will inherit the new value.
Default: 0 (no delete blocking)
int32 backup_delete_lock_days = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe backupDeleteLockDays to set. |
| Returns | |
|---|---|
| Type | Description |
BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails.Builder |
This builder for chaining. |
setBackupRetainDays(int value)
public BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails.Builder setBackupRetainDays(int value)Optional. The default maximum age of a Backup created via this BackupPlan. This field MUST be an integer value >= 0 and <= 365. If specified, a Backup created under this BackupPlan will be automatically deleted after its age reaches (create_time + backup_retain_days). If not specified, Backups created under this BackupPlan will NOT be subject to automatic deletion. Default: 0 (no automatic deletion)
int32 backup_retain_days = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe backupRetainDays to set. |
| Returns | |
|---|---|
| Type | Description |
BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails.Builder |
This builder for chaining. |