@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableCamelScheme extends Object implements CamelScheme
CamelScheme.
Use the builder to create immutable instances:
new CamelScheme.Builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCamelScheme.Builder
Builds instances of type
ImmutableCamelScheme. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCamelScheme |
copyOf(CamelScheme instance)
Creates an immutable copy of a
CamelScheme value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCamelScheme that have equal attribute values. |
String |
getId() |
int |
hashCode()
Computes a hash code from attributes:
id. |
boolean |
http() |
boolean |
passive() |
String |
toString()
Prints the immutable value
CamelScheme with attribute values. |
ImmutableCamelScheme |
withHttp(boolean value)
Copy the current immutable object by setting a value for the
http attribute. |
ImmutableCamelScheme |
withId(String value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableCamelScheme |
withPassive(boolean value)
Copy the current immutable object by setting a value for the
passive attribute. |
public String getId()
getId in interface CamelSchemeid attributepublic boolean http()
http in interface CamelSchemehttp attributepublic boolean passive()
passive in interface CamelSchemepassive attributepublic final ImmutableCamelScheme withId(String value)
id attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for idthis objectpublic final ImmutableCamelScheme withHttp(boolean value)
http attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for httpthis objectpublic final ImmutableCamelScheme withPassive(boolean value)
passive attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for passivethis objectpublic boolean equals(Object another)
ImmutableCamelScheme that have equal attribute values.public int hashCode()
id.public String toString()
CamelScheme with attribute values.public static ImmutableCamelScheme copyOf(CamelScheme instance)
CamelScheme value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copyCopyright © 2020 The Apache Software Foundation. All rights reserved.