@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableSchedulingPolicy extends Object implements SchedulingPolicy
SchedulingPolicy
.
Use the builder to create immutable instances:
ImmutableSchedulingPolicy.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableSchedulingPolicy.Builder
Builds instances of type
ImmutableSchedulingPolicy . |
Modifier and Type | Method and Description |
---|---|
static ImmutableSchedulingPolicy.Builder |
builder()
Creates a builder for
ImmutableSchedulingPolicy . |
Optional<ContinuousSchedule> |
continuousSchedule()
Specifies the time interval between two VCloudProtectionJob Runs of a
continuous backup schedule and any blackout periods when new
VCloudProtectionJob Runs should NOT be started.
|
static ImmutableSchedulingPolicy |
copyOf(SchedulingPolicy instance)
Creates an immutable copy of a
SchedulingPolicy value. |
Optional<DailySchedule> |
dailySchedule()
Specifies a daily or weekly backup schedule.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableSchedulingPolicy that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
continuousSchedule , dailySchedule , monthlySchedule , periodicity . |
Optional<MonthlySchedule> |
monthlySchedule()
Specifies a monthly backup schedule.
|
Periodicity |
periodicity()
Specifies how often to start new VCloudProtectionJob Runs of a Protection
VCloudProtectionJob.
|
String |
toString()
Prints the immutable value
SchedulingPolicy with attribute values. |
ImmutableSchedulingPolicy |
withContinuousSchedule(ContinuousSchedule value)
Copy the current immutable object by setting a present value for the optional
continuousSchedule attribute. |
ImmutableSchedulingPolicy |
withContinuousSchedule(Optional<? extends ContinuousSchedule> optional)
Copy the current immutable object by setting an optional value for the
continuousSchedule attribute. |
ImmutableSchedulingPolicy |
withDailySchedule(DailySchedule value)
Copy the current immutable object by setting a present value for the optional
dailySchedule attribute. |
ImmutableSchedulingPolicy |
withDailySchedule(Optional<? extends DailySchedule> optional)
Copy the current immutable object by setting an optional value for the
dailySchedule attribute. |
ImmutableSchedulingPolicy |
withMonthlySchedule(MonthlySchedule value)
Copy the current immutable object by setting a present value for the optional
monthlySchedule attribute. |
ImmutableSchedulingPolicy |
withMonthlySchedule(Optional<? extends MonthlySchedule> optional)
Copy the current immutable object by setting an optional value for the
monthlySchedule attribute. |
ImmutableSchedulingPolicy |
withPeriodicity(Periodicity value)
Copy the current immutable object by setting a value for the
periodicity attribute. |
public Optional<ContinuousSchedule> continuousSchedule()
continuousSchedule
in interface SchedulingPolicy
public Optional<DailySchedule> dailySchedule()
dailySchedule
in interface SchedulingPolicy
public Optional<MonthlySchedule> monthlySchedule()
monthlySchedule
in interface SchedulingPolicy
public Periodicity periodicity()
periodicity
in interface SchedulingPolicy
public final ImmutableSchedulingPolicy withContinuousSchedule(ContinuousSchedule value)
continuousSchedule
attribute.value
- The value for continuousSchedulethis
objectpublic final ImmutableSchedulingPolicy withContinuousSchedule(Optional<? extends ContinuousSchedule> optional)
continuousSchedule
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 continuousSchedulethis
objectpublic final ImmutableSchedulingPolicy withDailySchedule(DailySchedule value)
dailySchedule
attribute.value
- The value for dailySchedulethis
objectpublic final ImmutableSchedulingPolicy withDailySchedule(Optional<? extends DailySchedule> optional)
dailySchedule
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 dailySchedulethis
objectpublic final ImmutableSchedulingPolicy withMonthlySchedule(MonthlySchedule value)
monthlySchedule
attribute.value
- The value for monthlySchedulethis
objectpublic final ImmutableSchedulingPolicy withMonthlySchedule(Optional<? extends MonthlySchedule> optional)
monthlySchedule
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 monthlySchedulethis
objectpublic final ImmutableSchedulingPolicy withPeriodicity(Periodicity 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)
ImmutableSchedulingPolicy
that have equal attribute values.public int hashCode()
continuousSchedule
, dailySchedule
, monthlySchedule
, periodicity
.public String toString()
SchedulingPolicy
with attribute values.public static ImmutableSchedulingPolicy copyOf(SchedulingPolicy instance)
SchedulingPolicy
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 ImmutableSchedulingPolicy.Builder builder()
ImmutableSchedulingPolicy
.
ImmutableSchedulingPolicy.builder() .continuousSchedule(com.iland.cohesity.iaas.backups.policies.api.model.ContinuousSchedule) // optionalcontinuousSchedule
.dailySchedule(com.iland.cohesity.iaas.backups.policies.api.model.DailySchedule) // optionaldailySchedule
.monthlySchedule(com.iland.cohesity.iaas.backups.policies.api.model.MonthlySchedule) // optionalmonthlySchedule
.periodicity(com.iland.cohesity.iaas.backups.policies.api.enums.Periodicity) // requiredperiodicity
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.