Record Class AgentTemplate.CacheVolume
java.lang.Object
java.lang.Record
io.jenkins.plugins.namespacecloud.AgentTemplate.CacheVolume
- Enclosing class:
AgentTemplate
public static record AgentTemplate.CacheVolume(String mountPoint, String tag, long sizeGb)
extends Record
A Namespace cache volume, reattached across instances that share the tag.
Sized in GB, as Namespace's own volume settings are.
-
Constructor Summary
ConstructorsConstructorDescriptionCacheVolume(String mountPoint, String tag, long sizeGb) Creates an instance of aCacheVolumerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themountPointrecord component.longsizeGb()Returns the value of thesizeGbrecord component.longsizeMb()The API takes megabytes.tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CacheVolume
Creates an instance of aCacheVolumerecord class.- Parameters:
mountPoint- the value for themountPointrecord componenttag- the value for thetagrecord componentsizeGb- the value for thesizeGbrecord component
-
-
Method Details
-
sizeMb
public long sizeMb()The API takes megabytes. -
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 '=='. -
mountPoint
Returns the value of themountPointrecord component.- Returns:
- the value of the
mountPointrecord component
-
tag
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-
sizeGb
public long sizeGb()Returns the value of thesizeGbrecord component.- Returns:
- the value of the
sizeGbrecord component
-