Class ImmutableRawCloudSpace

  • All Implemented Interfaces:
    Derivable<CloudSpace>

    @Generated("org.immutables.processor.ProxyProcessor")
    public final class ImmutableRawCloudSpace
    extends RawCloudSpace
    Immutable implementation of RawCloudSpace.

    Use the builder to create immutable instances: ImmutableRawCloudSpace.builder(). Use the static factory method to create immutable instances: ImmutableRawCloudSpace.of().

    • Method Detail

      • getResource

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

        public final ImmutableRawCloudSpace withResource​(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.spaces.SpaceEntity> 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
      • withOrganization

        public final ImmutableRawCloudSpace withOrganization​(Derivable<CloudOrganization> value)
        Copy the current immutable object by setting a value for the organization attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for organization (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 ImmutableRawCloudSpace 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, organization.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

        public static ImmutableRawCloudSpace of​(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.spaces.SpaceEntity> resource)
        Construct a new immutable RawCloudSpace instance.
        Parameters:
        resource - The value for the resource attribute
        Returns:
        An immutable RawCloudSpace instance
      • copyOf

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

        public static ImmutableRawCloudSpace.Builder builder()
        Creates a builder for ImmutableRawCloudSpace.
         ImmutableRawCloudSpace.builder()
            .resource(org.cloudfoundry.client.v2.Resource&lt;org.cloudfoundry.client.v2.spaces.SpaceEntity&gt;) // required resource
            .organization(com.sap.cloudfoundry.client.facade.domain.Derivable&lt;com.sap.cloudfoundry.client.facade.domain.CloudOrganization&gt; | null) // nullable organization
            .build();
         
        Returns:
        A new ImmutableRawCloudSpace builder