@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableCamelCatalog extends Object implements CamelCatalog
CamelCatalog.
Use the builder to create immutable instances:
new CamelCatalog.Builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCamelCatalog.Builder
Builds instances of type
ImmutableCamelCatalog. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCamelCatalog |
copyOf(CamelCatalog instance)
Creates an immutable copy of a
CamelCatalog value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCamelCatalog 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 value
CamelCatalog with attribute values. |
ImmutableCamelCatalog |
withApiVersion(String value)
Copy the current immutable object by setting a value for the
apiVersion attribute. |
ImmutableCamelCatalog |
withKind(String value)
Copy the current immutable object by setting a value for the
kind attribute. |
ImmutableCamelCatalog |
withMetadata(ObjectMeta value)
Copy the current immutable object by setting a value for the
metadata attribute. |
ImmutableCamelCatalog |
withSpec(CamelCatalogSpec value)
Copy the current immutable object by setting a value for the
spec attribute. |
public String getApiVersion()
getApiVersion in interface CamelCatalogapiVersion attributepublic String getKind()
getKind in interface CamelCatalogkind attributepublic ObjectMeta getMetadata()
getMetadata in interface CamelCatalogmetadata attributepublic CamelCatalogSpec getSpec()
getSpec in interface CamelCatalogspec attributepublic final ImmutableCamelCatalog withApiVersion(String value)
apiVersion attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for apiVersionthis objectpublic final ImmutableCamelCatalog withKind(String value)
kind attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for kindthis objectpublic final ImmutableCamelCatalog withMetadata(ObjectMeta value)
metadata attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for metadatathis objectpublic final ImmutableCamelCatalog withSpec(CamelCatalogSpec value)
spec attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for specthis objectpublic boolean equals(Object another)
ImmutableCamelCatalog that have equal attribute values.public int hashCode()
apiVersion, kind, metadata, spec.public String toString()
CamelCatalog with attribute values.public static ImmutableCamelCatalog copyOf(CamelCatalog instance)
CamelCatalog 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 © 2019 The Apache Software Foundation. All rights reserved.