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().

  • Method Details

    • type

      public String 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:
      type in interface O365CopyJobSchedulePolicyRequest
    • periodicallyEvery

      public Optional<String> periodicallyEvery()
      Time interval between the backup copy job runs. = ['Minutes5', 'Minutes10', 'Minutes15', 'Minutes30', 'Hours1', 'Hours2', 'Hours4', 'Hours8'].
      Specified by:
      periodicallyEvery in interface O365CopyJobSchedulePolicyRequest
    • dailyType

      public Optional<String> dailyType()
      Days when the backup copy job will run. = ['Everyday', 'Workdays', 'Weekends', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']
      Specified by:
      dailyType in interface O365CopyJobSchedulePolicyRequest
    • dailyTime

      public Optional<String> dailyTime()
      Time to start the backup copy job.
      Specified by:
      dailyTime in interface O365CopyJobSchedulePolicyRequest
    • backupCopyWindowEnabled

      public Optional<Boolean> backupCopyWindowEnabled()
      Defines whether the backup copy window feature is enabled for this backup copy job.
      Specified by:
      backupCopyWindowEnabled in interface O365CopyJobSchedulePolicyRequest
    • backupWindow

      public Optional<List<Boolean>> 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:
      backupWindow in interface O365CopyJobSchedulePolicyRequest
    • minuteOffset

      public Optional<Integer> minuteOffset()
      Current minute offset from the UTC time.
      Specified by:
      minuteOffset in interface O365CopyJobSchedulePolicyRequest
    • withType

      public final ImmutableO365CopyJobSchedulePolicyRequest withType(String value)
      Copy the current immutable object by setting a value for the type attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for type
      Returns:
      A modified copy of the this object
    • withPeriodicallyEvery

      public final ImmutableO365CopyJobSchedulePolicyRequest withPeriodicallyEvery(String value)
      Copy the current immutable object by setting a present value for the optional periodicallyEvery attribute.
      Parameters:
      value - The value for periodicallyEvery
      Returns:
      A modified copy of this object
    • withPeriodicallyEvery

      public final ImmutableO365CopyJobSchedulePolicyRequest withPeriodicallyEvery(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the periodicallyEvery attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for periodicallyEvery
      Returns:
      A modified copy of this object
    • withDailyType

      public final ImmutableO365CopyJobSchedulePolicyRequest withDailyType(String value)
      Copy the current immutable object by setting a present value for the optional dailyType attribute.
      Parameters:
      value - The value for dailyType
      Returns:
      A modified copy of this object
    • withDailyType

      public final ImmutableO365CopyJobSchedulePolicyRequest withDailyType(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the dailyType attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for dailyType
      Returns:
      A modified copy of this object
    • withDailyTime

      public final ImmutableO365CopyJobSchedulePolicyRequest withDailyTime(String value)
      Copy the current immutable object by setting a present value for the optional dailyTime attribute.
      Parameters:
      value - The value for dailyTime
      Returns:
      A modified copy of this object
    • withDailyTime

      public final ImmutableO365CopyJobSchedulePolicyRequest withDailyTime(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the dailyTime attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for dailyTime
      Returns:
      A modified copy of this object
    • withBackupCopyWindowEnabled

      public final ImmutableO365CopyJobSchedulePolicyRequest withBackupCopyWindowEnabled(boolean value)
      Copy the current immutable object by setting a present value for the optional backupCopyWindowEnabled attribute.
      Parameters:
      value - The value for backupCopyWindowEnabled
      Returns:
      A modified copy of this object
    • withBackupCopyWindowEnabled

      public final ImmutableO365CopyJobSchedulePolicyRequest withBackupCopyWindowEnabled(Optional<Boolean> optional)
      Copy the current immutable object by setting an optional value for the backupCopyWindowEnabled attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for backupCopyWindowEnabled
      Returns:
      A modified copy of this object
    • withBackupWindow

      public final ImmutableO365CopyJobSchedulePolicyRequest withBackupWindow(List<Boolean> value)
      Copy the current immutable object by setting a present value for the optional backupWindow attribute.
      Parameters:
      value - The value for backupWindow
      Returns:
      A modified copy of this object
    • withBackupWindow

      public final ImmutableO365CopyJobSchedulePolicyRequest withBackupWindow(Optional<? extends List<Boolean>> optional)
      Copy the current immutable object by setting an optional value for the backupWindow attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for backupWindow
      Returns:
      A modified copy of this object
    • withMinuteOffset

      public final ImmutableO365CopyJobSchedulePolicyRequest withMinuteOffset(int value)
      Copy the current immutable object by setting a present value for the optional minuteOffset attribute.
      Parameters:
      value - The value for minuteOffset
      Returns:
      A modified copy of this object
    • withMinuteOffset

      public final ImmutableO365CopyJobSchedulePolicyRequest withMinuteOffset(Optional<Integer> optional)
      Copy the current immutable object by setting an optional value for the minuteOffset attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for minuteOffset
      Returns:
      A modified copy of this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableO365CopyJobSchedulePolicyRequest that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: type, periodicallyEvery, dailyType, dailyTime, backupCopyWindowEnabled, backupWindow, minuteOffset.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value O365CopyJobSchedulePolicyRequest with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      Creates an immutable copy of a O365CopyJobSchedulePolicyRequest value. 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 for ImmutableO365CopyJobSchedulePolicyRequest.
       ImmutableO365CopyJobSchedulePolicyRequest.builder()
          .type(String) // required type
          .periodicallyEvery(String) // optional periodicallyEvery
          .dailyType(String) // optional dailyType
          .dailyTime(String) // optional dailyTime
          .backupCopyWindowEnabled(Boolean) // optional backupCopyWindowEnabled
          .backupWindow(List&lt;Boolean&gt;) // optional backupWindow
          .minuteOffset(Integer) // optional minuteOffset
          .build();
       
      Returns:
      A new ImmutableO365CopyJobSchedulePolicyRequest builder