Class ImmutableCamelCatalogSpec
java.lang.Object
org.apache.camel.k.catalog.model.k8s.crd.ImmutableCamelCatalogSpec
- All Implemented Interfaces:
CamelCatalogSpec
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableCamelCatalogSpec
extends Object
implements CamelCatalogSpec
Immutable implementation of
CamelCatalogSpec
.
Use the builder to create immutable instances:
new CamelCatalogSpec.Builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builds instances of typeImmutableCamelCatalogSpec
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableCamelCatalogSpec
copyOf
(CamelCatalogSpec instance) Creates an immutable copy of aCamelCatalogSpec
value.boolean
This instance is equal to all instances ofImmutableCamelCatalogSpec
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:runtime
,artifacts
,loaders
.toString()
Prints the immutable valueCamelCatalogSpec
with attribute values.withArtifacts
(Map<String, ? extends CamelArtifact> entries) Copy the current immutable object by replacing theartifacts
map with the specified map.withLoaders
(Map<String, ? extends CamelLoader> entries) Copy the current immutable object by replacing theloaders
map with the specified map.withRuntime
(RuntimeSpec value) Copy the current immutable object by setting a value for theruntime
attribute.
-
Method Details
-
getRuntime
- Specified by:
getRuntime
in interfaceCamelCatalogSpec
- Returns:
- The value of the
runtime
attribute
-
getArtifacts
- Specified by:
getArtifacts
in interfaceCamelCatalogSpec
- Returns:
- The value of the
artifacts
attribute
-
getLoaders
- Specified by:
getLoaders
in interfaceCamelCatalogSpec
- Returns:
- The value of the
loaders
attribute
-
withRuntime
Copy the current immutable object by setting a value for theruntime
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for runtime- Returns:
- A modified copy of the
this
object
-
withArtifacts
Copy the current immutable object by replacing theartifacts
map with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
entries
- The entries to be added to the artifacts map- Returns:
- A modified copy of
this
object
-
withLoaders
Copy the current immutable object by replacing theloaders
map with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
entries
- The entries to be added to the loaders map- Returns:
- A modified copy of
this
object
-
equals
This instance is equal to all instances ofImmutableCamelCatalogSpec
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:runtime
,artifacts
,loaders
. -
toString
Prints the immutable valueCamelCatalogSpec
with attribute values. -
copyOf
Creates an immutable copy of aCamelCatalogSpec
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 CamelCatalogSpec instance
-