Class ImmutableCloudServiceOffering

    • 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 ImmutableCloudServiceOffering 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 ImmutableCloudServiceOffering 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 ImmutableCloudServiceOffering 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
      • withIsActive

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

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

        public final ImmutableCloudServiceOffering withServicePlans​(CloudServicePlan... elements)
        Copy the current immutable object with elements that replace the content of servicePlans.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withServicePlans

        public final ImmutableCloudServiceOffering withServicePlans​(Iterable<? extends CloudServicePlan> elements)
        Copy the current immutable object with elements that replace the content of servicePlans. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of servicePlans elements to set
        Returns:
        A modified copy of this object
      • withDescription

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

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

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

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

        public final ImmutableCloudServiceOffering 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
      • withBrokerName

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

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

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

        public final ImmutableCloudServiceOffering 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
      • equals

        public boolean equals​(Object another)
        This instance is equal to all instances of ImmutableCloudServiceOffering 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, isActive, isBindable, servicePlans, description, docUrl, extra, infoUrl, provider, brokerName, uniqueId, url, version.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

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

        public static ImmutableCloudServiceOffering.Builder builder()
        Creates a builder for ImmutableCloudServiceOffering.
         ImmutableCloudServiceOffering.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
            .isActive(Boolean | null) // nullable isActive
            .isBindable(Boolean | null) // nullable isBindable
            .addServicePlan|addAllServicePlans(com.sap.cloudfoundry.client.facade.domain.CloudServicePlan) // servicePlans elements
            .description(String | null) // nullable description
            .docUrl(String | null) // nullable docUrl
            .extra(String | null) // nullable extra
            .infoUrl(String | null) // nullable infoUrl
            .provider(String | null) // nullable provider
            .brokerName(String | null) // nullable brokerName
            .uniqueId(String | null) // nullable uniqueId
            .url(String | null) // nullable url
            .version(String | null) // nullable version
            .build();
         
        Returns:
        A new ImmutableCloudServiceOffering builder