public static final class BackupRule.Builder extends GeneratedMessage.Builder<BackupRule.Builder> implements BackupRuleOrBuilder BackupRule binds the backup schedule to a retention policy.
Protobuf type google.cloud.backupdr.v1.BackupRule
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BackupRule.BuilderImplements
BackupRuleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public BackupRule build()| Returns | |
|---|---|
| Type | Description |
BackupRule |
|
buildPartial()
public BackupRule buildPartial()| Returns | |
|---|---|
| Type | Description |
BackupRule |
|
clear()
public BackupRule.Builder clear()| Returns | |
|---|---|
| Type | Description |
BackupRule.Builder |
|
clearBackupRetentionDays()
public BackupRule.Builder clearBackupRetentionDays()Required. Configures the duration for which backup data will be kept. It is defined in “days”. The value should be greater than or equal to minimum enforced retention of the backup vault.
Minimum value is 1 and maximum value is 36159 for custom retention on-demand backup. Minimum and maximum values are workload specific for all other rules.
int32 backup_retention_days = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
BackupRule.Builder |
This builder for chaining. |
clearBackupScheduleOneof()
public BackupRule.Builder clearBackupScheduleOneof()| Returns | |
|---|---|
| Type | Description |
BackupRule.Builder |
|
clearRuleId()
public BackupRule.Builder clearRuleId() Required. Immutable. The unique id of this BackupRule. The rule_id is
unique per BackupPlan.The rule_id must start with a lowercase letter
followed by up to 62 lowercase letters, numbers, or hyphens. Pattern,
/a-z{,62}/.
string rule_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
BackupRule.Builder |
This builder for chaining. |
clearStandardSchedule()
public BackupRule.Builder clearStandardSchedule()Optional. Defines a schedule that runs within the confines of a defined window of time.
.google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BackupRule.Builder |
|
getBackupRetentionDays()
public int getBackupRetentionDays()Required. Configures the duration for which backup data will be kept. It is defined in “days”. The value should be greater than or equal to minimum enforced retention of the backup vault.
Minimum value is 1 and maximum value is 36159 for custom retention on-demand backup. Minimum and maximum values are workload specific for all other rules.
int32 backup_retention_days = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The backupRetentionDays. |
getBackupScheduleOneofCase()
public BackupRule.BackupScheduleOneofCase getBackupScheduleOneofCase()| Returns | |
|---|---|
| Type | Description |
BackupRule.BackupScheduleOneofCase |
|
getDefaultInstanceForType()
public BackupRule getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BackupRule |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getRuleId()
public String getRuleId() Required. Immutable. The unique id of this BackupRule. The rule_id is
unique per BackupPlan.The rule_id must start with a lowercase letter
followed by up to 62 lowercase letters, numbers, or hyphens. Pattern,
/a-z{,62}/.
string rule_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
String |
The ruleId. |
getRuleIdBytes()
public ByteString getRuleIdBytes() Required. Immutable. The unique id of this BackupRule. The rule_id is
unique per BackupPlan.The rule_id must start with a lowercase letter
followed by up to 62 lowercase letters, numbers, or hyphens. Pattern,
/a-z{,62}/.
string rule_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for ruleId. |
getStandardSchedule()
public StandardSchedule getStandardSchedule()Optional. Defines a schedule that runs within the confines of a defined window of time.
.google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StandardSchedule |
The standardSchedule. |
getStandardScheduleBuilder()
public StandardSchedule.Builder getStandardScheduleBuilder()Optional. Defines a schedule that runs within the confines of a defined window of time.
.google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StandardSchedule.Builder |
|
getStandardScheduleOrBuilder()
public StandardScheduleOrBuilder getStandardScheduleOrBuilder()Optional. Defines a schedule that runs within the confines of a defined window of time.
.google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StandardScheduleOrBuilder |
|
hasStandardSchedule()
public boolean hasStandardSchedule()Optional. Defines a schedule that runs within the confines of a defined window of time.
.google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the standardSchedule field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(BackupRule other)
public BackupRule.Builder mergeFrom(BackupRule other)| Parameter | |
|---|---|
| Name | Description |
other |
BackupRule |
| Returns | |
|---|---|
| Type | Description |
BackupRule.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BackupRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BackupRule.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BackupRule.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BackupRule.Builder |
|
mergeStandardSchedule(StandardSchedule value)
public BackupRule.Builder mergeStandardSchedule(StandardSchedule value)Optional. Defines a schedule that runs within the confines of a defined window of time.
.google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StandardSchedule |
| Returns | |
|---|---|
| Type | Description |
BackupRule.Builder |
|
setBackupRetentionDays(int value)
public BackupRule.Builder setBackupRetentionDays(int value)Required. Configures the duration for which backup data will be kept. It is defined in “days”. The value should be greater than or equal to minimum enforced retention of the backup vault.
Minimum value is 1 and maximum value is 36159 for custom retention on-demand backup. Minimum and maximum values are workload specific for all other rules.
int32 backup_retention_days = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe backupRetentionDays to set. |
| Returns | |
|---|---|
| Type | Description |
BackupRule.Builder |
This builder for chaining. |
setRuleId(String value)
public BackupRule.Builder setRuleId(String value) Required. Immutable. The unique id of this BackupRule. The rule_id is
unique per BackupPlan.The rule_id must start with a lowercase letter
followed by up to 62 lowercase letters, numbers, or hyphens. Pattern,
/a-z{,62}/.
string rule_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe ruleId to set. |
| Returns | |
|---|---|
| Type | Description |
BackupRule.Builder |
This builder for chaining. |
setRuleIdBytes(ByteString value)
public BackupRule.Builder setRuleIdBytes(ByteString value) Required. Immutable. The unique id of this BackupRule. The rule_id is
unique per BackupPlan.The rule_id must start with a lowercase letter
followed by up to 62 lowercase letters, numbers, or hyphens. Pattern,
/a-z{,62}/.
string rule_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for ruleId to set. |
| Returns | |
|---|---|
| Type | Description |
BackupRule.Builder |
This builder for chaining. |
setStandardSchedule(StandardSchedule value)
public BackupRule.Builder setStandardSchedule(StandardSchedule value)Optional. Defines a schedule that runs within the confines of a defined window of time.
.google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StandardSchedule |
| Returns | |
|---|---|
| Type | Description |
BackupRule.Builder |
|
setStandardSchedule(StandardSchedule.Builder builderForValue)
public BackupRule.Builder setStandardSchedule(StandardSchedule.Builder builderForValue)Optional. Defines a schedule that runs within the confines of a defined window of time.
.google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
StandardSchedule.Builder |
| Returns | |
|---|---|
| Type | Description |
BackupRule.Builder |
|