Class ImmutableCloudServiceInstance

    • 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 ImmutableCloudServiceInstance 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 ImmutableCloudServiceInstance 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 ImmutableCloudServiceInstance 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
      • withLabel

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

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

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

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

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

        public final ImmutableCloudServiceInstance 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
      • withTags

        public final ImmutableCloudServiceInstance withTags​(String... elements)
        Copy the current immutable object with elements that replace the content of tags.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withTags

        public final ImmutableCloudServiceInstance withTags​(Iterable<String> elements)
        Copy the current immutable object with elements that replace the content of tags. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of tags elements to set
        Returns:
        A modified copy of this object
      • withType

        public final ImmutableCloudServiceInstance withType​(ServiceInstanceType value)
        Copy the current immutable object by setting a value for the type attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for type (can be null)
        Returns:
        A modified copy of the this object
      • withLastOperation

        public final ImmutableCloudServiceInstance withLastOperation​(ServiceOperation value)
        Copy the current immutable object by setting a value for the lastOperation attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for lastOperation (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 ImmutableCloudServiceInstance 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, label, plan, provider, broker, version, credentials, tags, type, lastOperation.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

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

        public static ImmutableCloudServiceInstance.Builder builder()
        Creates a builder for ImmutableCloudServiceInstance.
         ImmutableCloudServiceInstance.builder()
            .name(String | null) // nullable name
            .metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullable metadata
            .v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullable v3Metadata
            .label(String | null) // nullable label
            .plan(String | null) // nullable plan
            .provider(String | null) // nullable provider
            .broker(String | null) // nullable broker
            .version(String | null) // nullable version
            .putCredential|putAllCredentials(String => Object) // credentials mappings
            .addTag|addAllTags(String) // tags elements
            .type(com.sap.cloudfoundry.client.facade.domain.ServiceInstanceType | null) // nullable type
            .lastOperation(com.sap.cloudfoundry.client.facade.domain.ServiceOperation | null) // nullable lastOperation
            .build();
         
        Returns:
        A new ImmutableCloudServiceInstance builder