@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableVmProtectionStatusSummaryResponse extends Object implements VmProtectionStatusSummaryResponse
VmProtectionStatusSummaryResponse
.
Use the builder to create immutable instances:
ImmutableVmProtectionStatusSummaryResponse.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableVmProtectionStatusSummaryResponse.Builder
Builds instances of type
ImmutableVmProtectionStatusSummaryResponse . |
Modifier and Type | Method and Description |
---|---|
static ImmutableVmProtectionStatusSummaryResponse.Builder |
builder()
Creates a builder for
ImmutableVmProtectionStatusSummaryResponse . |
static ImmutableVmProtectionStatusSummaryResponse |
copyOf(VmProtectionStatusSummaryResponse instance)
Creates an immutable copy of a
VmProtectionStatusSummaryResponse value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableVmProtectionStatusSummaryResponse that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
vmsProtected , vmsUnProtected , totalVms . |
String |
toString()
Prints the immutable value
VmProtectionStatusSummaryResponse with attribute values. |
int |
totalVms()
Get the total number of VMs for a user's company inventory.
|
int |
vmsProtected()
Get the number of protected VMs for a user's company inventory.
|
int |
vmsUnProtected()
Get the number of unprotected VMs for a user's company inventory.
|
ImmutableVmProtectionStatusSummaryResponse |
withTotalVms(int value)
Copy the current immutable object by setting a value for the
totalVms attribute. |
ImmutableVmProtectionStatusSummaryResponse |
withVmsProtected(int value)
Copy the current immutable object by setting a value for the
vmsProtected attribute. |
ImmutableVmProtectionStatusSummaryResponse |
withVmsUnProtected(int value)
Copy the current immutable object by setting a value for the
vmsUnProtected attribute. |
public int vmsProtected()
vmsProtected
in interface VmProtectionStatusSummaryResponse
public int vmsUnProtected()
vmsUnProtected
in interface VmProtectionStatusSummaryResponse
public int totalVms()
totalVms
in interface VmProtectionStatusSummaryResponse
public final ImmutableVmProtectionStatusSummaryResponse withVmsProtected(int value)
vmsProtected
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for vmsProtectedthis
objectpublic final ImmutableVmProtectionStatusSummaryResponse withVmsUnProtected(int value)
vmsUnProtected
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for vmsUnProtectedthis
objectpublic final ImmutableVmProtectionStatusSummaryResponse withTotalVms(int value)
totalVms
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for totalVmsthis
objectpublic boolean equals(@Nullable Object another)
ImmutableVmProtectionStatusSummaryResponse
that have equal attribute values.public int hashCode()
vmsProtected
, vmsUnProtected
, totalVms
.public String toString()
VmProtectionStatusSummaryResponse
with attribute values.public static ImmutableVmProtectionStatusSummaryResponse copyOf(VmProtectionStatusSummaryResponse instance)
VmProtectionStatusSummaryResponse
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 ImmutableVmProtectionStatusSummaryResponse.Builder builder()
ImmutableVmProtectionStatusSummaryResponse
.
ImmutableVmProtectionStatusSummaryResponse.builder() .vmsProtected(int) // requiredvmsProtected
.vmsUnProtected(int) // requiredvmsUnProtected
.totalVms(int) // requiredtotalVms
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.