Class ImmutableRawCloudServiceBinding

  • All Implemented Interfaces:
    Derivable<CloudServiceBinding>

    @Generated("org.immutables.processor.ProxyProcessor")
    public final class ImmutableRawCloudServiceBinding
    extends RawCloudServiceBinding
    Immutable implementation of RawCloudServiceBinding.

    Use the builder to create immutable instances: ImmutableRawCloudServiceBinding.builder(). Use the static factory method to create immutable instances: ImmutableRawCloudServiceBinding.of().

    • Method Detail

      • getServiceBinding

        public org.cloudfoundry.client.v3.servicebindings.ServiceBindingResource getServiceBinding()
        Specified by:
        getServiceBinding in class RawCloudServiceBinding
        Returns:
        The value of the serviceBinding attribute
      • withServiceBinding

        public final ImmutableRawCloudServiceBinding withServiceBinding​(org.cloudfoundry.client.v3.servicebindings.ServiceBindingResource value)
        Copy the current immutable object by setting a value for the serviceBinding attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for serviceBinding
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(Object another)
        This instance is equal to all instances of ImmutableRawCloudServiceBinding 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: serviceBinding.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

        public static ImmutableRawCloudServiceBinding of​(org.cloudfoundry.client.v3.servicebindings.ServiceBindingResource serviceBinding)
        Construct a new immutable RawCloudServiceBinding instance.
        Parameters:
        serviceBinding - The value for the serviceBinding attribute
        Returns:
        An immutable RawCloudServiceBinding instance
      • copyOf

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