Class ImmutableVmProtectionStatusSummaryResponse.Builder
java.lang.Object
com.iland.core.web.rest.response.location.ImmutableVmProtectionStatusSummaryResponse.Builder
- Enclosing class:
- ImmutableVmProtectionStatusSummaryResponse
@Generated(from="VmProtectionStatusSummaryResponse",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableVmProtectionStatusSummaryResponse.Builder
extends Object
Builds instances of type
ImmutableVmProtectionStatusSummaryResponse.
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 TypeMethodDescriptionbuild()Builds a newImmutableVmProtectionStatusSummaryResponse.from(VmProtectionStatusSummaryResponse instance) Fill a builder with attribute values from the providedVmProtectionStatusSummaryResponseinstance.totalVms(int totalVms) Initializes the value for thetotalVmsattribute.vmsProtected(int vmsProtected) Initializes the value for thevmsProtectedattribute.vmsUnProtected(int vmsUnProtected) Initializes the value for thevmsUnProtectedattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableVmProtectionStatusSummaryResponse.Builder from(VmProtectionStatusSummaryResponse instance) Fill a builder with attribute values from the providedVmProtectionStatusSummaryResponseinstance. 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
-
vmsProtected
@CanIgnoreReturnValue public final ImmutableVmProtectionStatusSummaryResponse.Builder vmsProtected(int vmsProtected) Initializes the value for thevmsProtectedattribute.- Parameters:
vmsProtected- The value for vmsProtected- Returns:
thisbuilder for use in a chained invocation
-
vmsUnProtected
@CanIgnoreReturnValue public final ImmutableVmProtectionStatusSummaryResponse.Builder vmsUnProtected(int vmsUnProtected) Initializes the value for thevmsUnProtectedattribute.- Parameters:
vmsUnProtected- The value for vmsUnProtected- Returns:
thisbuilder for use in a chained invocation
-
totalVms
@CanIgnoreReturnValue public final ImmutableVmProtectionStatusSummaryResponse.Builder totalVms(int totalVms) Initializes the value for thetotalVmsattribute.- Parameters:
totalVms- The value for totalVms- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableVmProtectionStatusSummaryResponse.- Returns:
- An immutable instance of VmProtectionStatusSummaryResponse
- Throws:
IllegalStateException- if any required attributes are missing
-