@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableSnapshotReplicationCopyPolicy extends Object implements SnapshotReplicationCopyPolicy
SnapshotReplicationCopyPolicy
.
Use the builder to create immutable instances:
ImmutableSnapshotReplicationCopyPolicy.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableSnapshotReplicationCopyPolicy.Builder
Builds instances of type
ImmutableSnapshotReplicationCopyPolicy . |
Modifier and Type | Method and Description |
---|---|
static ImmutableSnapshotReplicationCopyPolicy.Builder |
builder()
Creates a builder for
ImmutableSnapshotReplicationCopyPolicy . |
static ImmutableSnapshotReplicationCopyPolicy |
copyOf(SnapshotReplicationCopyPolicy instance)
Creates an immutable copy of a
SnapshotReplicationCopyPolicy value. |
boolean |
copyPartial()
Specifies if Snapshots are copied from the first completely successful
VCloudProtectionJob Run or the first partially successful
VCloudProtectionJob 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
ImmutableSnapshotReplicationCopyPolicy 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.
|
ReplicationTargetSettings |
target()
Specifies the replication target to copy the Snapshots to.
|
String |
toString()
Prints the immutable value
SnapshotReplicationCopyPolicy with attribute values. |
ImmutableSnapshotReplicationCopyPolicy |
withCopyPartial(boolean value)
Copy the current immutable object by setting a value for the
copyPartial attribute. |
ImmutableSnapshotReplicationCopyPolicy |
withDaysToKeep(long value)
Copy the current immutable object by setting a value for the
daysToKeep attribute. |
ImmutableSnapshotReplicationCopyPolicy |
withMultiplier(int value)
Copy the current immutable object by setting a value for the
multiplier attribute. |
ImmutableSnapshotReplicationCopyPolicy |
withPeriodicity(ReplicationPeriodicity value)
Copy the current immutable object by setting a value for the
periodicity attribute. |
ImmutableSnapshotReplicationCopyPolicy |
withTarget(ReplicationTargetSettings value)
Copy the current immutable object by setting a value for the
target attribute. |
public boolean copyPartial()
copyPartial
in interface SnapshotReplicationCopyPolicy
public long daysToKeep()
daysToKeep
in interface SnapshotReplicationCopyPolicy
public int multiplier()
multiplier
in interface SnapshotReplicationCopyPolicy
public ReplicationPeriodicity periodicity()
periodicity
in interface SnapshotReplicationCopyPolicy
public ReplicationTargetSettings target()
target
in interface SnapshotReplicationCopyPolicy
public final ImmutableSnapshotReplicationCopyPolicy 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 ImmutableSnapshotReplicationCopyPolicy 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 ImmutableSnapshotReplicationCopyPolicy 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 ImmutableSnapshotReplicationCopyPolicy 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 ImmutableSnapshotReplicationCopyPolicy withTarget(ReplicationTargetSettings 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)
ImmutableSnapshotReplicationCopyPolicy
that have equal attribute values.public int hashCode()
copyPartial
, daysToKeep
, multiplier
, periodicity
, target
.public String toString()
SnapshotReplicationCopyPolicy
with attribute values.public static ImmutableSnapshotReplicationCopyPolicy copyOf(SnapshotReplicationCopyPolicy instance)
SnapshotReplicationCopyPolicy
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 ImmutableSnapshotReplicationCopyPolicy.Builder builder()
ImmutableSnapshotReplicationCopyPolicy
.
ImmutableSnapshotReplicationCopyPolicy.builder() .copyPartial(boolean) // requiredcopyPartial
.daysToKeep(long) // requireddaysToKeep
.multiplier(int) // requiredmultiplier
.periodicity(com.iland.cohesity.iaas.backups.policies.api.enums.ReplicationPeriodicity) // requiredperiodicity
.target(com.iland.cohesity.iaas.backups.common.model.ReplicationTargetSettings) // requiredtarget
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.