Record Class IaasStorage
java.lang.Object
java.lang.Record
com.iland.core.api.cohesity.alert.IaasStorage
- Record Components:
reservedStorageBytes- the reserved storage measured in bytesbytesRead- the total bytes read as ofinstant.instant- theinstantto 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 Summary
ConstructorsConstructorDescriptionIaasStorage(long reservedStorageBytes, long bytesRead, Instant instant) Creates an instance of aIaasStoragerecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thebytesReadrecord component.longfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.instant()Returns the value of theinstantrecord component.booleanlongReturns the value of thereservedStorageBytesrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
IaasStorage
Creates an instance of aIaasStoragerecord class.- Parameters:
reservedStorageBytes- the value for thereservedStorageBytesrecord componentbytesRead- the value for thebytesReadrecord componentinstant- the value for theinstantrecord component
-
-
Method Details
-
isBursting
public boolean isBursting() -
calculateBurstBytes
public long calculateBurstBytes() -
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
reservedStorageBytes
public long reservedStorageBytes()Returns the value of thereservedStorageBytesrecord component.- Returns:
- the value of the
reservedStorageBytesrecord component
-
bytesRead
public long bytesRead()Returns the value of thebytesReadrecord component.- Returns:
- the value of the
bytesReadrecord component
-
instant
Returns the value of theinstantrecord component.- Returns:
- the value of the
instantrecord component
-