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 ImmutableRuntimeSpeccopyOf(RuntimeSpec instance) Creates an immutable copy of aRuntimeSpecvalue.booleanThis instance is equal to all instances ofImmutableRuntimeSpecthat have equal attribute values.inthashCode()Computes a hash code from attributes:provider,version,applicationClass,metadata,dependencies,capabilities.toString()Prints the immutable valueRuntimeSpecwith attribute values.final ImmutableRuntimeSpecwithApplicationClass(String value) Copy the current immutable object by setting a value for theapplicationClassattribute.final ImmutableRuntimeSpecwithCapabilities(Map<String, ? extends CamelCapability> entries) Copy the current immutable object by replacing thecapabilitiesmap with the specified map.final ImmutableRuntimeSpecwithDependencies(Iterable<? extends Artifact> elements) Copy the current immutable object with elements that replace the content ofdependencies.final ImmutableRuntimeSpecwithDependencies(Artifact... elements) Copy the current immutable object with elements that replace the content ofdependencies.final ImmutableRuntimeSpecwithMetadata(Map<String, ? extends String> entries) Copy the current immutable object by replacing themetadatamap with the specified map.final ImmutableRuntimeSpecwithProvider(String value) Copy the current immutable object by setting a value for theproviderattribute.final ImmutableRuntimeSpecwithVersion(String value) Copy the current immutable object by setting a value for theversionattribute.
-
Method Details
-
getProvider
- Specified by:
getProviderin interfaceRuntimeSpec- Returns:
- The value of the
providerattribute
-
getVersion
- Specified by:
getVersionin interfaceRuntimeSpec- Returns:
- The value of the
versionattribute
-
getApplicationClass
- Specified by:
getApplicationClassin interfaceRuntimeSpec- Returns:
- The value of the
applicationClassattribute
-
getMetadata
- Specified by:
getMetadatain interfaceRuntimeSpec- Returns:
- The value of the
metadataattribute
-
getDependencies
- Specified by:
getDependenciesin interfaceRuntimeSpec- Returns:
- The value of the
dependenciesattribute
-
getCapabilities
- Specified by:
getCapabilitiesin interfaceRuntimeSpec- Returns:
- The value of the
capabilitiesattribute
-
withProvider
Copy the current immutable object by setting a value for theproviderattribute. 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
thisobject
-
withVersion
Copy the current immutable object by setting a value for theversionattribute. 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
thisobject
-
withApplicationClass
Copy the current immutable object by setting a value for theapplicationClassattribute. 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
thisobject
-
withMetadata
Copy the current immutable object by replacing themetadatamap 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
thisobject
-
withDependencies
Copy the current immutable object with elements that replace the content ofdependencies.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
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
thisobject
-
withCapabilities
Copy the current immutable object by replacing thecapabilitiesmap 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
thisobject
-
equals
This instance is equal to all instances ofImmutableRuntimeSpecthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:provider,version,applicationClass,metadata,dependencies,capabilities. -
toString
Prints the immutable valueRuntimeSpecwith attribute values. -
copyOf
Creates an immutable copy of aRuntimeSpecvalue. 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
-