Class ImmutableTypeMeta
java.lang.Object
org.apache.camel.k.catalog.model.k8s.ImmutableTypeMeta
- All Implemented Interfaces:
TypeMeta
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableTypeMeta
extends Object
implements TypeMeta
Immutable implementation of
TypeMeta
.
Use the builder to create immutable instances:
new TypeMeta.Builder()
.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableTypeMeta
Creates an immutable copy of aTypeMeta
value.boolean
This instance is equal to all instances ofImmutableTypeMeta
that have equal attribute values.getKind()
int
hashCode()
Computes a hash code from attributes:apiVersion
,kind
.toString()
Prints the immutable valueTypeMeta
with attribute values.final ImmutableTypeMeta
withApiVersion
(String value) Copy the current immutable object by setting a value for theapiVersion
attribute.final ImmutableTypeMeta
Copy the current immutable object by setting a value for thekind
attribute.
-
Method Details
-
getApiVersion
- Specified by:
getApiVersion
in interfaceTypeMeta
- Returns:
- The value of the
apiVersion
attribute
-
getKind
-
withApiVersion
Copy the current immutable object by setting a value for theapiVersion
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for apiVersion- Returns:
- A modified copy of the
this
object
-
withKind
Copy the current immutable object by setting a value for thekind
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for kind- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableTypeMeta
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:apiVersion
,kind
. -
toString
Prints the immutable valueTypeMeta
with attribute values. -
copyOf
Creates an immutable copy of aTypeMeta
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable TypeMeta instance
-