Record Class CJ1TypePackageUninstall
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1TypePackageUninstall
- All Implemented Interfaces:
CJ1ValueType
@JsonClassDescription("Parameters for uninstalling type packages.")
public record CJ1TypePackageUninstall(CJ1TypePackageTypeRemovalBehavior typeRemovalBehavior, CJ1TypePackageIdentifier packageIdentifier)
extends Record
implements CJ1ValueType
-
Constructor Summary
ConstructorsConstructorDescriptionCJ1TypePackageUninstall(CJ1TypePackageTypeRemovalBehavior typeRemovalBehavior, CJ1TypePackageIdentifier packageIdentifier) Creates an instance of aCJ1TypePackageUninstallrecord 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 thepackageIdentifierrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeRemovalBehaviorrecord component.
-
Constructor Details
-
CJ1TypePackageUninstall
public CJ1TypePackageUninstall(@JsonPropertyDescription("The type removal behavior.") CJ1TypePackageTypeRemovalBehavior typeRemovalBehavior, @JsonPropertyDescription("The type package identifier.") CJ1TypePackageIdentifier packageIdentifier) Creates an instance of aCJ1TypePackageUninstallrecord class.- Parameters:
typeRemovalBehavior- the value for thetypeRemovalBehaviorrecord componentpackageIdentifier- the value for thepackageIdentifierrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
typeRemovalBehavior
@JsonPropertyDescription("The type removal behavior.") public CJ1TypePackageTypeRemovalBehavior typeRemovalBehavior()Returns the value of thetypeRemovalBehaviorrecord component.- Returns:
- the value of the
typeRemovalBehaviorrecord component
-
packageIdentifier
@JsonPropertyDescription("The type package identifier.") public CJ1TypePackageIdentifier packageIdentifier()Returns the value of thepackageIdentifierrecord component.- Returns:
- the value of the
packageIdentifierrecord component
-