Class ImmutableCamelCatalog
- java.lang.Object
-
- org.apache.camel.k.tooling.maven.model.crd.ImmutableCamelCatalog
-
- All Implemented Interfaces:
CamelCatalog
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCamelCatalog extends Object implements CamelCatalog
Immutable implementation ofCamelCatalog
.Use the builder to create immutable instances:
new CamelCatalog.Builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableCamelCatalog.Builder
Builds instances of typeImmutableCamelCatalog
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCamelCatalog
copyOf(CamelCatalog instance)
Creates an immutable copy of aCamelCatalog
value.boolean
equals(Object another)
This instance is equal to all instances ofImmutableCamelCatalog
that have equal attribute values.String
getApiVersion()
String
getKind()
ObjectMeta
getMetadata()
CamelCatalogSpec
getSpec()
int
hashCode()
Computes a hash code from attributes:apiVersion
,kind
,metadata
,spec
.String
toString()
Prints the immutable valueCamelCatalog
with attribute values.ImmutableCamelCatalog
withApiVersion(String value)
Copy the current immutable object by setting a value for theapiVersion
attribute.ImmutableCamelCatalog
withKind(String value)
Copy the current immutable object by setting a value for thekind
attribute.ImmutableCamelCatalog
withMetadata(ObjectMeta value)
Copy the current immutable object by setting a value for themetadata
attribute.ImmutableCamelCatalog
withSpec(CamelCatalogSpec value)
Copy the current immutable object by setting a value for thespec
attribute.
-
-
-
Method Detail
-
getApiVersion
public String getApiVersion()
- Specified by:
getApiVersion
in interfaceCamelCatalog
- Returns:
- The value of the
apiVersion
attribute
-
getKind
public String getKind()
- Specified by:
getKind
in interfaceCamelCatalog
- Returns:
- The value of the
kind
attribute
-
getMetadata
public ObjectMeta getMetadata()
- Specified by:
getMetadata
in interfaceCamelCatalog
- Returns:
- The value of the
metadata
attribute
-
getSpec
public CamelCatalogSpec getSpec()
- Specified by:
getSpec
in interfaceCamelCatalog
- Returns:
- The value of the
spec
attribute
-
withApiVersion
public final ImmutableCamelCatalog withApiVersion(String value)
Copy the current immutable object by setting a value for theapiVersion
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for apiVersion- Returns:
- A modified copy of the
this
object
-
withKind
public final ImmutableCamelCatalog withKind(String value)
Copy the current immutable object by setting a value for thekind
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for kind- Returns:
- A modified copy of the
this
object
-
withMetadata
public final ImmutableCamelCatalog withMetadata(ObjectMeta value)
Copy the current immutable object by setting a value for themetadata
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for metadata- Returns:
- A modified copy of the
this
object
-
withSpec
public final ImmutableCamelCatalog withSpec(CamelCatalogSpec value)
Copy the current immutable object by setting a value for thespec
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for spec- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCamelCatalog
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:apiVersion
,kind
,metadata
,spec
.
-
toString
public String toString()
Prints the immutable valueCamelCatalog
with attribute values.
-
copyOf
public static ImmutableCamelCatalog copyOf(CamelCatalog instance)
Creates an immutable copy of aCamelCatalog
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 CamelCatalog instance
-
-