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().

  • Method Details

    • vmsProtected

      public int vmsProtected()
      Get the number of protected VMs for a user's company inventory.
      Specified by:
      vmsProtected in interface VmProtectionStatusSummaryResponse
    • vmsUnProtected

      public int vmsUnProtected()
      Get the number of unprotected VMs for a user's company inventory.
      Specified by:
      vmsUnProtected in interface VmProtectionStatusSummaryResponse
    • totalVms

      public int totalVms()
      Get the total number of VMs for a user's company inventory.
      Specified by:
      totalVms in interface VmProtectionStatusSummaryResponse
    • withVmsProtected

      public final ImmutableVmProtectionStatusSummaryResponse withVmsProtected(int value)
      Copy the current immutable object by setting a value for the vmsProtected attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for vmsProtected
      Returns:
      A modified copy of the this object
    • withVmsUnProtected

      public final ImmutableVmProtectionStatusSummaryResponse withVmsUnProtected(int value)
      Copy the current immutable object by setting a value for the vmsUnProtected attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for vmsUnProtected
      Returns:
      A modified copy of the this object
    • withTotalVms

      public final ImmutableVmProtectionStatusSummaryResponse withTotalVms(int value)
      Copy the current immutable object by setting a value for the totalVms attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for totalVms
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableVmProtectionStatusSummaryResponse that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: vmsProtected, vmsUnProtected, totalVms.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value VmProtectionStatusSummaryResponse with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      Creates an immutable copy of a VmProtectionStatusSummaryResponse value. 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 for ImmutableVmProtectionStatusSummaryResponse.
       ImmutableVmProtectionStatusSummaryResponse.builder()
          .vmsProtected(int) // required vmsProtected
          .vmsUnProtected(int) // required vmsUnProtected
          .totalVms(int) // required totalVms
          .build();
       
      Returns:
      A new ImmutableVmProtectionStatusSummaryResponse builder