Class ImmutableCamelCatalog
java.lang.Object
org.apache.camel.k.catalog.model.k8s.crd.ImmutableCamelCatalog
- All Implemented Interfaces:
CamelCatalog
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableCamelCatalog
extends Object
implements CamelCatalog
Immutable implementation of
CamelCatalog.
Use the builder to create immutable instances:
new CamelCatalog.Builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableCamelCatalogcopyOf(CamelCatalog instance) Creates an immutable copy of aCamelCatalogvalue.booleanThis instance is equal to all instances ofImmutableCamelCatalogthat have equal attribute values.getKind()getSpec()inthashCode()Computes a hash code from attributes:apiVersion,kind,metadata,spec.toString()Prints the immutable valueCamelCatalogwith attribute values.final ImmutableCamelCatalogwithApiVersion(String value) Copy the current immutable object by setting a value for theapiVersionattribute.final ImmutableCamelCatalogCopy the current immutable object by setting a value for thekindattribute.final ImmutableCamelCatalogwithMetadata(ObjectMeta value) Copy the current immutable object by setting a value for themetadataattribute.final ImmutableCamelCatalogwithSpec(CamelCatalogSpec value) Copy the current immutable object by setting a value for thespecattribute.
-
Method Details
-
getApiVersion
- Specified by:
getApiVersionin interfaceCamelCatalog- Returns:
- The value of the
apiVersionattribute
-
getKind
- Specified by:
getKindin interfaceCamelCatalog- Returns:
- The value of the
kindattribute
-
getMetadata
- Specified by:
getMetadatain interfaceCamelCatalog- Returns:
- The value of the
metadataattribute
-
getSpec
- Specified by:
getSpecin interfaceCamelCatalog- Returns:
- The value of the
specattribute
-
withApiVersion
Copy the current immutable object by setting a value for theapiVersionattribute. 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
thisobject
-
withKind
Copy the current immutable object by setting a value for thekindattribute. 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
thisobject
-
withMetadata
Copy the current immutable object by setting a value for themetadataattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for metadata- Returns:
- A modified copy of the
thisobject
-
withSpec
Copy the current immutable object by setting a value for thespecattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for spec- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableCamelCatalogthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:apiVersion,kind,metadata,spec. -
toString
Prints the immutable valueCamelCatalogwith attribute values. -
copyOf
Creates an immutable copy of aCamelCatalogvalue. 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 CamelCatalog instance
-