Class ImmutableCloudBuild

  • All Implemented Interfaces:
    Derivable<CloudBuild>

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

    Use the builder to create immutable instances: ImmutableCloudBuild.builder().

    • 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
      • getError

        public String getError()
        Specified by:
        getError in class CloudBuild
        Returns:
        The value of the error attribute
      • withName

        public final ImmutableCloudBuild 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 ImmutableCloudBuild 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 ImmutableCloudBuild 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
      • withState

        public final ImmutableCloudBuild withState​(CloudBuild.State value)
        Copy the current immutable object by setting a value for the state attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for state (can be null)
        Returns:
        A modified copy of the this object
      • withCreatedBy

        public final ImmutableCloudBuild withCreatedBy​(CloudBuild.CreatedBy value)
        Copy the current immutable object by setting a value for the createdBy attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for createdBy (can be null)
        Returns:
        A modified copy of the this object
      • withDropletInfo

        public final ImmutableCloudBuild withDropletInfo​(DropletInfo value)
        Copy the current immutable object by setting a value for the dropletInfo attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for dropletInfo (can be null)
        Returns:
        A modified copy of the this object
      • withPackageInfo

        public final ImmutableCloudBuild withPackageInfo​(CloudBuild.PackageInfo value)
        Copy the current immutable object by setting a value for the packageInfo attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for packageInfo (can be null)
        Returns:
        A modified copy of the this object
      • withError

        public final ImmutableCloudBuild withError​(String value)
        Copy the current immutable object by setting a value for the error attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for error (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 ImmutableCloudBuild 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, state, createdBy, dropletInfo, packageInfo, error.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

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

        public static ImmutableCloudBuild.Builder builder()
        Creates a builder for ImmutableCloudBuild.
         ImmutableCloudBuild.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
            .state(com.sap.cloudfoundry.client.facade.domain.CloudBuild.State | null) // nullable state
            .createdBy(com.sap.cloudfoundry.client.facade.domain.CloudBuild.CreatedBy | null) // nullable createdBy
            .dropletInfo(com.sap.cloudfoundry.client.facade.domain.DropletInfo | null) // nullable dropletInfo
            .packageInfo(com.sap.cloudfoundry.client.facade.domain.CloudBuild.PackageInfo | null) // nullable packageInfo
            .error(String | null) // nullable error
            .build();
         
        Returns:
        A new ImmutableCloudBuild builder