Package org.apache.camel.k.catalog.model
Class ImmutableCamelScheme
java.lang.Object
org.apache.camel.k.catalog.model.ImmutableCamelScheme
- All Implemented Interfaces:
Comparable<CamelScheme>,CamelScheme
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableCamelScheme
extends Object
implements CamelScheme
Immutable implementation of
CamelScheme.
Use the builder to create immutable instances:
new CamelScheme.Builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableCamelSchemecopyOf(CamelScheme instance) Creates an immutable copy of aCamelSchemevalue.booleanThis instance is equal to all instances ofImmutableCamelSchemethat have equal attribute values.getId()inthashCode()Computes a hash code from attributes:id.booleanhttp()booleanpassive()toString()Prints the immutable valueCamelSchemewith attribute values.final ImmutableCamelSchemewithConsumer(Optional<? extends CamelScopedArtifact> optional) Copy the current immutable object by setting an optional value for theconsumerattribute.final ImmutableCamelSchemewithConsumer(CamelScopedArtifact value) Copy the current immutable object by setting a present value for the optionalconsumerattribute.final ImmutableCamelSchemewithHttp(boolean value) Copy the current immutable object by setting a value for thehttpattribute.final ImmutableCamelSchemeCopy the current immutable object by setting a value for theidattribute.final ImmutableCamelSchemewithPassive(boolean value) Copy the current immutable object by setting a value for thepassiveattribute.final ImmutableCamelSchemewithProducer(Optional<? extends CamelScopedArtifact> optional) Copy the current immutable object by setting an optional value for theproducerattribute.final ImmutableCamelSchemewithProducer(CamelScopedArtifact value) Copy the current immutable object by setting a present value for the optionalproducerattribute.final ImmutableCamelSchemewithRequiredCapabilities(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofrequiredCapabilities.final ImmutableCamelSchemewithRequiredCapabilities(String... elements) Copy the current immutable object with elements that replace the content ofrequiredCapabilities.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.k.catalog.model.CamelScheme
compareTo
-
Method Details
-
getId
- Specified by:
getIdin interfaceCamelScheme- Returns:
- The value of the
idattribute
-
http
public boolean http()- Specified by:
httpin interfaceCamelScheme- Returns:
- The value of the
httpattribute
-
passive
public boolean passive()- Specified by:
passivein interfaceCamelScheme- Returns:
- The value of the
passiveattribute
-
getRequiredCapabilities
- Specified by:
getRequiredCapabilitiesin interfaceCamelScheme- Returns:
- The value of the
requiredCapabilitiesattribute
-
getProducer
- Specified by:
getProducerin interfaceCamelScheme- Returns:
- The value of the
producerattribute
-
getConsumer
- Specified by:
getConsumerin interfaceCamelScheme- Returns:
- The value of the
consumerattribute
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
withHttp
Copy the current immutable object by setting a value for thehttpattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for http- Returns:
- A modified copy of the
thisobject
-
withPassive
Copy the current immutable object by setting a value for thepassiveattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for passive- Returns:
- A modified copy of the
thisobject
-
withRequiredCapabilities
Copy the current immutable object with elements that replace the content ofrequiredCapabilities.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withRequiredCapabilities
Copy the current immutable object with elements that replace the content ofrequiredCapabilities. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of requiredCapabilities elements to set- Returns:
- A modified copy of
thisobject
-
withProducer
Copy the current immutable object by setting a present value for the optionalproducerattribute.- Parameters:
value- The value for producer- Returns:
- A modified copy of
thisobject
-
withProducer
Copy the current immutable object by setting an optional value for theproducerattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for producer- Returns:
- A modified copy of
thisobject
-
withConsumer
Copy the current immutable object by setting a present value for the optionalconsumerattribute.- Parameters:
value- The value for consumer- Returns:
- A modified copy of
thisobject
-
withConsumer
Copy the current immutable object by setting an optional value for theconsumerattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for consumer- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableCamelSchemethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id. -
toString
Prints the immutable valueCamelSchemewith attribute values. -
copyOf
Creates an immutable copy of aCamelSchemevalue. 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 CamelScheme instance
-