Class ImmutableRawCloudApplication

    • Method Detail

      • getResource

        public org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.applications.ApplicationEntity> getResource()
        Specified by:
        getResource in class RawCloudApplication
        Returns:
        The value of the resource attribute
      • getSummary

        public org.cloudfoundry.client.v2.applications.SummaryApplicationResponse getSummary()
        Specified by:
        getSummary in class RawCloudApplication
        Returns:
        The value of the summary attribute
      • withResource

        public final ImmutableRawCloudApplication withResource​(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.applications.ApplicationEntity> 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
      • withSummary

        public final ImmutableRawCloudApplication withSummary​(org.cloudfoundry.client.v2.applications.SummaryApplicationResponse value)
        Copy the current immutable object by setting a value for the summary attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for summary
        Returns:
        A modified copy of the this object
      • withStack

        public final ImmutableRawCloudApplication withStack​(Derivable<CloudStack> value)
        Copy the current immutable object by setting a value for the stack attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for stack
        Returns:
        A modified copy of the this object
      • withSpace

        public final ImmutableRawCloudApplication withSpace​(Derivable<CloudSpace> value)
        Copy the current immutable object by setting a value for the space attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for space
        Returns:
        A modified copy of the this object
      • equals

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

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

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

        public static ImmutableRawCloudApplication.Builder builder()
        Creates a builder for ImmutableRawCloudApplication.
         ImmutableRawCloudApplication.builder()
            .resource(org.cloudfoundry.client.v2.Resource&lt;org.cloudfoundry.client.v2.applications.ApplicationEntity&gt;) // required resource
            .summary(org.cloudfoundry.client.v2.applications.SummaryApplicationResponse) // required summary
            .stack(com.sap.cloudfoundry.client.facade.domain.Derivable&lt;com.sap.cloudfoundry.client.facade.domain.CloudStack&gt;) // required stack
            .space(com.sap.cloudfoundry.client.facade.domain.Derivable&lt;com.sap.cloudfoundry.client.facade.domain.CloudSpace&gt;) // required space
            .build();
         
        Returns:
        A new ImmutableRawCloudApplication builder