Record Class DeletedFinalStateUnknown<ApiType extends KubernetesObject>
java.lang.Object
java.lang.Record
io.micronaut.kubernetes.client.openapi.informer.DeletedFinalStateUnknown<ApiType>
- Type Parameters:
ApiType- kubernetes api type- Record Components:
key- the object keyobject- the kubernetes object
- All Implemented Interfaces:
KubernetesObject,KubernetesType
@Internal
public record DeletedFinalStateUnknown<ApiType extends KubernetesObject>(@NonNull String key, ApiType extends KubernetesObject object)
extends Record
implements KubernetesObject
DeletedFinalStateUnknown is placed into a DeltaFIFO in the case where an object was deleted
but the watch deletion event was missed. In this case we don't know the final "resting" state
of the object, so there is a chance the included object is stale.
-
Constructor Summary
ConstructorsConstructorDescriptionDeletedFinalStateUnknown(@NonNull String key, ApiType object) Creates an instance of aDeletedFinalStateUnknownrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Gets api version.getKind()Gets kind.Gets metadata.final inthashCode()Returns a hash code value for this object.@NonNull Stringkey()Returns the value of thekeyrecord component.object()Returns the value of theobjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
getMetadata
Description copied from interface:KubernetesObjectGets metadata.ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
- Specified by:
getMetadatain interfaceKubernetesObject- Returns:
- the metadata
-
getApiVersion
Description copied from interface:KubernetesTypeGets api version.APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: Resources
- Specified by:
getApiVersionin interfaceKubernetesType- Returns:
- the api version
-
getKind
Description copied from interface:KubernetesTypeGets kind.Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: Types (Kinds)
- Specified by:
getKindin interfaceKubernetesType- Returns:
- the kind
-
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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
object
Returns the value of theobjectrecord component.- Returns:
- the value of the
objectrecord component
-