@NotThreadSafe public static final class ImmutableRestoreTask.Builder extends Object
ImmutableRestoreTask.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
public final ImmutableRestoreTask.Builder from(RestoreTask instance)
RestoreTask instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder taskName(String taskName)
taskName attribute.taskName - The value for taskNamethis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder locationId(LocationId locationId)
locationId attribute.locationId - The value for locationIdthis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder companyId(CompanyId companyId)
companyId attribute.companyId - The value for companyIdthis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder orgUuid(OrgUuid orgUuid)
orgUuid attribute.orgUuid - The value for orgUuidthis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder vdcUuid(VdcUuid vdcUuid)
vdcUuid attribute.vdcUuid - The value for vdcUuidthis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder uid(RestoreTaskUid uid)
uid attribute.uid - The value for uidthis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder backupGroupUid(BackupGroupUid backupGroupUid)
backupGroupUid attribute.backupGroupUid - The value for backupGroupUidthis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder startTime(Instant startTime)
startTime attribute.startTime - The value for startTimethis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder endTime(Instant endTime)
endTime to endTime.endTime - The value for endTimethis builder for chained invocationpublic final ImmutableRestoreTask.Builder endTime(Optional<? extends Instant> endTime)
endTime to endTime.endTime - The value for endTimethis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder type(RestoreTaskType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder status(RestoreTaskStatus status)
status attribute.status - The value for statusthis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder vmRecoveryOptions(VMRecoveryOptions vmRecoveryOptions)
vmRecoveryOptions to vmRecoveryOptions.vmRecoveryOptions - The value for vmRecoveryOptionsthis builder for chained invocationpublic final ImmutableRestoreTask.Builder vmRecoveryOptions(Optional<? extends VMRecoveryOptions> vmRecoveryOptions)
vmRecoveryOptions to vmRecoveryOptions.vmRecoveryOptions - The value for vmRecoveryOptionsthis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder errorMessage(String errorMessage)
errorMessage to errorMessage.errorMessage - The value for errorMessagethis builder for chained invocationpublic final ImmutableRestoreTask.Builder errorMessage(Optional<String> errorMessage)
errorMessage to errorMessage.errorMessage - The value for errorMessagethis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder addObjects(RestoreTaskObject element)
objects set.element - A objects elementthis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder addObjects(RestoreTaskObject... elements)
objects set.elements - An array of objects elementsthis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder objects(Iterable<? extends RestoreTaskObject> elements)
objects set.elements - An iterable of objects elementsthis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder addAllObjects(Iterable<? extends RestoreTaskObject> elements)
objects set.elements - An iterable of objects elementsthis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder addObjectStates(RestoreTaskObjectState element)
objectStates set.element - A objectStates elementthis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder addObjectStates(RestoreTaskObjectState... elements)
objectStates set.elements - An array of objectStates elementsthis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder objectStates(Iterable<? extends RestoreTaskObjectState> elements)
objectStates set.elements - An iterable of objectStates elementsthis builder for use in a chained invocationpublic final ImmutableRestoreTask.Builder addAllObjectStates(Iterable<? extends RestoreTaskObjectState> elements)
objectStates set.elements - An iterable of objectStates elementsthis builder for use in a chained invocationpublic ImmutableRestoreTask build()
ImmutableRestoreTask.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.