@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableSnapshotArchivalCopyPolicy extends Object implements SnapshotArchivalCopyPolicy
SnapshotArchivalCopyPolicy.
Use the builder to create immutable instances:
ImmutableSnapshotArchivalCopyPolicy.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableSnapshotArchivalCopyPolicy.Builder
Builds instances of type
ImmutableSnapshotArchivalCopyPolicy. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableSnapshotArchivalCopyPolicy.Builder |
builder()
Creates a builder for
ImmutableSnapshotArchivalCopyPolicy. |
static ImmutableSnapshotArchivalCopyPolicy |
copyOf(SnapshotArchivalCopyPolicy instance)
Creates an immutable copy of a
SnapshotArchivalCopyPolicy value. |
boolean |
copyPartial()
Specifies if Snapshots are copied from the first completely successful
backup group Run or the first partially successful backup group Run
occurring at the start of the replication schedule.
|
long |
daysToKeep()
Specifies the number of days to retain copied Snapshots on the target.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableSnapshotArchivalCopyPolicy that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
copyPartial, daysToKeep, multiplier, periodicity, target. |
int |
multiplier()
Specifies a factor to multiply the periodicity by, to determine the copy
schedule.
|
ReplicationPeriodicity |
periodicity()
Specifies the frequency that Snapshots should be copied to the specified
target.
|
ArchivalExternalTarget |
target()
Specifies the archival target to copy the Snapshots to.
|
String |
toString()
Prints the immutable value
SnapshotArchivalCopyPolicy with attribute values. |
ImmutableSnapshotArchivalCopyPolicy |
withCopyPartial(boolean value)
Copy the current immutable object by setting a value for the
copyPartial attribute. |
ImmutableSnapshotArchivalCopyPolicy |
withDaysToKeep(long value)
Copy the current immutable object by setting a value for the
daysToKeep attribute. |
ImmutableSnapshotArchivalCopyPolicy |
withMultiplier(int value)
Copy the current immutable object by setting a value for the
multiplier attribute. |
ImmutableSnapshotArchivalCopyPolicy |
withPeriodicity(ReplicationPeriodicity value)
Copy the current immutable object by setting a value for the
periodicity attribute. |
ImmutableSnapshotArchivalCopyPolicy |
withTarget(ArchivalExternalTarget value)
Copy the current immutable object by setting a value for the
target attribute. |
public boolean copyPartial()
copyPartial in interface SnapshotArchivalCopyPolicypublic long daysToKeep()
daysToKeep in interface SnapshotArchivalCopyPolicypublic int multiplier()
multiplier in interface SnapshotArchivalCopyPolicypublic ReplicationPeriodicity periodicity()
periodicity in interface SnapshotArchivalCopyPolicypublic ArchivalExternalTarget target()
target in interface SnapshotArchivalCopyPolicypublic final ImmutableSnapshotArchivalCopyPolicy withCopyPartial(boolean value)
copyPartial attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for copyPartialthis objectpublic final ImmutableSnapshotArchivalCopyPolicy 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 ImmutableSnapshotArchivalCopyPolicy withMultiplier(int value)
multiplier attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for multiplierthis objectpublic final ImmutableSnapshotArchivalCopyPolicy withPeriodicity(ReplicationPeriodicity value)
periodicity attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for periodicitythis objectpublic final ImmutableSnapshotArchivalCopyPolicy withTarget(ArchivalExternalTarget value)
target attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for targetthis objectpublic boolean equals(@Nullable Object another)
ImmutableSnapshotArchivalCopyPolicy that have equal attribute values.public int hashCode()
copyPartial, daysToKeep, multiplier, periodicity, target.public String toString()
SnapshotArchivalCopyPolicy with attribute values.public static ImmutableSnapshotArchivalCopyPolicy copyOf(SnapshotArchivalCopyPolicy instance)
SnapshotArchivalCopyPolicy 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 ImmutableSnapshotArchivalCopyPolicy.Builder builder()
ImmutableSnapshotArchivalCopyPolicy.
ImmutableSnapshotArchivalCopyPolicy.builder()
.copyPartial(boolean) // required copyPartial
.daysToKeep(long) // required daysToKeep
.multiplier(int) // required multiplier
.periodicity(com.iland.cohesity.iaas.backups.policies.api.enums.ReplicationPeriodicity) // required periodicity
.target(com.iland.cohesity.iaas.backups.common.model.ArchivalExternalTarget) // required target
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.