@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableBlackoutPeriod extends Object implements BlackoutPeriod
BlackoutPeriod
.
Use the builder to create immutable instances:
ImmutableBlackoutPeriod.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableBlackoutPeriod.Builder
Builds instances of type
ImmutableBlackoutPeriod . |
Modifier and Type | Method and Description |
---|---|
static ImmutableBlackoutPeriod.Builder |
builder()
Creates a builder for
ImmutableBlackoutPeriod . |
static ImmutableBlackoutPeriod |
copyOf(BlackoutPeriod instance)
Creates an immutable copy of a
BlackoutPeriod value. |
Optional<Day> |
day()
Blackout Day.
|
TimeOfDay |
endTime()
Specifies the end time of the blackout time range.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableBlackoutPeriod that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
day , endTime , startTime . |
TimeOfDay |
startTime()
Specifies the start time of the blackout time range.
|
String |
toString()
Prints the immutable value
BlackoutPeriod with attribute values. |
ImmutableBlackoutPeriod |
withDay(Day value)
Copy the current immutable object by setting a present value for the optional
day attribute. |
ImmutableBlackoutPeriod |
withDay(Optional<? extends Day> optional)
Copy the current immutable object by setting an optional value for the
day attribute. |
ImmutableBlackoutPeriod |
withEndTime(TimeOfDay value)
Copy the current immutable object by setting a value for the
endTime attribute. |
ImmutableBlackoutPeriod |
withStartTime(TimeOfDay value)
Copy the current immutable object by setting a value for the
startTime attribute. |
public Optional<Day> day()
Specifies a day in the week when no new backup group Runs should be started such as 'SUNDAY'. If not set, the time range applies to all days. Specifies a day in a week such as 'SUNDAY', 'MONDAY', etc.
day
in interface BlackoutPeriod
public TimeOfDay endTime()
endTime
in interface BlackoutPeriod
public TimeOfDay startTime()
startTime
in interface BlackoutPeriod
public final ImmutableBlackoutPeriod withDay(Day value)
day
attribute.value
- The value for daythis
objectpublic final ImmutableBlackoutPeriod withDay(Optional<? extends Day> optional)
day
attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this
.optional
- A value for daythis
objectpublic final ImmutableBlackoutPeriod withEndTime(TimeOfDay value)
endTime
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for endTimethis
objectpublic final ImmutableBlackoutPeriod withStartTime(TimeOfDay value)
startTime
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for startTimethis
objectpublic boolean equals(@Nullable Object another)
ImmutableBlackoutPeriod
that have equal attribute values.public int hashCode()
day
, endTime
, startTime
.public String toString()
BlackoutPeriod
with attribute values.public static ImmutableBlackoutPeriod copyOf(BlackoutPeriod instance)
BlackoutPeriod
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 ImmutableBlackoutPeriod.Builder builder()
ImmutableBlackoutPeriod
.
ImmutableBlackoutPeriod.builder() .day(com.iland.cohesity.iaas.backups.policies.api.enums.Day) // optionalday
.endTime(com.iland.cohesity.iaas.backups.common.model.TimeOfDay) // requiredendTime
.startTime(com.iland.cohesity.iaas.backups.common.model.TimeOfDay) // requiredstartTime
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.