Class ImmutableCloudTask.Builder

  • Enclosing class:
    ImmutableCloudTask

    public static final class ImmutableCloudTask.Builder
    extends Object
    Builds instances of type ImmutableCloudTask. Initialize attributes and then invoke the build() method to create an immutable instance.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Detail

      • from

        public final ImmutableCloudTask.Builder from​(CloudTask instance)
        Fill a builder with attribute values from the provided com.sap.cloudfoundry.client.facade.domain.CloudTask instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        public final ImmutableCloudTask.Builder from​(CloudEntity instance)
        Fill a builder with attribute values from the provided com.sap.cloudfoundry.client.facade.domain.CloudEntity instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • name

        public final ImmutableCloudTask.Builder name​(String name)
        Initializes the value for the name attribute.
        Parameters:
        name - The value for name (can be null)
        Returns:
        this builder for use in a chained invocation
      • metadata

        public final ImmutableCloudTask.Builder metadata​(CloudMetadata metadata)
        Initializes the value for the metadata attribute.
        Parameters:
        metadata - The value for metadata (can be null)
        Returns:
        this builder for use in a chained invocation
      • v3Metadata

        public final ImmutableCloudTask.Builder v3Metadata​(org.cloudfoundry.client.v3.Metadata v3Metadata)
        Initializes the value for the v3Metadata attribute.
        Parameters:
        v3Metadata - The value for v3Metadata (can be null)
        Returns:
        this builder for use in a chained invocation
      • command

        public final ImmutableCloudTask.Builder command​(String command)
        Initializes the value for the command attribute.
        Parameters:
        command - The value for command (can be null)
        Returns:
        this builder for use in a chained invocation
      • limits

        public final ImmutableCloudTask.Builder limits​(CloudTask.Limits limits)
        Initializes the value for the limits attribute.
        Parameters:
        limits - The value for limits (can be null)
        Returns:
        this builder for use in a chained invocation
      • result

        public final ImmutableCloudTask.Builder result​(CloudTask.Result result)
        Initializes the value for the result attribute.
        Parameters:
        result - The value for result (can be null)
        Returns:
        this builder for use in a chained invocation
      • state

        public final ImmutableCloudTask.Builder state​(CloudTask.State state)
        Initializes the value for the state attribute.
        Parameters:
        state - The value for state (can be null)
        Returns:
        this builder for use in a chained invocation