Class ImmutableCloudServicePlan

    • 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 ImmutableCloudServicePlan 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 ImmutableCloudServicePlan 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 ImmutableCloudServicePlan 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
      • withDescription

        public final ImmutableCloudServicePlan 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
      • withExtra

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

        public final ImmutableCloudServicePlan 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
      • withServiceOfferingId

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

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

        public final ImmutableCloudServicePlan withIsPublic​(Boolean value)
        Copy the current immutable object by setting a value for the isPublic attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for isPublic (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 ImmutableCloudServicePlan 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, description, extra, uniqueId, serviceOfferingId, isFree, isPublic.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

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

        public static ImmutableCloudServicePlan.Builder builder()
        Creates a builder for ImmutableCloudServicePlan.
         ImmutableCloudServicePlan.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
            .description(String | null) // nullable description
            .extra(Map&lt;String, Object&gt; | null) // nullable extra
            .uniqueId(String | null) // nullable uniqueId
            .serviceOfferingId(String | null) // nullable serviceOfferingId
            .isFree(Boolean | null) // nullable isFree
            .isPublic(Boolean | null) // nullable isPublic
            .build();
         
        Returns:
        A new ImmutableCloudServicePlan builder