Class ImmutableRawCloudServiceOffering

    • Method Detail

      • getResource

        public org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.services.ServiceEntity> getResource()
        Specified by:
        getResource in class RawCloudServiceOffering
        Returns:
        The value of the resource attribute
      • withResource

        public final ImmutableRawCloudServiceOffering withResource​(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.services.ServiceEntity> value)
        Copy the current immutable object by setting a value for the resource attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for resource
        Returns:
        A modified copy of the this object
      • withServicePlans

        public final ImmutableRawCloudServiceOffering withServicePlans​(Iterable<? extends Derivable<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
      • equals

        public boolean equals​(Object another)
        This instance is equal to all instances of ImmutableRawCloudServiceOffering 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: resource, servicePlans.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

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

        public static ImmutableRawCloudServiceOffering.Builder builder()
        Creates a builder for ImmutableRawCloudServiceOffering.
         ImmutableRawCloudServiceOffering.builder()
            .resource(org.cloudfoundry.client.v2.Resource&lt;org.cloudfoundry.client.v2.services.ServiceEntity&gt;) // required resource
            .addServicePlan|addAllServicePlans(com.sap.cloudfoundry.client.facade.domain.Derivable&lt;com.sap.cloudfoundry.client.facade.domain.CloudServicePlan&gt;) // servicePlans elements
            .build();
         
        Returns:
        A new ImmutableRawCloudServiceOffering builder