Record Class CosIdProperties.Machine
java.lang.Object
java.lang.Record
me.ahoo.cosid.spring.autoconfigure.CosIdProperties.Machine
- Record Components:
namespace- the namespace of the slot; defaultcosid.namespaceleased- a slot leased from a storefixed- a slot the deployment keeps unique (cosid.machine.static)
- Enclosing class:
CosIdProperties
public static record CosIdProperties.Machine(String namespace, CosIdProperties.Leased leased, CosIdProperties.Static fixed)
extends Record
The default machine slot: exactly one of
leased or static.-
Constructor Summary
ConstructorsConstructorDescriptionMachine(String namespace, CosIdProperties.Leased leased, CosIdProperties.Static fixed) Creates an instance of aMachinerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fixed()Returns the value of thefixedrecord component.final inthashCode()Returns a hash code value for this object.leased()Returns the value of theleasedrecord component.Returns the value of thenamespacerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Machine
public Machine(String namespace, CosIdProperties.Leased leased, @Name("static") CosIdProperties.Static fixed) Creates an instance of aMachinerecord class.
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
leased
Returns the value of theleasedrecord component.- Returns:
- the value of the
leasedrecord component
-
fixed
Returns the value of thefixedrecord component.- Returns:
- the value of the
fixedrecord component
-