@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableExtendedRetentionPolicy extends Object implements ExtendedRetentionPolicy
ExtendedRetentionPolicy
.
Use the builder to create immutable instances:
ImmutableExtendedRetentionPolicy.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableExtendedRetentionPolicy.Builder
Builds instances of type
ImmutableExtendedRetentionPolicy . |
Modifier and Type | Method and Description |
---|---|
Optional<RunType> |
backupRunType()
Specifies the type of the backup run.
|
static ImmutableExtendedRetentionPolicy.Builder |
builder()
Creates a builder for
ImmutableExtendedRetentionPolicy . |
static ImmutableExtendedRetentionPolicy |
copyOf(ExtendedRetentionPolicy instance)
Creates an immutable copy of a
ExtendedRetentionPolicy value. |
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
ImmutableExtendedRetentionPolicy that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
backupRunType , daysToKeep , multiplier , periodicity . |
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.
|
String |
toString()
Prints the immutable value
ExtendedRetentionPolicy with attribute values. |
ImmutableExtendedRetentionPolicy |
withBackupRunType(Optional<? extends RunType> optional)
Copy the current immutable object by setting an optional value for the
backupRunType attribute. |
ImmutableExtendedRetentionPolicy |
withBackupRunType(RunType value)
Copy the current immutable object by setting a present value for the optional
backupRunType attribute. |
ImmutableExtendedRetentionPolicy |
withDaysToKeep(long value)
Copy the current immutable object by setting a value for the
daysToKeep attribute. |
ImmutableExtendedRetentionPolicy |
withMultiplier(int value)
Copy the current immutable object by setting a value for the
multiplier attribute. |
ImmutableExtendedRetentionPolicy |
withPeriodicity(ReplicationPeriodicity value)
Copy the current immutable object by setting a value for the
periodicity attribute. |
public Optional<RunType> backupRunType()
backupRunType
in interface ExtendedRetentionPolicy
public long daysToKeep()
daysToKeep
in interface ExtendedRetentionPolicy
public int multiplier()
multiplier
in interface ExtendedRetentionPolicy
public ReplicationPeriodicity periodicity()
periodicity
in interface ExtendedRetentionPolicy
public final ImmutableExtendedRetentionPolicy withBackupRunType(RunType value)
backupRunType
attribute.value
- The value for backupRunTypethis
objectpublic final ImmutableExtendedRetentionPolicy withBackupRunType(Optional<? extends RunType> optional)
backupRunType
attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this
.optional
- A value for backupRunTypethis
objectpublic final ImmutableExtendedRetentionPolicy 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 ImmutableExtendedRetentionPolicy 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 ImmutableExtendedRetentionPolicy 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 boolean equals(@Nullable Object another)
ImmutableExtendedRetentionPolicy
that have equal attribute values.public int hashCode()
backupRunType
, daysToKeep
, multiplier
, periodicity
.public String toString()
ExtendedRetentionPolicy
with attribute values.public static ImmutableExtendedRetentionPolicy copyOf(ExtendedRetentionPolicy instance)
ExtendedRetentionPolicy
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 ImmutableExtendedRetentionPolicy.Builder builder()
ImmutableExtendedRetentionPolicy
.
ImmutableExtendedRetentionPolicy.builder() .backupRunType(com.iland.cohesity.iaas.backups.common.enums.RunType) // optionalbackupRunType
.daysToKeep(long) // requireddaysToKeep
.multiplier(int) // requiredmultiplier
.periodicity(com.iland.cohesity.iaas.backups.policies.api.enums.ReplicationPeriodicity) // requiredperiodicity
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.