@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableBackupPolicy extends Object implements BackupPolicy
BackupPolicy.
Use the builder to create immutable instances:
ImmutableBackupPolicy.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableBackupPolicy.Builder
Builds instances of type
ImmutableBackupPolicy. |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<BlackoutPeriod> |
blackoutPeriods()
Array of Blackout Periods.
|
static ImmutableBackupPolicy.Builder |
builder()
Creates a builder for
ImmutableBackupPolicy. |
CompanyId |
companyId()
Associated company ID.
|
static ImmutableBackupPolicy |
copyOf(BackupPolicy instance)
Creates an immutable copy of a
BackupPolicy value. |
long |
daysToKeep()
Specifies how many days to retain Snapshots on the Cohesity Cluster.
|
Optional<Long> |
daysToKeepLog()
Specifies the number of days to retain log run if Log Schedule exists.
|
Optional<Long> |
daysToKeepSystem()
Specifies the number of days to retain BMR snapshots if System Schedule
exists.
|
Optional<String> |
description()
Description of the Protection Policy.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableBackupPolicy that have equal attribute values. |
com.google.common.collect.ImmutableList<ExtendedRetentionPolicy> |
extendedRetentionPolicies()
Specifies additional retention policies that should be applied to the
backup snapshots.
|
Optional<SchedulingPolicy> |
fullSchedulingPolicy()
Specifies the Full (no CBT) backup schedule of a Protection backup group
and how long Snapshots captured by this schedule are retained on the
Cohesity Cluster.
|
int |
hashCode()
Computes a hash code from attributes:
blackoutPeriods, daysToKeep, daysToKeepLog, daysToKeepSystem, description, extendedRetentionPolicies, fullSchedulingPolicy, uid, incrementalSchedulingPolicy, lastModifiedTime, logSchedulingPolicy, systemSchedulingPolicy, name, retries, retryIntervalMins, skipIntervalMins, snapshotArchivalCopyPolicies, snapshotReplicationCopyPolicies, scopeType, locationId, companyId, orgUuid, vdcUuid. |
SchedulingPolicy |
incrementalSchedulingPolicy()
Specifies the CBT-based backup schedule of a Protection backup group and
how long Snapshots captured by this schedule are retained on the Cohesity
Cluster.
|
Optional<Instant> |
lastModifiedTime()
Specifies the time that the policy was last modified.
|
LocationId |
locationId()
Associated datacenter location ID.
|
Optional<SchedulingPolicy> |
logSchedulingPolicy()
Specifies settings that define a backup schedule for a Protection backup
group.
|
String |
name()
Specifies the name of the Protection Policy.
|
OrgUuid |
orgUuid()
Associated org UUID.
|
int |
retries()
Specifies the number of times to retry capturing Snapshots before the
backup group Run fails.
|
int |
retryIntervalMins()
Specifies the number of minutes before retrying a failed Protection backup
group.
|
BackupPolicyScopeType |
scopeType()
The scope type of the backup policy.
|
Optional<Integer> |
skipIntervalMins()
Specifies the period of time before skipping the execution of new backup
group Runs if an existing queued backup group Run of the same Protection
backup group has not started.
|
com.google.common.collect.ImmutableList<SnapshotArchivalCopyPolicy> |
snapshotArchivalCopyPolicies()
Array of External Targets.
|
com.google.common.collect.ImmutableList<SnapshotReplicationCopyPolicy> |
snapshotReplicationCopyPolicies()
Array of Remote Clusters.
|
Optional<SchedulingPolicy> |
systemSchedulingPolicy()
Specifies the backup schedule of a BMR, or Bare Metal Recovery,
VCloudProtectionJob and how long Snapshots captured by this schedule are
retained.
|
String |
toString()
Prints the immutable value
BackupPolicy with attribute values. |
PolicyUid |
uid()
Specifies a unique Policy UID assigned by the Cohesity Cluster.
|
Optional<VdcUuid> |
vdcUuid()
Associated vDC UUID, if applicable.
|
ImmutableBackupPolicy |
withBlackoutPeriods(BlackoutPeriod... elements)
Copy the current immutable object with elements that replace the content of
blackoutPeriods. |
ImmutableBackupPolicy |
withBlackoutPeriods(Iterable<? extends BlackoutPeriod> elements)
Copy the current immutable object with elements that replace the content of
blackoutPeriods. |
ImmutableBackupPolicy |
withCompanyId(CompanyId value)
Copy the current immutable object by setting a value for the
companyId attribute. |
ImmutableBackupPolicy |
withDaysToKeep(long value)
Copy the current immutable object by setting a value for the
daysToKeep attribute. |
ImmutableBackupPolicy |
withDaysToKeepLog(long value)
Copy the current immutable object by setting a present value for the optional
daysToKeepLog attribute. |
ImmutableBackupPolicy |
withDaysToKeepLog(Optional<Long> optional)
Copy the current immutable object by setting an optional value for the
daysToKeepLog attribute. |
ImmutableBackupPolicy |
withDaysToKeepSystem(long value)
Copy the current immutable object by setting a present value for the optional
daysToKeepSystem attribute. |
ImmutableBackupPolicy |
withDaysToKeepSystem(Optional<Long> optional)
Copy the current immutable object by setting an optional value for the
daysToKeepSystem attribute. |
ImmutableBackupPolicy |
withDescription(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
description attribute. |
ImmutableBackupPolicy |
withDescription(String value)
Copy the current immutable object by setting a present value for the optional
description attribute. |
ImmutableBackupPolicy |
withExtendedRetentionPolicies(ExtendedRetentionPolicy... elements)
Copy the current immutable object with elements that replace the content of
extendedRetentionPolicies. |
ImmutableBackupPolicy |
withExtendedRetentionPolicies(Iterable<? extends ExtendedRetentionPolicy> elements)
Copy the current immutable object with elements that replace the content of
extendedRetentionPolicies. |
ImmutableBackupPolicy |
withFullSchedulingPolicy(Optional<? extends SchedulingPolicy> optional)
Copy the current immutable object by setting an optional value for the
fullSchedulingPolicy attribute. |
ImmutableBackupPolicy |
withFullSchedulingPolicy(SchedulingPolicy value)
Copy the current immutable object by setting a present value for the optional
fullSchedulingPolicy attribute. |
ImmutableBackupPolicy |
withIncrementalSchedulingPolicy(SchedulingPolicy value)
Copy the current immutable object by setting a value for the
incrementalSchedulingPolicy attribute. |
ImmutableBackupPolicy |
withLastModifiedTime(Instant value)
Copy the current immutable object by setting a present value for the optional
lastModifiedTime attribute. |
ImmutableBackupPolicy |
withLastModifiedTime(Optional<? extends Instant> optional)
Copy the current immutable object by setting an optional value for the
lastModifiedTime attribute. |
ImmutableBackupPolicy |
withLocationId(LocationId value)
Copy the current immutable object by setting a value for the
locationId attribute. |
ImmutableBackupPolicy |
withLogSchedulingPolicy(Optional<? extends SchedulingPolicy> optional)
Copy the current immutable object by setting an optional value for the
logSchedulingPolicy attribute. |
ImmutableBackupPolicy |
withLogSchedulingPolicy(SchedulingPolicy value)
Copy the current immutable object by setting a present value for the optional
logSchedulingPolicy attribute. |
ImmutableBackupPolicy |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableBackupPolicy |
withOrgUuid(OrgUuid value)
Copy the current immutable object by setting a value for the
orgUuid attribute. |
ImmutableBackupPolicy |
withRetries(int value)
Copy the current immutable object by setting a value for the
retries attribute. |
ImmutableBackupPolicy |
withRetryIntervalMins(int value)
Copy the current immutable object by setting a value for the
retryIntervalMins attribute. |
ImmutableBackupPolicy |
withScopeType(BackupPolicyScopeType value)
Copy the current immutable object by setting a value for the
scopeType attribute. |
ImmutableBackupPolicy |
withSkipIntervalMins(int value)
Copy the current immutable object by setting a present value for the optional
skipIntervalMins attribute. |
ImmutableBackupPolicy |
withSkipIntervalMins(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
skipIntervalMins attribute. |
ImmutableBackupPolicy |
withSnapshotArchivalCopyPolicies(Iterable<? extends SnapshotArchivalCopyPolicy> elements)
Copy the current immutable object with elements that replace the content of
snapshotArchivalCopyPolicies. |
ImmutableBackupPolicy |
withSnapshotArchivalCopyPolicies(SnapshotArchivalCopyPolicy... elements)
Copy the current immutable object with elements that replace the content of
snapshotArchivalCopyPolicies. |
ImmutableBackupPolicy |
withSnapshotReplicationCopyPolicies(Iterable<? extends SnapshotReplicationCopyPolicy> elements)
Copy the current immutable object with elements that replace the content of
snapshotReplicationCopyPolicies. |
ImmutableBackupPolicy |
withSnapshotReplicationCopyPolicies(SnapshotReplicationCopyPolicy... elements)
Copy the current immutable object with elements that replace the content of
snapshotReplicationCopyPolicies. |
ImmutableBackupPolicy |
withSystemSchedulingPolicy(Optional<? extends SchedulingPolicy> optional)
Copy the current immutable object by setting an optional value for the
systemSchedulingPolicy attribute. |
ImmutableBackupPolicy |
withSystemSchedulingPolicy(SchedulingPolicy value)
Copy the current immutable object by setting a present value for the optional
systemSchedulingPolicy attribute. |
ImmutableBackupPolicy |
withUid(PolicyUid value)
Copy the current immutable object by setting a value for the
uid attribute. |
ImmutableBackupPolicy |
withVdcUuid(Optional<? extends VdcUuid> optional)
Copy the current immutable object by setting an optional value for the
vdcUuid attribute. |
ImmutableBackupPolicy |
withVdcUuid(VdcUuid value)
Copy the current immutable object by setting a present value for the optional
vdcUuid attribute. |
public com.google.common.collect.ImmutableList<BlackoutPeriod> blackoutPeriods()
If specified, this field defines black periods when new backup group Runs are not started. If a backup group Run has been scheduled but not yet executed and the blackout period starts, the behavior depends on the policy field AbortInBlackoutPeriod.
blackoutPeriods in interface BackupPolicypublic long daysToKeep()
daysToKeep in interface BackupPolicypublic Optional<Long> daysToKeepLog()
daysToKeepLog in interface BackupPolicypublic Optional<Long> daysToKeepSystem()
daysToKeepSystem in interface BackupPolicypublic Optional<String> description()
description in interface BackupPolicypublic com.google.common.collect.ImmutableList<ExtendedRetentionPolicy> extendedRetentionPolicies()
extendedRetentionPolicies in interface BackupPolicypublic Optional<SchedulingPolicy> fullSchedulingPolicy()
fullSchedulingPolicy in interface BackupPolicypublic PolicyUid uid()
uid in interface BackupPolicypublic SchedulingPolicy incrementalSchedulingPolicy()
incrementalSchedulingPolicy in interface BackupPolicypublic Optional<Instant> lastModifiedTime()
lastModifiedTime in interface BackupPolicypublic Optional<SchedulingPolicy> logSchedulingPolicy()
logSchedulingPolicy in interface BackupPolicypublic Optional<SchedulingPolicy> systemSchedulingPolicy()
systemSchedulingPolicy in interface BackupPolicypublic String name()
name in interface BackupPolicypublic int retries()
retries in interface BackupPolicypublic int retryIntervalMins()
retryIntervalMins in interface BackupPolicypublic Optional<Integer> skipIntervalMins()
skipIntervalMins in interface BackupPolicypublic com.google.common.collect.ImmutableList<SnapshotArchivalCopyPolicy> snapshotArchivalCopyPolicies()
Specifies settings for copying Snapshots to Archival External Targets (such as AWS or Tape). It also defines the retention of copied Snapshots on an External Targets such as AWS and Tape.
snapshotArchivalCopyPolicies in interface BackupPolicypublic com.google.common.collect.ImmutableList<SnapshotReplicationCopyPolicy> snapshotReplicationCopyPolicies()
Specifies settings for copying Snapshots to Remote Clusters. It also defines the retention of copied Snapshots on a Remote Cluster.
snapshotReplicationCopyPolicies in interface BackupPolicypublic BackupPolicyScopeType scopeType()
scopeType in interface BackupPolicyBackupPolicyScopeTypepublic LocationId locationId()
locationId in interface BackupPolicyLocationIdpublic CompanyId companyId()
companyId in interface BackupPolicyCompanyIdpublic OrgUuid orgUuid()
orgUuid in interface BackupPolicyOrgUuidpublic Optional<VdcUuid> vdcUuid()
BackupPolicy.scopeType() is BackupPolicyScopeType.ORG.vdcUuid in interface BackupPolicyOptional of VdcUuidpublic final ImmutableBackupPolicy withBlackoutPeriods(BlackoutPeriod... elements)
blackoutPeriods.elements - The elements to setthis objectpublic final ImmutableBackupPolicy withBlackoutPeriods(Iterable<? extends BlackoutPeriod> elements)
blackoutPeriods.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of blackoutPeriods elements to setthis objectpublic final ImmutableBackupPolicy withDaysToKeep(long value)
daysToKeep attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for daysToKeepthis objectpublic final ImmutableBackupPolicy withDaysToKeepLog(long value)
daysToKeepLog attribute.value - The value for daysToKeepLogthis objectpublic final ImmutableBackupPolicy withDaysToKeepLog(Optional<Long> optional)
daysToKeepLog attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for daysToKeepLogthis objectpublic final ImmutableBackupPolicy withDaysToKeepSystem(long value)
daysToKeepSystem attribute.value - The value for daysToKeepSystemthis objectpublic final ImmutableBackupPolicy withDaysToKeepSystem(Optional<Long> optional)
daysToKeepSystem attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for daysToKeepSystemthis objectpublic final ImmutableBackupPolicy withDescription(String value)
description attribute.value - The value for descriptionthis objectpublic final ImmutableBackupPolicy withDescription(Optional<String> optional)
description attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for descriptionthis objectpublic final ImmutableBackupPolicy withExtendedRetentionPolicies(ExtendedRetentionPolicy... elements)
extendedRetentionPolicies.elements - The elements to setthis objectpublic final ImmutableBackupPolicy withExtendedRetentionPolicies(Iterable<? extends ExtendedRetentionPolicy> elements)
extendedRetentionPolicies.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of extendedRetentionPolicies elements to setthis objectpublic final ImmutableBackupPolicy withFullSchedulingPolicy(SchedulingPolicy value)
fullSchedulingPolicy attribute.value - The value for fullSchedulingPolicythis objectpublic final ImmutableBackupPolicy withFullSchedulingPolicy(Optional<? extends SchedulingPolicy> optional)
fullSchedulingPolicy attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for fullSchedulingPolicythis objectpublic final ImmutableBackupPolicy withUid(PolicyUid value)
uid attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for uidthis objectpublic final ImmutableBackupPolicy withIncrementalSchedulingPolicy(SchedulingPolicy value)
incrementalSchedulingPolicy attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for incrementalSchedulingPolicythis objectpublic final ImmutableBackupPolicy withLastModifiedTime(Instant value)
lastModifiedTime attribute.value - The value for lastModifiedTimethis objectpublic final ImmutableBackupPolicy withLastModifiedTime(Optional<? extends Instant> optional)
lastModifiedTime attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for lastModifiedTimethis objectpublic final ImmutableBackupPolicy withLogSchedulingPolicy(SchedulingPolicy value)
logSchedulingPolicy attribute.value - The value for logSchedulingPolicythis objectpublic final ImmutableBackupPolicy withLogSchedulingPolicy(Optional<? extends SchedulingPolicy> optional)
logSchedulingPolicy attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for logSchedulingPolicythis objectpublic final ImmutableBackupPolicy withSystemSchedulingPolicy(SchedulingPolicy value)
systemSchedulingPolicy attribute.value - The value for systemSchedulingPolicythis objectpublic final ImmutableBackupPolicy withSystemSchedulingPolicy(Optional<? extends SchedulingPolicy> optional)
systemSchedulingPolicy attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for systemSchedulingPolicythis objectpublic final ImmutableBackupPolicy withName(String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for namethis objectpublic final ImmutableBackupPolicy withRetries(int value)
retries attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for retriesthis objectpublic final ImmutableBackupPolicy withRetryIntervalMins(int value)
retryIntervalMins attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for retryIntervalMinsthis objectpublic final ImmutableBackupPolicy withSkipIntervalMins(int value)
skipIntervalMins attribute.value - The value for skipIntervalMinsthis objectpublic final ImmutableBackupPolicy withSkipIntervalMins(Optional<Integer> optional)
skipIntervalMins attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for skipIntervalMinsthis objectpublic final ImmutableBackupPolicy withSnapshotArchivalCopyPolicies(SnapshotArchivalCopyPolicy... elements)
snapshotArchivalCopyPolicies.elements - The elements to setthis objectpublic final ImmutableBackupPolicy withSnapshotArchivalCopyPolicies(Iterable<? extends SnapshotArchivalCopyPolicy> elements)
snapshotArchivalCopyPolicies.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of snapshotArchivalCopyPolicies elements to setthis objectpublic final ImmutableBackupPolicy withSnapshotReplicationCopyPolicies(SnapshotReplicationCopyPolicy... elements)
snapshotReplicationCopyPolicies.elements - The elements to setthis objectpublic final ImmutableBackupPolicy withSnapshotReplicationCopyPolicies(Iterable<? extends SnapshotReplicationCopyPolicy> elements)
snapshotReplicationCopyPolicies.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of snapshotReplicationCopyPolicies elements to setthis objectpublic final ImmutableBackupPolicy withScopeType(BackupPolicyScopeType value)
scopeType attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for scopeTypethis objectpublic final ImmutableBackupPolicy withLocationId(LocationId value)
locationId attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for locationIdthis objectpublic final ImmutableBackupPolicy withCompanyId(CompanyId value)
companyId attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for companyIdthis objectpublic final ImmutableBackupPolicy withOrgUuid(OrgUuid value)
orgUuid attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for orgUuidthis objectpublic final ImmutableBackupPolicy withVdcUuid(VdcUuid value)
vdcUuid attribute.value - The value for vdcUuidthis objectpublic final ImmutableBackupPolicy withVdcUuid(Optional<? extends VdcUuid> optional)
vdcUuid attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for vdcUuidthis objectpublic boolean equals(@Nullable Object another)
ImmutableBackupPolicy that have equal attribute values.public int hashCode()
blackoutPeriods, daysToKeep, daysToKeepLog, daysToKeepSystem, description, extendedRetentionPolicies, fullSchedulingPolicy, uid, incrementalSchedulingPolicy, lastModifiedTime, logSchedulingPolicy, systemSchedulingPolicy, name, retries, retryIntervalMins, skipIntervalMins, snapshotArchivalCopyPolicies, snapshotReplicationCopyPolicies, scopeType, locationId, companyId, orgUuid, vdcUuid.public String toString()
BackupPolicy with attribute values.public static ImmutableBackupPolicy copyOf(BackupPolicy instance)
BackupPolicy value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableBackupPolicy.Builder builder()
ImmutableBackupPolicy.
ImmutableBackupPolicy.builder()
.addBlackoutPeriods|addAllBlackoutPeriods(com.iland.cohesity.iaas.backups.policies.api.model.BlackoutPeriod) // blackoutPeriods elements
.daysToKeep(long) // required daysToKeep
.daysToKeepLog(Long) // optional daysToKeepLog
.daysToKeepSystem(Long) // optional daysToKeepSystem
.description(String) // optional description
.addExtendedRetentionPolicies|addAllExtendedRetentionPolicies(com.iland.cohesity.iaas.backups.policies.api.model.ExtendedRetentionPolicy) // extendedRetentionPolicies elements
.fullSchedulingPolicy(com.iland.cohesity.iaas.backups.policies.api.model.SchedulingPolicy) // optional fullSchedulingPolicy
.uid(com.iland.cohesity.iaas.backups.common.model.PolicyUid) // required uid
.incrementalSchedulingPolicy(com.iland.cohesity.iaas.backups.policies.api.model.SchedulingPolicy) // required incrementalSchedulingPolicy
.lastModifiedTime(java.time.Instant) // optional lastModifiedTime
.logSchedulingPolicy(com.iland.cohesity.iaas.backups.policies.api.model.SchedulingPolicy) // optional logSchedulingPolicy
.systemSchedulingPolicy(com.iland.cohesity.iaas.backups.policies.api.model.SchedulingPolicy) // optional systemSchedulingPolicy
.name(String) // required name
.retries(int) // required retries
.retryIntervalMins(int) // required retryIntervalMins
.skipIntervalMins(Integer) // optional skipIntervalMins
.addSnapshotArchivalCopyPolicies|addAllSnapshotArchivalCopyPolicies(com.iland.cohesity.iaas.backups.policies.api.model.SnapshotArchivalCopyPolicy) // snapshotArchivalCopyPolicies elements
.addSnapshotReplicationCopyPolicies|addAllSnapshotReplicationCopyPolicies(com.iland.cohesity.iaas.backups.policies.api.model.SnapshotReplicationCopyPolicy) // snapshotReplicationCopyPolicies elements
.scopeType(com.iland.cohesity.iaas.backups.common.enums.BackupPolicyScopeType) // required scopeType
.locationId(com.iland.cohesity.iaas.backups.common.model.LocationId) // required locationId
.companyId(com.iland.cohesity.iaas.backups.common.model.CompanyId) // required companyId
.orgUuid(com.iland.cohesity.iaas.backups.common.model.OrgUuid) // required orgUuid
.vdcUuid(com.iland.cohesity.iaas.backups.common.model.VdcUuid) // optional vdcUuid
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.