Class ImmutableCloudAsyncJob.Builder

  • Enclosing class:
    ImmutableCloudAsyncJob

    public static final class ImmutableCloudAsyncJob.Builder
    extends Object
    Builds instances of type ImmutableCloudAsyncJob. 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 ImmutableCloudAsyncJob.Builder from​(CloudAsyncJob instance)
        Fill a builder with attribute values from the provided com.sap.cloudfoundry.client.facade.domain.CloudAsyncJob instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        public final ImmutableCloudAsyncJob.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 ImmutableCloudAsyncJob.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 ImmutableCloudAsyncJob.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 ImmutableCloudAsyncJob.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
      • state

        public final ImmutableCloudAsyncJob.Builder state​(org.cloudfoundry.client.v3.jobs.JobState state)
        Initializes the value for the state attribute.
        Parameters:
        state - The value for state
        Returns:
        this builder for use in a chained invocation
      • operation

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

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

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