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().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableVacProcessedObjectResponse. -
Method Summary
Modifier and TypeMethodDescriptionUID assigned to a backup serverbuilder()Creates a builder forImmutableVacProcessedObjectResponse.copyOf(VacProcessedObjectResponse instance) Creates an immutable copy of aVacProcessedObjectResponsevalue.booleanThis instance is equal to all instances ofImmutableVacProcessedObjectResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:uuid,name,jobUid,backupServerUuid,organizationUid,usedSourceSize,totalRestorePointSize,latestRestorePointSize,restorePoints,latestRestorePointDate.jobUid()Job UID assigned to a backup job that created the latest restore point.Date and time of the latest restore point creation.Size of the latest restore point, in bytes.name()Name of the processed object.UID assigned to an organization.Number of restore points.toString()Prints the immutable valueVacProcessedObjectResponsewith attribute values.Total size of all restore points, in bytesUsed space on protected virtual machine disks, in bytesuuid()Internal uuid of the processed object.withBackupServerUuid(String value) Copy the current immutable object by setting a value for thebackupServerUuidattribute.withJobUid(String value) Copy the current immutable object by setting a value for thejobUidattribute.Copy the current immutable object by setting a present value for the optionallatestRestorePointDateattribute.withLatestRestorePointDate(Optional<? extends Instant> optional) Copy the current immutable object by setting an optional value for thelatestRestorePointDateattribute.withLatestRestorePointSize(long value) Copy the current immutable object by setting a present value for the optionallatestRestorePointSizeattribute.withLatestRestorePointSize(Optional<Long> optional) Copy the current immutable object by setting an optional value for thelatestRestorePointSizeattribute.Copy the current immutable object by setting a value for thenameattribute.withOrganizationUid(String value) Copy the current immutable object by setting a value for theorganizationUidattribute.withRestorePoints(int value) Copy the current immutable object by setting a present value for the optionalrestorePointsattribute.withRestorePoints(Optional<Integer> optional) Copy the current immutable object by setting an optional value for therestorePointsattribute.withTotalRestorePointSize(long value) Copy the current immutable object by setting a present value for the optionaltotalRestorePointSizeattribute.withTotalRestorePointSize(Optional<Long> optional) Copy the current immutable object by setting an optional value for thetotalRestorePointSizeattribute.withUsedSourceSize(long value) Copy the current immutable object by setting a present value for the optionalusedSourceSizeattribute.withUsedSourceSize(Optional<Long> optional) Copy the current immutable object by setting an optional value for theusedSourceSizeattribute.Copy the current immutable object by setting a value for theuuidattribute.
-
Method Details
-
uuid
Internal uuid of the processed object.- Specified by:
uuidin interfaceVacProcessedObjectResponse
-
name
Name of the processed object.- Specified by:
namein interfaceVacProcessedObjectResponse
-
jobUid
Job UID assigned to a backup job that created the latest restore point.- Specified by:
jobUidin interfaceVacProcessedObjectResponse
-
backupServerUuid
UID assigned to a backup server- Specified by:
backupServerUuidin interfaceVacProcessedObjectResponse
-
organizationUid
UID assigned to an organization.- Specified by:
organizationUidin interfaceVacProcessedObjectResponse
-
usedSourceSize
Used space on protected virtual machine disks, in bytes- Specified by:
usedSourceSizein interfaceVacProcessedObjectResponse
-
totalRestorePointSize
Total size of all restore points, in bytes- Specified by:
totalRestorePointSizein interfaceVacProcessedObjectResponse
-
latestRestorePointSize
Size of the latest restore point, in bytes.- Specified by:
latestRestorePointSizein interfaceVacProcessedObjectResponse
-
restorePoints
Number of restore points.- Specified by:
restorePointsin interfaceVacProcessedObjectResponse
-
latestRestorePointDate
Date and time of the latest restore point creation.- Specified by:
latestRestorePointDatein interfaceVacProcessedObjectResponse
-
withUuid
Copy the current immutable object by setting a value for theuuidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for uuid- Returns:
- A modified copy of the
thisobject
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy of the
thisobject
-
withJobUid
Copy the current immutable object by setting a value for thejobUidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for jobUid- Returns:
- A modified copy of the
thisobject
-
withBackupServerUuid
Copy the current immutable object by setting a value for thebackupServerUuidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for backupServerUuid- Returns:
- A modified copy of the
thisobject
-
withOrganizationUid
Copy the current immutable object by setting a value for theorganizationUidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for organizationUid- Returns:
- A modified copy of the
thisobject
-
withUsedSourceSize
Copy the current immutable object by setting a present value for the optionalusedSourceSizeattribute.- Parameters:
value- The value for usedSourceSize- Returns:
- A modified copy of
thisobject
-
withUsedSourceSize
Copy the current immutable object by setting an optional value for theusedSourceSizeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for usedSourceSize- Returns:
- A modified copy of
thisobject
-
withTotalRestorePointSize
Copy the current immutable object by setting a present value for the optionaltotalRestorePointSizeattribute.- Parameters:
value- The value for totalRestorePointSize- Returns:
- A modified copy of
thisobject
-
withTotalRestorePointSize
Copy the current immutable object by setting an optional value for thetotalRestorePointSizeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for totalRestorePointSize- Returns:
- A modified copy of
thisobject
-
withLatestRestorePointSize
Copy the current immutable object by setting a present value for the optionallatestRestorePointSizeattribute.- Parameters:
value- The value for latestRestorePointSize- Returns:
- A modified copy of
thisobject
-
withLatestRestorePointSize
public final ImmutableVacProcessedObjectResponse withLatestRestorePointSize(Optional<Long> optional) Copy the current immutable object by setting an optional value for thelatestRestorePointSizeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for latestRestorePointSize- Returns:
- A modified copy of
thisobject
-
withRestorePoints
Copy the current immutable object by setting a present value for the optionalrestorePointsattribute.- Parameters:
value- The value for restorePoints- Returns:
- A modified copy of
thisobject
-
withRestorePoints
Copy the current immutable object by setting an optional value for therestorePointsattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for restorePoints- Returns:
- A modified copy of
thisobject
-
withLatestRestorePointDate
Copy the current immutable object by setting a present value for the optionallatestRestorePointDateattribute.- Parameters:
value- The value for latestRestorePointDate- Returns:
- A modified copy of
thisobject
-
withLatestRestorePointDate
public final ImmutableVacProcessedObjectResponse withLatestRestorePointDate(Optional<? extends Instant> optional) Copy the current immutable object by setting an optional value for thelatestRestorePointDateattribute. 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 latestRestorePointDate- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableVacProcessedObjectResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:uuid,name,jobUid,backupServerUuid,organizationUid,usedSourceSize,totalRestorePointSize,latestRestorePointSize,restorePoints,latestRestorePointDate. -
toString
Prints the immutable valueVacProcessedObjectResponsewith attribute values. -
copyOf
Creates an immutable copy of aVacProcessedObjectResponsevalue. 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 forImmutableVacProcessedObjectResponse.ImmutableVacProcessedObjectResponse.builder() .uuid(String) // requireduuid.name(String) // requiredname.jobUid(String) // requiredjobUid.backupServerUuid(String) // requiredbackupServerUuid.organizationUid(String) // requiredorganizationUid.usedSourceSize(Long) // optionalusedSourceSize.totalRestorePointSize(Long) // optionaltotalRestorePointSize.latestRestorePointSize(Long) // optionallatestRestorePointSize.restorePoints(Integer) // optionalrestorePoints.latestRestorePointDate(java.time.Instant) // optionallatestRestorePointDate.build();- Returns:
- A new ImmutableVacProcessedObjectResponse builder
-