Class ImmutableRawCloudServiceOffering

    • Method Detail

      • getServiceOffering

        public org.cloudfoundry.client.v3.serviceofferings.ServiceOfferingResource getServiceOffering()
        Specified by:
        getServiceOffering in class RawCloudServiceOffering
        Returns:
        The value of the serviceOffering attribute
      • withServiceOffering

        public final ImmutableRawCloudServiceOffering withServiceOffering​(org.cloudfoundry.client.v3.serviceofferings.ServiceOfferingResource value)
        Copy the current immutable object by setting a value for the serviceOffering attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for serviceOffering
        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: serviceOffering, 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()
            .serviceOffering(org.cloudfoundry.client.v3.serviceofferings.ServiceOfferingResource) // required serviceOffering
            .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