Class ImmutableVacProcessedObjectResponse.Builder
java.lang.Object
com.iland.core.web.rest.response.vac.ImmutableVacProcessedObjectResponse.Builder
- Enclosing class:
- ImmutableVacProcessedObjectResponse
@Generated(from="VacProcessedObjectResponse",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableVacProcessedObjectResponse.Builder
extends Object
Builds instances of type
ImmutableVacProcessedObjectResponse.
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.
-
Method Summary
Modifier and TypeMethodDescriptionbackupServerUuid(String backupServerUuid) Initializes the value for thebackupServerUuidattribute.build()Builds a newImmutableVacProcessedObjectResponse.from(VacProcessedObjectResponse instance) Fill a builder with attribute values from the providedVacProcessedObjectResponseinstance.Initializes the value for thejobUidattribute.latestRestorePointDate(Instant latestRestorePointDate) Initializes the optional valuelatestRestorePointDateto latestRestorePointDate.latestRestorePointDate(Optional<? extends Instant> latestRestorePointDate) Initializes the optional valuelatestRestorePointDateto latestRestorePointDate.latestRestorePointSize(long latestRestorePointSize) Initializes the optional valuelatestRestorePointSizeto latestRestorePointSize.latestRestorePointSize(Optional<Long> latestRestorePointSize) Initializes the optional valuelatestRestorePointSizeto latestRestorePointSize.Initializes the value for thenameattribute.organizationUid(String organizationUid) Initializes the value for theorganizationUidattribute.restorePoints(int restorePoints) Initializes the optional valuerestorePointsto restorePoints.restorePoints(Optional<Integer> restorePoints) Initializes the optional valuerestorePointsto restorePoints.totalRestorePointSize(long totalRestorePointSize) Initializes the optional valuetotalRestorePointSizeto totalRestorePointSize.totalRestorePointSize(Optional<Long> totalRestorePointSize) Initializes the optional valuetotalRestorePointSizeto totalRestorePointSize.usedSourceSize(long usedSourceSize) Initializes the optional valueusedSourceSizeto usedSourceSize.usedSourceSize(Optional<Long> usedSourceSize) Initializes the optional valueusedSourceSizeto usedSourceSize.Initializes the value for theuuidattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableVacProcessedObjectResponse.Builder from(VacProcessedObjectResponse instance) Fill a builder with attribute values from the providedVacProcessedObjectResponseinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
uuid
Initializes the value for theuuidattribute.- Parameters:
uuid- The value for uuid- Returns:
thisbuilder for use in a chained invocation
-
name
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
jobUid
@CanIgnoreReturnValue public final ImmutableVacProcessedObjectResponse.Builder jobUid(String jobUid) Initializes the value for thejobUidattribute.- Parameters:
jobUid- The value for jobUid- Returns:
thisbuilder for use in a chained invocation
-
backupServerUuid
@CanIgnoreReturnValue public final ImmutableVacProcessedObjectResponse.Builder backupServerUuid(String backupServerUuid) Initializes the value for thebackupServerUuidattribute.- Parameters:
backupServerUuid- The value for backupServerUuid- Returns:
thisbuilder for use in a chained invocation
-
organizationUid
@CanIgnoreReturnValue public final ImmutableVacProcessedObjectResponse.Builder organizationUid(String organizationUid) Initializes the value for theorganizationUidattribute.- Parameters:
organizationUid- The value for organizationUid- Returns:
thisbuilder for use in a chained invocation
-
usedSourceSize
@CanIgnoreReturnValue public final ImmutableVacProcessedObjectResponse.Builder usedSourceSize(long usedSourceSize) Initializes the optional valueusedSourceSizeto usedSourceSize.- Parameters:
usedSourceSize- The value for usedSourceSize- Returns:
thisbuilder for chained invocation
-
usedSourceSize
@CanIgnoreReturnValue public final ImmutableVacProcessedObjectResponse.Builder usedSourceSize(Optional<Long> usedSourceSize) Initializes the optional valueusedSourceSizeto usedSourceSize.- Parameters:
usedSourceSize- The value for usedSourceSize- Returns:
thisbuilder for use in a chained invocation
-
totalRestorePointSize
@CanIgnoreReturnValue public final ImmutableVacProcessedObjectResponse.Builder totalRestorePointSize(long totalRestorePointSize) Initializes the optional valuetotalRestorePointSizeto totalRestorePointSize.- Parameters:
totalRestorePointSize- The value for totalRestorePointSize- Returns:
thisbuilder for chained invocation
-
totalRestorePointSize
@CanIgnoreReturnValue public final ImmutableVacProcessedObjectResponse.Builder totalRestorePointSize(Optional<Long> totalRestorePointSize) Initializes the optional valuetotalRestorePointSizeto totalRestorePointSize.- Parameters:
totalRestorePointSize- The value for totalRestorePointSize- Returns:
thisbuilder for use in a chained invocation
-
latestRestorePointSize
@CanIgnoreReturnValue public final ImmutableVacProcessedObjectResponse.Builder latestRestorePointSize(long latestRestorePointSize) Initializes the optional valuelatestRestorePointSizeto latestRestorePointSize.- Parameters:
latestRestorePointSize- The value for latestRestorePointSize- Returns:
thisbuilder for chained invocation
-
latestRestorePointSize
@CanIgnoreReturnValue public final ImmutableVacProcessedObjectResponse.Builder latestRestorePointSize(Optional<Long> latestRestorePointSize) Initializes the optional valuelatestRestorePointSizeto latestRestorePointSize.- Parameters:
latestRestorePointSize- The value for latestRestorePointSize- Returns:
thisbuilder for use in a chained invocation
-
restorePoints
@CanIgnoreReturnValue public final ImmutableVacProcessedObjectResponse.Builder restorePoints(int restorePoints) Initializes the optional valuerestorePointsto restorePoints.- Parameters:
restorePoints- The value for restorePoints- Returns:
thisbuilder for chained invocation
-
restorePoints
@CanIgnoreReturnValue public final ImmutableVacProcessedObjectResponse.Builder restorePoints(Optional<Integer> restorePoints) Initializes the optional valuerestorePointsto restorePoints.- Parameters:
restorePoints- The value for restorePoints- Returns:
thisbuilder for use in a chained invocation
-
latestRestorePointDate
@CanIgnoreReturnValue public final ImmutableVacProcessedObjectResponse.Builder latestRestorePointDate(Instant latestRestorePointDate) Initializes the optional valuelatestRestorePointDateto latestRestorePointDate.- Parameters:
latestRestorePointDate- The value for latestRestorePointDate- Returns:
thisbuilder for chained invocation
-
latestRestorePointDate
@CanIgnoreReturnValue public final ImmutableVacProcessedObjectResponse.Builder latestRestorePointDate(Optional<? extends Instant> latestRestorePointDate) Initializes the optional valuelatestRestorePointDateto latestRestorePointDate.- Parameters:
latestRestorePointDate- The value for latestRestorePointDate- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableVacProcessedObjectResponse.- Returns:
- An immutable instance of VacProcessedObjectResponse
- Throws:
IllegalStateException- if any required attributes are missing
-