Class ImmutableO365CopyJobSchedulePolicyResponse

java.lang.Object
com.iland.core.web.rest.response.vbo.ImmutableO365CopyJobSchedulePolicyResponse
All Implemented Interfaces:
O365CopyJobSchedulePolicyResponse

@Generated(from="O365CopyJobSchedulePolicyResponse", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableO365CopyJobSchedulePolicyResponse extends Object implements O365CopyJobSchedulePolicyResponse
Immutable implementation of O365CopyJobSchedulePolicyResponse.

Use the builder to create immutable instances: ImmutableO365CopyJobSchedulePolicyResponse.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 O365CopyJobSchedulePolicyResponse
    • 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 O365CopyJobSchedulePolicyResponse
    • 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 O365CopyJobSchedulePolicyResponse
    • dailyTime

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

      public Boolean backupCopyWindowEnabled()
      Defines whether the backup copy window feature is enabled for this backup copy job.
      Specified by:
      backupCopyWindowEnabled in interface O365CopyJobSchedulePolicyResponse
    • 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 O365CopyJobSchedulePolicyResponse
    • minuteOffset

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

      public final ImmutableO365CopyJobSchedulePolicyResponse 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 ImmutableO365CopyJobSchedulePolicyResponse 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 ImmutableO365CopyJobSchedulePolicyResponse 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 ImmutableO365CopyJobSchedulePolicyResponse 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 ImmutableO365CopyJobSchedulePolicyResponse 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 ImmutableO365CopyJobSchedulePolicyResponse 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 ImmutableO365CopyJobSchedulePolicyResponse 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 ImmutableO365CopyJobSchedulePolicyResponse withBackupCopyWindowEnabled(Boolean value)
      Copy the current immutable object by setting a value for the backupCopyWindowEnabled attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for backupCopyWindowEnabled
      Returns:
      A modified copy of the this object
    • withBackupWindow

      public final ImmutableO365CopyJobSchedulePolicyResponse 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 ImmutableO365CopyJobSchedulePolicyResponse 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 ImmutableO365CopyJobSchedulePolicyResponse 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 ImmutableO365CopyJobSchedulePolicyResponse 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 ImmutableO365CopyJobSchedulePolicyResponse 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 O365CopyJobSchedulePolicyResponse with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      Creates an immutable copy of a O365CopyJobSchedulePolicyResponse 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 O365CopyJobSchedulePolicyResponse instance
    • builder

      Creates a builder for ImmutableO365CopyJobSchedulePolicyResponse.
       ImmutableO365CopyJobSchedulePolicyResponse.builder()
          .type(String) // required type
          .periodicallyEvery(String) // optional periodicallyEvery
          .dailyType(String) // optional dailyType
          .dailyTime(String) // optional dailyTime
          .backupCopyWindowEnabled(Boolean) // required backupCopyWindowEnabled
          .backupWindow(List&lt;Boolean&gt;) // optional backupWindow
          .minuteOffset(Integer) // optional minuteOffset
          .build();
       
      Returns:
      A new ImmutableO365CopyJobSchedulePolicyResponse builder