Class ImmutableVmProtectionStatusSummaryResponse
java.lang.Object
com.iland.core.web.rest.response.location.ImmutableVmProtectionStatusSummaryResponse
- All Implemented Interfaces:
VmProtectionStatusSummaryResponse
@Generated(from="VmProtectionStatusSummaryResponse",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableVmProtectionStatusSummaryResponse
extends Object
implements VmProtectionStatusSummaryResponse
Immutable implementation of
VmProtectionStatusSummaryResponse.
Use the builder to create immutable instances:
ImmutableVmProtectionStatusSummaryResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableVmProtectionStatusSummaryResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableVmProtectionStatusSummaryResponse.copyOf(VmProtectionStatusSummaryResponse instance) Creates an immutable copy of aVmProtectionStatusSummaryResponsevalue.booleanThis instance is equal to all instances ofImmutableVmProtectionStatusSummaryResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:vmsProtected,vmsUnProtected,totalVms.toString()Prints the immutable valueVmProtectionStatusSummaryResponsewith attribute values.inttotalVms()Get the total number of VMs for a user's company inventory.intGet the number of protected VMs for a user's company inventory.intGet the number of unprotected VMs for a user's company inventory.withTotalVms(int value) Copy the current immutable object by setting a value for thetotalVmsattribute.withVmsProtected(int value) Copy the current immutable object by setting a value for thevmsProtectedattribute.withVmsUnProtected(int value) Copy the current immutable object by setting a value for thevmsUnProtectedattribute.
-
Method Details
-
vmsProtected
public int vmsProtected()Get the number of protected VMs for a user's company inventory.- Specified by:
vmsProtectedin interfaceVmProtectionStatusSummaryResponse
-
vmsUnProtected
public int vmsUnProtected()Get the number of unprotected VMs for a user's company inventory.- Specified by:
vmsUnProtectedin interfaceVmProtectionStatusSummaryResponse
-
totalVms
public int totalVms()Get the total number of VMs for a user's company inventory.- Specified by:
totalVmsin interfaceVmProtectionStatusSummaryResponse
-
withVmsProtected
Copy the current immutable object by setting a value for thevmsProtectedattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for vmsProtected- Returns:
- A modified copy of the
thisobject
-
withVmsUnProtected
Copy the current immutable object by setting a value for thevmsUnProtectedattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for vmsUnProtected- Returns:
- A modified copy of the
thisobject
-
withTotalVms
Copy the current immutable object by setting a value for thetotalVmsattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for totalVms- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableVmProtectionStatusSummaryResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:vmsProtected,vmsUnProtected,totalVms. -
toString
Prints the immutable valueVmProtectionStatusSummaryResponsewith attribute values. -
copyOf
public static ImmutableVmProtectionStatusSummaryResponse copyOf(VmProtectionStatusSummaryResponse instance) Creates an immutable copy of aVmProtectionStatusSummaryResponsevalue. 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 VmProtectionStatusSummaryResponse instance
-
builder
Creates a builder forImmutableVmProtectionStatusSummaryResponse.ImmutableVmProtectionStatusSummaryResponse.builder() .vmsProtected(int) // requiredvmsProtected.vmsUnProtected(int) // requiredvmsUnProtected.totalVms(int) // requiredtotalVms.build();- Returns:
- A new ImmutableVmProtectionStatusSummaryResponse builder
-