@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRestoreTask extends Object implements RestoreTask
RestoreTask
.
Use the builder to create immutable instances:
ImmutableRestoreTask.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableRestoreTask.Builder
Builds instances of type
ImmutableRestoreTask . |
Modifier and Type | Method and Description |
---|---|
BackupGroupUid |
backupGroupUid()
The UID of the backup group.
|
static ImmutableRestoreTask.Builder |
builder()
Creates a builder for
ImmutableRestoreTask . |
CompanyId |
companyId()
The ID of the associated company.
|
static ImmutableRestoreTask |
copyOf(RestoreTask instance)
Creates an immutable copy of a
RestoreTask value. |
Optional<Instant> |
endTime()
The end time of the task.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableRestoreTask that have equal attribute values. |
Optional<String> |
errorMessage()
Error message associated with task, if applicable.
|
int |
hashCode()
Computes a hash code from attributes:
taskName , locationId , companyId , orgUuid , vdcUuid , uid , backupGroupUid , startTime , endTime , type , status , vmRecoveryOptions , errorMessage , objects , objectStates . |
LocationId |
locationId()
The ID of the associated location.
|
com.google.common.collect.ImmutableSet<RestoreTaskObject> |
objects()
The objects that are being restored from.
|
com.google.common.collect.ImmutableSet<RestoreTaskObjectState> |
objectStates()
The states of the restore task objects.
|
OrgUuid |
orgUuid()
The UUID of the associated Org.
|
Instant |
startTime()
The start time of the task.
|
RestoreTaskStatus |
status()
The status of the task.
|
String |
taskName()
The user-specified restore task name.
|
String |
toString()
Prints the immutable value
RestoreTask with attribute values. |
RestoreTaskType |
type()
The type of the task.
|
RestoreTaskUid |
uid()
The UID of the task.
|
VdcUuid |
vdcUuid()
The UUID of the associated vDC.
|
Optional<VMRecoveryOptions> |
vmRecoveryOptions()
The VM recovery options that were selected for the restore.
|
ImmutableRestoreTask |
withBackupGroupUid(BackupGroupUid value)
Copy the current immutable object by setting a value for the
backupGroupUid attribute. |
ImmutableRestoreTask |
withCompanyId(CompanyId value)
Copy the current immutable object by setting a value for the
companyId attribute. |
ImmutableRestoreTask |
withEndTime(Instant value)
Copy the current immutable object by setting a present value for the optional
endTime attribute. |
ImmutableRestoreTask |
withEndTime(Optional<? extends Instant> optional)
Copy the current immutable object by setting an optional value for the
endTime attribute. |
ImmutableRestoreTask |
withErrorMessage(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
errorMessage attribute. |
ImmutableRestoreTask |
withErrorMessage(String value)
Copy the current immutable object by setting a present value for the optional
errorMessage attribute. |
ImmutableRestoreTask |
withLocationId(LocationId value)
Copy the current immutable object by setting a value for the
locationId attribute. |
ImmutableRestoreTask |
withObjects(Iterable<? extends RestoreTaskObject> elements)
Copy the current immutable object with elements that replace the content of
objects . |
ImmutableRestoreTask |
withObjects(RestoreTaskObject... elements)
Copy the current immutable object with elements that replace the content of
objects . |
ImmutableRestoreTask |
withObjectStates(Iterable<? extends RestoreTaskObjectState> elements)
Copy the current immutable object with elements that replace the content of
objectStates . |
ImmutableRestoreTask |
withObjectStates(RestoreTaskObjectState... elements)
Copy the current immutable object with elements that replace the content of
objectStates . |
ImmutableRestoreTask |
withOrgUuid(OrgUuid value)
Copy the current immutable object by setting a value for the
orgUuid attribute. |
ImmutableRestoreTask |
withStartTime(Instant value)
Copy the current immutable object by setting a value for the
startTime attribute. |
ImmutableRestoreTask |
withStatus(RestoreTaskStatus value)
Copy the current immutable object by setting a value for the
status attribute. |
ImmutableRestoreTask |
withTaskName(String value)
Copy the current immutable object by setting a value for the
taskName attribute. |
ImmutableRestoreTask |
withType(RestoreTaskType value)
Copy the current immutable object by setting a value for the
type attribute. |
ImmutableRestoreTask |
withUid(RestoreTaskUid value)
Copy the current immutable object by setting a value for the
uid attribute. |
ImmutableRestoreTask |
withVdcUuid(VdcUuid value)
Copy the current immutable object by setting a value for the
vdcUuid attribute. |
ImmutableRestoreTask |
withVmRecoveryOptions(Optional<? extends VMRecoveryOptions> optional)
Copy the current immutable object by setting an optional value for the
vmRecoveryOptions attribute. |
ImmutableRestoreTask |
withVmRecoveryOptions(VMRecoveryOptions value)
Copy the current immutable object by setting a present value for the optional
vmRecoveryOptions attribute. |
public String taskName()
taskName
in interface RestoreTask
public LocationId locationId()
locationId
in interface RestoreTask
public CompanyId companyId()
companyId
in interface RestoreTask
public OrgUuid orgUuid()
orgUuid
in interface RestoreTask
public VdcUuid vdcUuid()
vdcUuid
in interface RestoreTask
public RestoreTaskUid uid()
uid
in interface RestoreTask
public BackupGroupUid backupGroupUid()
backupGroupUid
in interface RestoreTask
public Instant startTime()
startTime
in interface RestoreTask
public Optional<Instant> endTime()
endTime
in interface RestoreTask
public RestoreTaskType type()
type
in interface RestoreTask
public RestoreTaskStatus status()
status
in interface RestoreTask
public Optional<VMRecoveryOptions> vmRecoveryOptions()
RestoreTaskType.RESTORE_VMS
.vmRecoveryOptions
in interface RestoreTask
public Optional<String> errorMessage()
errorMessage
in interface RestoreTask
public com.google.common.collect.ImmutableSet<RestoreTaskObject> objects()
objects
in interface RestoreTask
public com.google.common.collect.ImmutableSet<RestoreTaskObjectState> objectStates()
objectStates
in interface RestoreTask
public final ImmutableRestoreTask withTaskName(String value)
taskName
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for taskNamethis
objectpublic final ImmutableRestoreTask withLocationId(LocationId value)
locationId
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for locationIdthis
objectpublic final ImmutableRestoreTask withCompanyId(CompanyId value)
companyId
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for companyIdthis
objectpublic final ImmutableRestoreTask withOrgUuid(OrgUuid value)
orgUuid
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for orgUuidthis
objectpublic final ImmutableRestoreTask withVdcUuid(VdcUuid value)
vdcUuid
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for vdcUuidthis
objectpublic final ImmutableRestoreTask withUid(RestoreTaskUid value)
uid
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for uidthis
objectpublic final ImmutableRestoreTask withBackupGroupUid(BackupGroupUid value)
backupGroupUid
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for backupGroupUidthis
objectpublic final ImmutableRestoreTask withStartTime(Instant value)
startTime
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for startTimethis
objectpublic final ImmutableRestoreTask withEndTime(Instant value)
endTime
attribute.value
- The value for endTimethis
objectpublic final ImmutableRestoreTask withEndTime(Optional<? extends Instant> optional)
endTime
attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this
.optional
- A value for endTimethis
objectpublic final ImmutableRestoreTask withType(RestoreTaskType value)
type
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for typethis
objectpublic final ImmutableRestoreTask withStatus(RestoreTaskStatus value)
status
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for statusthis
objectpublic final ImmutableRestoreTask withVmRecoveryOptions(VMRecoveryOptions value)
vmRecoveryOptions
attribute.value
- The value for vmRecoveryOptionsthis
objectpublic final ImmutableRestoreTask withVmRecoveryOptions(Optional<? extends VMRecoveryOptions> optional)
vmRecoveryOptions
attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this
.optional
- A value for vmRecoveryOptionsthis
objectpublic final ImmutableRestoreTask withErrorMessage(String value)
errorMessage
attribute.value
- The value for errorMessagethis
objectpublic final ImmutableRestoreTask withErrorMessage(Optional<String> optional)
errorMessage
attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this
.optional
- A value for errorMessagethis
objectpublic final ImmutableRestoreTask withObjects(RestoreTaskObject... elements)
objects
.elements
- The elements to setthis
objectpublic final ImmutableRestoreTask withObjects(Iterable<? extends RestoreTaskObject> elements)
objects
.
A shallow reference equality check is used to prevent copying of the same value by returning this
.elements
- An iterable of objects elements to setthis
objectpublic final ImmutableRestoreTask withObjectStates(RestoreTaskObjectState... elements)
objectStates
.elements
- The elements to setthis
objectpublic final ImmutableRestoreTask withObjectStates(Iterable<? extends RestoreTaskObjectState> elements)
objectStates
.
A shallow reference equality check is used to prevent copying of the same value by returning this
.elements
- An iterable of objectStates elements to setthis
objectpublic boolean equals(@Nullable Object another)
ImmutableRestoreTask
that have equal attribute values.public int hashCode()
taskName
, locationId
, companyId
, orgUuid
, vdcUuid
, uid
, backupGroupUid
, startTime
, endTime
, type
, status
, vmRecoveryOptions
, errorMessage
, objects
, objectStates
.public String toString()
RestoreTask
with attribute values.public static ImmutableRestoreTask copyOf(RestoreTask instance)
RestoreTask
value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance
- The instance to copypublic static ImmutableRestoreTask.Builder builder()
ImmutableRestoreTask
.
ImmutableRestoreTask.builder() .taskName(String) // requiredtaskName
.locationId(com.iland.cohesity.iaas.backups.common.model.LocationId) // requiredlocationId
.companyId(com.iland.cohesity.iaas.backups.common.model.CompanyId) // requiredcompanyId
.orgUuid(com.iland.cohesity.iaas.backups.common.model.OrgUuid) // requiredorgUuid
.vdcUuid(com.iland.cohesity.iaas.backups.common.model.VdcUuid) // requiredvdcUuid
.uid(com.iland.cohesity.iaas.backups.common.model.RestoreTaskUid) // requireduid
.backupGroupUid(com.iland.cohesity.iaas.backups.common.model.BackupGroupUid) // requiredbackupGroupUid
.startTime(java.time.Instant) // requiredstartTime
.endTime(java.time.Instant) // optionalendTime
.type(com.iland.cohesity.iaas.backups.common.enums.RestoreTaskType) // requiredtype
.status(com.iland.cohesity.iaas.backups.common.enums.RestoreTaskStatus) // requiredstatus
.vmRecoveryOptions(com.iland.cohesity.iaas.backups.common.model.VMRecoveryOptions) // optionalvmRecoveryOptions
.errorMessage(String) // optionalerrorMessage
.addObjects|addAllObjects(com.iland.cohesity.iaas.backups.common.model.RestoreTaskObject) //objects
elements .addObjectStates|addAllObjectStates(com.iland.cohesity.iaas.backups.common.model.RestoreTaskObjectState) //objectStates
elements .build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.