Class ImmutableRawCloudServiceKey

    • Method Detail

      • getServiceBindingResource

        public org.cloudfoundry.client.v3.servicebindings.ServiceBindingResource getServiceBindingResource()
        Specified by:
        getServiceBindingResource in class RawCloudServiceKey
        Returns:
        The value of the serviceBindingResource attribute
      • withServiceBindingResource

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

        public final ImmutableRawCloudServiceKey withCredentials​(Map<String,​? extends Object> entries)
        Copy the current immutable object by replacing the credentials map with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        entries - The entries to be added to the credentials map
        Returns:
        A modified copy of this object
      • withServiceInstance

        public final ImmutableRawCloudServiceKey withServiceInstance​(Derivable<CloudServiceInstance> 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 ImmutableRawCloudServiceKey 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: serviceBindingResource, credentials, serviceInstance.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

        public static ImmutableRawCloudServiceKey copyOf​(RawCloudServiceKey instance)
        Creates an immutable copy of a RawCloudServiceKey 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 RawCloudServiceKey instance
      • builder

        public static ImmutableRawCloudServiceKey.Builder builder()
        Creates a builder for ImmutableRawCloudServiceKey.
         ImmutableRawCloudServiceKey.builder()
            .serviceBindingResource(org.cloudfoundry.client.v3.servicebindings.ServiceBindingResource) // required serviceBindingResource
            .credentials(Map&lt;String, Object&gt; | null) // nullable credentials
            .serviceInstance(com.sap.cloudfoundry.client.facade.domain.Derivable&lt;com.sap.cloudfoundry.client.facade.domain.CloudServiceInstance&gt;) // required serviceInstance
            .build();
         
        Returns:
        A new ImmutableRawCloudServiceKey builder