Class ImmutableRawV3CloudServiceInstance

  • All Implemented Interfaces:
    Derivable<CloudServiceInstance>

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

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

    • Method Detail

      • getServiceInstance

        public org.cloudfoundry.client.v3.serviceinstances.ServiceInstance getServiceInstance()
        Specified by:
        getServiceInstance in class RawV3CloudServiceInstance
        Returns:
        The value of the serviceInstance attribute
      • withServiceInstance

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

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

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

        public static ImmutableRawV3CloudServiceInstance of​(org.cloudfoundry.client.v3.serviceinstances.ServiceInstance serviceInstance)
        Construct a new immutable RawV3CloudServiceInstance instance.
        Parameters:
        serviceInstance - The value for the serviceInstance attribute
        Returns:
        An immutable RawV3CloudServiceInstance instance