Record Class IaasStorage

java.lang.Object
java.lang.Record
com.iland.core.api.cohesity.alert.IaasStorage
Record Components:
reservedStorageBytes - the reserved storage measured in bytes
bytesRead - the total bytes read as of instant.
instant - the instant to use for time calculations
All Implemented Interfaces:
Serializable

public record IaasStorage(long reservedStorageBytes, long bytesRead, Instant instant) extends Record implements Serializable
A storage model.
See Also:
  • Constructor Details

    • IaasStorage

      public IaasStorage(long reservedStorageBytes, long bytesRead, Instant instant)
      Creates an instance of a IaasStorage record class.
      Parameters:
      reservedStorageBytes - the value for the reservedStorageBytes record component
      bytesRead - the value for the bytesRead record component
      instant - the value for the instant record component
  • Method Details

    • isBursting

      public boolean isBursting()
    • calculateBurstBytes

      public long calculateBurstBytes()
    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • reservedStorageBytes

      public long reservedStorageBytes()
      Returns the value of the reservedStorageBytes record component.
      Returns:
      the value of the reservedStorageBytes record component
    • bytesRead

      public long bytesRead()
      Returns the value of the bytesRead record component.
      Returns:
      the value of the bytesRead record component
    • instant

      public Instant instant()
      Returns the value of the instant record component.
      Returns:
      the value of the instant record component