Class ImmutableCloudServiceBinding

    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in class CloudEntity
        Returns:
        The value of the name attribute
      • getV3Metadata

        public org.cloudfoundry.client.v3.Metadata getV3Metadata()
        Specified by:
        getV3Metadata in class CloudEntity
        Returns:
        The value of the v3Metadata attribute
      • withName

        public final ImmutableCloudServiceBinding withName​(String value)
        Copy the current immutable object by setting a value for the name attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for name (can be null)
        Returns:
        A modified copy of the this object
      • withMetadata

        public final ImmutableCloudServiceBinding withMetadata​(CloudMetadata 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 (can be null)
        Returns:
        A modified copy of the this object
      • withV3Metadata

        public final ImmutableCloudServiceBinding withV3Metadata​(org.cloudfoundry.client.v3.Metadata value)
        Copy the current immutable object by setting a value for the v3Metadata attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for v3Metadata (can be null)
        Returns:
        A modified copy of the this object
      • withApplicationGuid

        public final ImmutableCloudServiceBinding withApplicationGuid​(UUID value)
        Copy the current immutable object by setting a value for the applicationGuid attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for applicationGuid
        Returns:
        A modified copy of the this object
      • withBindingOptions

        public final ImmutableCloudServiceBinding withBindingOptions​(Map<String,​? extends Object> entries)
        Copy the current immutable object by replacing the bindingOptions 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 bindingOptions map
        Returns:
        A modified copy of this object
      • withCredentials

        public final ImmutableCloudServiceBinding 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
      • withSyslogDrainUrl

        public final ImmutableCloudServiceBinding withSyslogDrainUrl​(String value)
        Copy the current immutable object by setting a value for the syslogDrainUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for syslogDrainUrl (can be null)
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(Object another)
        This instance is equal to all instances of ImmutableCloudServiceBinding 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: name, metadata, v3Metadata, applicationGuid, bindingOptions, credentials, syslogDrainUrl.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

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