Class ImmutableRuntimeSpec
java.lang.Object
org.apache.camel.k.catalog.model.k8s.crd.ImmutableRuntimeSpec
- All Implemented Interfaces:
RuntimeSpec
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableRuntimeSpec
extends Object
implements RuntimeSpec
Immutable implementation of
RuntimeSpec
.
Use the builder to create immutable instances:
new RuntimeSpec.Builder()
.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableRuntimeSpec
copyOf
(RuntimeSpec instance) Creates an immutable copy of aRuntimeSpec
value.boolean
This instance is equal to all instances ofImmutableRuntimeSpec
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:provider
,version
,applicationClass
,metadata
,dependencies
,capabilities
.toString()
Prints the immutable valueRuntimeSpec
with attribute values.final ImmutableRuntimeSpec
withApplicationClass
(String value) Copy the current immutable object by setting a value for theapplicationClass
attribute.final ImmutableRuntimeSpec
withCapabilities
(Map<String, ? extends CamelCapability> entries) Copy the current immutable object by replacing thecapabilities
map with the specified map.final ImmutableRuntimeSpec
withDependencies
(Iterable<? extends Artifact> elements) Copy the current immutable object with elements that replace the content ofdependencies
.final ImmutableRuntimeSpec
withDependencies
(Artifact... elements) Copy the current immutable object with elements that replace the content ofdependencies
.final ImmutableRuntimeSpec
withMetadata
(Map<String, ? extends String> entries) Copy the current immutable object by replacing themetadata
map with the specified map.final ImmutableRuntimeSpec
withProvider
(String value) Copy the current immutable object by setting a value for theprovider
attribute.final ImmutableRuntimeSpec
withVersion
(String value) Copy the current immutable object by setting a value for theversion
attribute.
-
Method Details
-
getProvider
- Specified by:
getProvider
in interfaceRuntimeSpec
- Returns:
- The value of the
provider
attribute
-
getVersion
- Specified by:
getVersion
in interfaceRuntimeSpec
- Returns:
- The value of the
version
attribute
-
getApplicationClass
- Specified by:
getApplicationClass
in interfaceRuntimeSpec
- Returns:
- The value of the
applicationClass
attribute
-
getMetadata
- Specified by:
getMetadata
in interfaceRuntimeSpec
- Returns:
- The value of the
metadata
attribute
-
getDependencies
- Specified by:
getDependencies
in interfaceRuntimeSpec
- Returns:
- The value of the
dependencies
attribute
-
getCapabilities
- Specified by:
getCapabilities
in interfaceRuntimeSpec
- Returns:
- The value of the
capabilities
attribute
-
withProvider
Copy the current immutable object by setting a value for theprovider
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for provider- Returns:
- A modified copy of the
this
object
-
withVersion
Copy the current immutable object by setting a value for theversion
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for version- Returns:
- A modified copy of the
this
object
-
withApplicationClass
Copy the current immutable object by setting a value for theapplicationClass
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for applicationClass- Returns:
- A modified copy of the
this
object
-
withMetadata
Copy the current immutable object by replacing themetadata
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 metadata map- Returns:
- A modified copy of
this
object
-
withDependencies
Copy the current immutable object with elements that replace the content ofdependencies
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withDependencies
Copy the current immutable object with elements that replace the content ofdependencies
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of dependencies elements to set- Returns:
- A modified copy of
this
object
-
withCapabilities
Copy the current immutable object by replacing thecapabilities
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 capabilities map- Returns:
- A modified copy of
this
object
-
equals
This instance is equal to all instances ofImmutableRuntimeSpec
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:provider
,version
,applicationClass
,metadata
,dependencies
,capabilities
. -
toString
Prints the immutable valueRuntimeSpec
with attribute values. -
copyOf
Creates an immutable copy of aRuntimeSpec
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 RuntimeSpec instance
-