Class ImmutableCamelCatalog

  • All Implemented Interfaces:
    CamelCatalog

    @Generated("org.immutables.processor.ProxyProcessor")
    public final class ImmutableCamelCatalog
    extends Object
    implements CamelCatalog
    Immutable implementation of CamelCatalog.

    Use the builder to create immutable instances: new CamelCatalog.Builder().

    • Method Detail

      • getKind

        public String getKind()
        Specified by:
        getKind in interface CamelCatalog
        Returns:
        The value of the kind attribute
      • withApiVersion

        public final ImmutableCamelCatalog withApiVersion​(String value)
        Copy the current immutable object by setting a value for the apiVersion attribute. An equals check used to prevent copying of the same value by returning this.
        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 the kind attribute. An equals check used to prevent copying of the same value by returning this.
        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 the metadata attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        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 the spec attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        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 of ImmutableCamelCatalog that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: apiVersion, kind, metadata, spec.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value CamelCatalog with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • copyOf

        public static ImmutableCamelCatalog copyOf​(CamelCatalog instance)
        Creates an immutable copy of a CamelCatalog 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