Class ImmutableO365CopyJobSchedulePolicyRequest
java.lang.Object
com.iland.core.web.rest.request.vbo.ImmutableO365CopyJobSchedulePolicyRequest
- All Implemented Interfaces:
O365CopyJobSchedulePolicyRequest
@Generated(from="O365CopyJobSchedulePolicyRequest",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableO365CopyJobSchedulePolicyRequest
extends Object
implements O365CopyJobSchedulePolicyRequest
Immutable implementation of
O365CopyJobSchedulePolicyRequest.
Use the builder to create immutable instances:
ImmutableO365CopyJobSchedulePolicyRequest.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableO365CopyJobSchedulePolicyRequest. -
Method Summary
Modifier and TypeMethodDescriptionDefines whether the backup copy window feature is enabled for this backup copy job.Defines an hourly scheme for the backup copy window.builder()Creates a builder forImmutableO365CopyJobSchedulePolicyRequest.copyOf(O365CopyJobSchedulePolicyRequest instance) Creates an immutable copy of aO365CopyJobSchedulePolicyRequestvalue.Time to start the backup copy job.Days when the backup copy job will run. = ['Everyday', 'Workdays', 'Weekends', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']booleanThis instance is equal to all instances ofImmutableO365CopyJobSchedulePolicyRequestthat have equal attribute values.inthashCode()Computes a hash code from attributes:type,periodicallyEvery,dailyType,dailyTime,backupCopyWindowEnabled,backupWindow,minuteOffset.Current minute offset from the UTC time.Time interval between the backup copy job runs. = ['Minutes5', 'Minutes10', 'Minutes15', 'Minutes30', 'Hours1', 'Hours2', 'Hours4', 'Hours8'].toString()Prints the immutable valueO365CopyJobSchedulePolicyRequestwith attribute values.type()Backup copy job schedule type.withBackupCopyWindowEnabled(boolean value) Copy the current immutable object by setting a present value for the optionalbackupCopyWindowEnabledattribute.withBackupCopyWindowEnabled(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thebackupCopyWindowEnabledattribute.withBackupWindow(List<Boolean> value) Copy the current immutable object by setting a present value for the optionalbackupWindowattribute.withBackupWindow(Optional<? extends List<Boolean>> optional) Copy the current immutable object by setting an optional value for thebackupWindowattribute.withDailyTime(String value) Copy the current immutable object by setting a present value for the optionaldailyTimeattribute.withDailyTime(Optional<String> optional) Copy the current immutable object by setting an optional value for thedailyTimeattribute.withDailyType(String value) Copy the current immutable object by setting a present value for the optionaldailyTypeattribute.withDailyType(Optional<String> optional) Copy the current immutable object by setting an optional value for thedailyTypeattribute.withMinuteOffset(int value) Copy the current immutable object by setting a present value for the optionalminuteOffsetattribute.withMinuteOffset(Optional<Integer> optional) Copy the current immutable object by setting an optional value for theminuteOffsetattribute.withPeriodicallyEvery(String value) Copy the current immutable object by setting a present value for the optionalperiodicallyEveryattribute.withPeriodicallyEvery(Optional<String> optional) Copy the current immutable object by setting an optional value for theperiodicallyEveryattribute.Copy the current immutable object by setting a value for thetypeattribute.
-
Method Details
-
type
Backup copy job schedule type. The following types are available: Immediate. The backup copy job runs right after the latest restore point appears in a source backup repository. DailyAtTime. The backup copy job runs on the specified days at the specified hours. Periodically. The backup copy job runs repeatedly throughout a day with a specific time interval. = ['Immediate', 'Periodically', 'DailyAtTime']- Specified by:
typein interfaceO365CopyJobSchedulePolicyRequest
-
periodicallyEvery
Time interval between the backup copy job runs. = ['Minutes5', 'Minutes10', 'Minutes15', 'Minutes30', 'Hours1', 'Hours2', 'Hours4', 'Hours8'].- Specified by:
periodicallyEveryin interfaceO365CopyJobSchedulePolicyRequest
-
dailyType
Days when the backup copy job will run. = ['Everyday', 'Workdays', 'Weekends', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']- Specified by:
dailyTypein interfaceO365CopyJobSchedulePolicyRequest
-
dailyTime
Time to start the backup copy job.- Specified by:
dailyTimein interfaceO365CopyJobSchedulePolicyRequest
-
backupCopyWindowEnabled
Defines whether the backup copy window feature is enabled for this backup copy job.- Specified by:
backupCopyWindowEnabledin interfaceO365CopyJobSchedulePolicyRequest
-
backupWindow
Defines an hourly scheme for the backup copy window. The scheduling scheme consists of 168 boolean elements. These elements can be logically divided into 7 groups by 24. Each group represents a day of the week starting from Sunday. Each element represents a backup copy hour: true - the allowed backup copy hour false - the prohibited backup copy hour.- Specified by:
backupWindowin interfaceO365CopyJobSchedulePolicyRequest
-
minuteOffset
Current minute offset from the UTC time.- Specified by:
minuteOffsetin interfaceO365CopyJobSchedulePolicyRequest
-
withType
Copy the current immutable object by setting a value for thetypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy of the
thisobject
-
withPeriodicallyEvery
Copy the current immutable object by setting a present value for the optionalperiodicallyEveryattribute.- Parameters:
value- The value for periodicallyEvery- Returns:
- A modified copy of
thisobject
-
withPeriodicallyEvery
public final ImmutableO365CopyJobSchedulePolicyRequest withPeriodicallyEvery(Optional<String> optional) Copy the current immutable object by setting an optional value for theperiodicallyEveryattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for periodicallyEvery- Returns:
- A modified copy of
thisobject
-
withDailyType
Copy the current immutable object by setting a present value for the optionaldailyTypeattribute.- Parameters:
value- The value for dailyType- Returns:
- A modified copy of
thisobject
-
withDailyType
Copy the current immutable object by setting an optional value for thedailyTypeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for dailyType- Returns:
- A modified copy of
thisobject
-
withDailyTime
Copy the current immutable object by setting a present value for the optionaldailyTimeattribute.- Parameters:
value- The value for dailyTime- Returns:
- A modified copy of
thisobject
-
withDailyTime
Copy the current immutable object by setting an optional value for thedailyTimeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for dailyTime- Returns:
- A modified copy of
thisobject
-
withBackupCopyWindowEnabled
Copy the current immutable object by setting a present value for the optionalbackupCopyWindowEnabledattribute.- Parameters:
value- The value for backupCopyWindowEnabled- Returns:
- A modified copy of
thisobject
-
withBackupCopyWindowEnabled
public final ImmutableO365CopyJobSchedulePolicyRequest withBackupCopyWindowEnabled(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thebackupCopyWindowEnabledattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for backupCopyWindowEnabled- Returns:
- A modified copy of
thisobject
-
withBackupWindow
Copy the current immutable object by setting a present value for the optionalbackupWindowattribute.- Parameters:
value- The value for backupWindow- Returns:
- A modified copy of
thisobject
-
withBackupWindow
public final ImmutableO365CopyJobSchedulePolicyRequest withBackupWindow(Optional<? extends List<Boolean>> optional) Copy the current immutable object by setting an optional value for thebackupWindowattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for backupWindow- Returns:
- A modified copy of
thisobject
-
withMinuteOffset
Copy the current immutable object by setting a present value for the optionalminuteOffsetattribute.- Parameters:
value- The value for minuteOffset- Returns:
- A modified copy of
thisobject
-
withMinuteOffset
Copy the current immutable object by setting an optional value for theminuteOffsetattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for minuteOffset- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableO365CopyJobSchedulePolicyRequestthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,periodicallyEvery,dailyType,dailyTime,backupCopyWindowEnabled,backupWindow,minuteOffset. -
toString
Prints the immutable valueO365CopyJobSchedulePolicyRequestwith attribute values. -
copyOf
public static ImmutableO365CopyJobSchedulePolicyRequest copyOf(O365CopyJobSchedulePolicyRequest instance) Creates an immutable copy of aO365CopyJobSchedulePolicyRequestvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable O365CopyJobSchedulePolicyRequest instance
-
builder
Creates a builder forImmutableO365CopyJobSchedulePolicyRequest.ImmutableO365CopyJobSchedulePolicyRequest.builder() .type(String) // requiredtype.periodicallyEvery(String) // optionalperiodicallyEvery.dailyType(String) // optionaldailyType.dailyTime(String) // optionaldailyTime.backupCopyWindowEnabled(Boolean) // optionalbackupCopyWindowEnabled.backupWindow(List<Boolean>) // optionalbackupWindow.minuteOffset(Integer) // optionalminuteOffset.build();- Returns:
- A new ImmutableO365CopyJobSchedulePolicyRequest builder
-