@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDailySchedule extends Object implements DailySchedule
DailySchedule
.
Use the builder to create immutable instances:
ImmutableDailySchedule.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableDailySchedule.Builder
Builds instances of type
ImmutableDailySchedule . |
Modifier and Type | Method and Description |
---|---|
static ImmutableDailySchedule.Builder |
builder()
Creates a builder for
ImmutableDailySchedule . |
static ImmutableDailySchedule |
copyOf(DailySchedule instance)
Creates an immutable copy of a
DailySchedule value. |
com.google.common.collect.ImmutableSet<Day> |
days()
Array of Days.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDailySchedule that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
days . |
String |
toString()
Prints the immutable value
DailySchedule with attribute values. |
ImmutableDailySchedule |
withDays(Day... elements)
Copy the current immutable object with elements that replace the content of
days . |
ImmutableDailySchedule |
withDays(Iterable<Day> elements)
Copy the current immutable object with elements that replace the content of
days . |
public com.google.common.collect.ImmutableSet<Day> days()
Specifies a list of days of the week when to start backup group Runs. If no days are specified, the backup group Runs will run every day of the week. Specifies a day in a week such as 'SUNDAY', 'MONDAY', etc.
days
in interface DailySchedule
public final ImmutableDailySchedule withDays(Day... elements)
days
.elements
- The elements to setthis
objectpublic final ImmutableDailySchedule withDays(Iterable<Day> elements)
days
.
A shallow reference equality check is used to prevent copying of the same value by returning this
.elements
- An iterable of days elements to setthis
objectpublic boolean equals(@Nullable Object another)
ImmutableDailySchedule
that have equal attribute values.public int hashCode()
days
.public String toString()
DailySchedule
with attribute values.public static ImmutableDailySchedule copyOf(DailySchedule instance)
DailySchedule
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 ImmutableDailySchedule.Builder builder()
ImmutableDailySchedule
.
ImmutableDailySchedule.builder()
.addDays|addAllDays(com.iland.cohesity.iaas.backups.policies.api.enums.Day) // days
elements
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.