Class ImmutableO365CopyJobResponse

java.lang.Object
com.iland.core.web.rest.response.vbo.ImmutableO365CopyJobResponse
All Implemented Interfaces:
O365CopyJobResponse

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

Use the builder to create immutable instances: ImmutableO365CopyJobResponse.builder().

  • Method Details

    • uuid

      public String uuid()
      Internal uuid of the copy job.
      Specified by:
      uuid in interface O365CopyJobResponse
    • schedulePolicy

      public O365CopyJobSchedulePolicyResponse schedulePolicy()
      Schedule policy.
      Specified by:
      schedulePolicy in interface O365CopyJobResponse
    • repositoryId

      public String repositoryId()
      ID of the backup repository extended with Azure Blob Storage Archive access tier, Amazon S3 Glacier Instant Retrieval, Amazon S3 Glacier Flexible Retrieval or Amazon S3 Glacier Deep Archive storage classes.
      Specified by:
      repositoryId in interface O365CopyJobResponse
    • name

      public String name()
      Name of the backup copy job.
      Specified by:
      name in interface O365CopyJobResponse
    • lastRun

      public Optional<Instant> lastRun()
      Date and time of the last run of the backup copy job.
      Specified by:
      lastRun in interface O365CopyJobResponse
    • nextRun

      public Optional<Instant> nextRun()
      Date and time of the next run of the backup copy job per schedule.
      Specified by:
      nextRun in interface O365CopyJobResponse
    • lastBackup

      public Optional<Instant> lastBackup()
      Date and time of the last successful run of the backup copy job.
      Specified by:
      lastBackup in interface O365CopyJobResponse
    • isEnabled

      public Boolean isEnabled()
      Defines whether the backup copy job is enabled.
      Specified by:
      isEnabled in interface O365CopyJobResponse
    • o365OrgUuid

      public String o365OrgUuid()
      O365 organization uuid of the copy job.
      Specified by:
      o365OrgUuid in interface O365CopyJobResponse
    • companyId

      public String companyId()
      Company id of the copy job.
      Specified by:
      companyId in interface O365CopyJobResponse
    • lastStatus

      public String lastStatus()
      Latest status of the backup copy job. = ['Stopped', 'Running', 'Success', 'Failed', 'Warning', 'NotConfigured', 'Disconnected', 'Queued']
      Specified by:
      lastStatus in interface O365CopyJobResponse
    • retentionPeriod

      public String retentionPeriod()
      How long data is retained for the copy job.
      Specified by:
      retentionPeriod in interface O365CopyJobResponse
    • enableImmutability

      public boolean enableImmutability()
      Defines whether immutability is enabled to protect data in object storage from loss as a result of attacks, malware activity or any other injurious actions that may be performed by 3rd party applications.
      Specified by:
      enableImmutability in interface O365CopyJobResponse
    • typeVex

      public boolean typeVex()
      Whether the job is an Exchange type backup job.
      Specified by:
      typeVex in interface O365CopyJobResponse
    • typeVesp

      public boolean typeVesp()
      Whether the job is a Sharepoint type backup job.
      Specified by:
      typeVesp in interface O365CopyJobResponse
    • typeVeod

      public boolean typeVeod()
      Whether the job is a One Drive type backup job.
      Specified by:
      typeVeod in interface O365CopyJobResponse
    • typeVet

      public boolean typeVet()
      Whether the job is a Teams type backup job.
      Specified by:
      typeVet in interface O365CopyJobResponse
    • withUuid

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

      public final ImmutableO365CopyJobResponse withSchedulePolicy(O365CopyJobSchedulePolicyResponse value)
      Copy the current immutable object by setting a value for the schedulePolicy attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for schedulePolicy
      Returns:
      A modified copy of the this object
    • withRepositoryId

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

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

      public final ImmutableO365CopyJobResponse withLastRun(Instant value)
      Copy the current immutable object by setting a present value for the optional lastRun attribute.
      Parameters:
      value - The value for lastRun
      Returns:
      A modified copy of this object
    • withLastRun

      public final ImmutableO365CopyJobResponse withLastRun(Optional<? extends Instant> optional)
      Copy the current immutable object by setting an optional value for the lastRun 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 lastRun
      Returns:
      A modified copy of this object
    • withNextRun

      public final ImmutableO365CopyJobResponse withNextRun(Instant value)
      Copy the current immutable object by setting a present value for the optional nextRun attribute.
      Parameters:
      value - The value for nextRun
      Returns:
      A modified copy of this object
    • withNextRun

      public final ImmutableO365CopyJobResponse withNextRun(Optional<? extends Instant> optional)
      Copy the current immutable object by setting an optional value for the nextRun 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 nextRun
      Returns:
      A modified copy of this object
    • withLastBackup

      public final ImmutableO365CopyJobResponse withLastBackup(Instant value)
      Copy the current immutable object by setting a present value for the optional lastBackup attribute.
      Parameters:
      value - The value for lastBackup
      Returns:
      A modified copy of this object
    • withLastBackup

      public final ImmutableO365CopyJobResponse withLastBackup(Optional<? extends Instant> optional)
      Copy the current immutable object by setting an optional value for the lastBackup 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 lastBackup
      Returns:
      A modified copy of this object
    • withIsEnabled

      public final ImmutableO365CopyJobResponse withIsEnabled(Boolean value)
      Copy the current immutable object by setting a value for the isEnabled attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for isEnabled
      Returns:
      A modified copy of the this object
    • withO365OrgUuid

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

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

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

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

      public final ImmutableO365CopyJobResponse withEnableImmutability(boolean value)
      Copy the current immutable object by setting a value for the enableImmutability attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for enableImmutability
      Returns:
      A modified copy of the this object
    • withTypeVex

      public final ImmutableO365CopyJobResponse withTypeVex(boolean value)
      Copy the current immutable object by setting a value for the typeVex attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for typeVex
      Returns:
      A modified copy of the this object
    • withTypeVesp

      public final ImmutableO365CopyJobResponse withTypeVesp(boolean value)
      Copy the current immutable object by setting a value for the typeVesp attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for typeVesp
      Returns:
      A modified copy of the this object
    • withTypeVeod

      public final ImmutableO365CopyJobResponse withTypeVeod(boolean value)
      Copy the current immutable object by setting a value for the typeVeod attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for typeVeod
      Returns:
      A modified copy of the this object
    • withTypeVet

      public final ImmutableO365CopyJobResponse withTypeVet(boolean value)
      Copy the current immutable object by setting a value for the typeVet attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for typeVet
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableO365CopyJobResponse 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: uuid, schedulePolicy, repositoryId, name, lastRun, nextRun, lastBackup, isEnabled, o365OrgUuid, companyId, lastStatus, retentionPeriod, enableImmutability, typeVex, typeVesp, typeVeod, typeVet.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ImmutableO365CopyJobResponse copyOf(O365CopyJobResponse instance)
      Creates an immutable copy of a O365CopyJobResponse 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 O365CopyJobResponse instance
    • builder

      public static ImmutableO365CopyJobResponse.Builder builder()
      Creates a builder for ImmutableO365CopyJobResponse.
       ImmutableO365CopyJobResponse.builder()
          .uuid(String) // required uuid
          .schedulePolicy(com.iland.core.web.rest.response.vbo.O365CopyJobSchedulePolicyResponse) // required schedulePolicy
          .repositoryId(String) // required repositoryId
          .name(String) // required name
          .lastRun(java.time.Instant) // optional lastRun
          .nextRun(java.time.Instant) // optional nextRun
          .lastBackup(java.time.Instant) // optional lastBackup
          .isEnabled(Boolean) // required isEnabled
          .o365OrgUuid(String) // required o365OrgUuid
          .companyId(String) // required companyId
          .lastStatus(String) // required lastStatus
          .retentionPeriod(String) // required retentionPeriod
          .enableImmutability(boolean) // required enableImmutability
          .typeVex(boolean) // required typeVex
          .typeVesp(boolean) // required typeVesp
          .typeVeod(boolean) // required typeVeod
          .typeVet(boolean) // required typeVet
          .build();
       
      Returns:
      A new ImmutableO365CopyJobResponse builder