Class ImmutableVacProcessedObjectResponse

java.lang.Object
com.iland.core.web.rest.response.vac.ImmutableVacProcessedObjectResponse
All Implemented Interfaces:
VacProcessedObjectResponse

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

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

  • Method Details

    • uuid

      public String uuid()
      Internal uuid of the processed object.
      Specified by:
      uuid in interface VacProcessedObjectResponse
    • name

      public String name()
      Name of the processed object.
      Specified by:
      name in interface VacProcessedObjectResponse
    • jobUid

      public String jobUid()
      Job UID assigned to a backup job that created the latest restore point.
      Specified by:
      jobUid in interface VacProcessedObjectResponse
    • backupServerUuid

      public String backupServerUuid()
      UID assigned to a backup server
      Specified by:
      backupServerUuid in interface VacProcessedObjectResponse
    • organizationUid

      public String organizationUid()
      UID assigned to an organization.
      Specified by:
      organizationUid in interface VacProcessedObjectResponse
    • usedSourceSize

      public Optional<Long> usedSourceSize()
      Used space on protected virtual machine disks, in bytes
      Specified by:
      usedSourceSize in interface VacProcessedObjectResponse
    • totalRestorePointSize

      public Optional<Long> totalRestorePointSize()
      Total size of all restore points, in bytes
      Specified by:
      totalRestorePointSize in interface VacProcessedObjectResponse
    • latestRestorePointSize

      public Optional<Long> latestRestorePointSize()
      Size of the latest restore point, in bytes.
      Specified by:
      latestRestorePointSize in interface VacProcessedObjectResponse
    • restorePoints

      public Optional<Integer> restorePoints()
      Number of restore points.
      Specified by:
      restorePoints in interface VacProcessedObjectResponse
    • latestRestorePointDate

      public Optional<Instant> latestRestorePointDate()
      Date and time of the latest restore point creation.
      Specified by:
      latestRestorePointDate in interface VacProcessedObjectResponse
    • withUuid

      public final ImmutableVacProcessedObjectResponse 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
    • withName

      public final ImmutableVacProcessedObjectResponse 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
    • withJobUid

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

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

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

      public final ImmutableVacProcessedObjectResponse withUsedSourceSize(long value)
      Copy the current immutable object by setting a present value for the optional usedSourceSize attribute.
      Parameters:
      value - The value for usedSourceSize
      Returns:
      A modified copy of this object
    • withUsedSourceSize

      public final ImmutableVacProcessedObjectResponse withUsedSourceSize(Optional<Long> optional)
      Copy the current immutable object by setting an optional value for the usedSourceSize 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 usedSourceSize
      Returns:
      A modified copy of this object
    • withTotalRestorePointSize

      public final ImmutableVacProcessedObjectResponse withTotalRestorePointSize(long value)
      Copy the current immutable object by setting a present value for the optional totalRestorePointSize attribute.
      Parameters:
      value - The value for totalRestorePointSize
      Returns:
      A modified copy of this object
    • withTotalRestorePointSize

      public final ImmutableVacProcessedObjectResponse withTotalRestorePointSize(Optional<Long> optional)
      Copy the current immutable object by setting an optional value for the totalRestorePointSize 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 totalRestorePointSize
      Returns:
      A modified copy of this object
    • withLatestRestorePointSize

      public final ImmutableVacProcessedObjectResponse withLatestRestorePointSize(long value)
      Copy the current immutable object by setting a present value for the optional latestRestorePointSize attribute.
      Parameters:
      value - The value for latestRestorePointSize
      Returns:
      A modified copy of this object
    • withLatestRestorePointSize

      public final ImmutableVacProcessedObjectResponse withLatestRestorePointSize(Optional<Long> optional)
      Copy the current immutable object by setting an optional value for the latestRestorePointSize 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 latestRestorePointSize
      Returns:
      A modified copy of this object
    • withRestorePoints

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

      public final ImmutableVacProcessedObjectResponse withRestorePoints(Optional<Integer> optional)
      Copy the current immutable object by setting an optional value for the restorePoints 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 restorePoints
      Returns:
      A modified copy of this object
    • withLatestRestorePointDate

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

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

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableVacProcessedObjectResponse 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, name, jobUid, backupServerUuid, organizationUid, usedSourceSize, totalRestorePointSize, latestRestorePointSize, restorePoints, latestRestorePointDate.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

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

      Creates a builder for ImmutableVacProcessedObjectResponse.
       ImmutableVacProcessedObjectResponse.builder()
          .uuid(String) // required uuid
          .name(String) // required name
          .jobUid(String) // required jobUid
          .backupServerUuid(String) // required backupServerUuid
          .organizationUid(String) // required organizationUid
          .usedSourceSize(Long) // optional usedSourceSize
          .totalRestorePointSize(Long) // optional totalRestorePointSize
          .latestRestorePointSize(Long) // optional latestRestorePointSize
          .restorePoints(Integer) // optional restorePoints
          .latestRestorePointDate(java.time.Instant) // optional latestRestorePointDate
          .build();
       
      Returns:
      A new ImmutableVacProcessedObjectResponse builder