Interface ImportJobResponse.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ImportJobResponse.Builder,ImportJobResponse>, SdkBuilder<ImportJobResponse.Builder,ImportJobResponse>, SdkPojo
Enclosing class:
ImportJobResponse

public static interface ImportJobResponse.Builder extends SdkPojo, CopyableBuilder<ImportJobResponse.Builder,ImportJobResponse>
  • Method Details

    • applicationId

      ImportJobResponse.Builder applicationId(String applicationId)

      The unique identifier for the application that's associated with the import job.

      Parameters:
      applicationId - The unique identifier for the application that's associated with the import job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • completedPieces

      ImportJobResponse.Builder completedPieces(Integer completedPieces)

      The number of pieces that were processed successfully (completed) by the import job, as of the time of the request.

      Parameters:
      completedPieces - The number of pieces that were processed successfully (completed) by the import job, as of the time of the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • completionDate

      ImportJobResponse.Builder completionDate(String completionDate)

      The date, in ISO 8601 format, when the import job was completed.

      Parameters:
      completionDate - The date, in ISO 8601 format, when the import job was completed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • creationDate

      ImportJobResponse.Builder creationDate(String creationDate)

      The date, in ISO 8601 format, when the import job was created.

      Parameters:
      creationDate - The date, in ISO 8601 format, when the import job was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      The resource settings that apply to the import job.

      Parameters:
      definition - The resource settings that apply to the import job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      The resource settings that apply to the import job.

      This is a convenience method that creates an instance of the ImportJobResource.Builder avoiding the need to create one manually via ImportJobResource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to definition(ImportJobResource).

      Parameters:
      definition - a consumer that will call methods on ImportJobResource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • failedPieces

      ImportJobResponse.Builder failedPieces(Integer failedPieces)

      The number of pieces that weren't processed successfully (failed) by the import job, as of the time of the request.

      Parameters:
      failedPieces - The number of pieces that weren't processed successfully (failed) by the import job, as of the time of the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failures

      An array of entries, one for each of the first 100 entries that weren't processed successfully (failed) by the import job, if any.

      Parameters:
      failures - An array of entries, one for each of the first 100 entries that weren't processed successfully (failed) by the import job, if any.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failures

      ImportJobResponse.Builder failures(String... failures)

      An array of entries, one for each of the first 100 entries that weren't processed successfully (failed) by the import job, if any.

      Parameters:
      failures - An array of entries, one for each of the first 100 entries that weren't processed successfully (failed) by the import job, if any.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • id

      The unique identifier for the import job.

      Parameters:
      id - The unique identifier for the import job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • jobStatus

      ImportJobResponse.Builder jobStatus(String jobStatus)

      The status of the import job. The job status is FAILED if Amazon Pinpoint wasn't able to process one or more pieces in the job.

      Parameters:
      jobStatus - The status of the import job. The job status is FAILED if Amazon Pinpoint wasn't able to process one or more pieces in the job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • jobStatus

      ImportJobResponse.Builder jobStatus(JobStatus jobStatus)

      The status of the import job. The job status is FAILED if Amazon Pinpoint wasn't able to process one or more pieces in the job.

      Parameters:
      jobStatus - The status of the import job. The job status is FAILED if Amazon Pinpoint wasn't able to process one or more pieces in the job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • totalFailures

      ImportJobResponse.Builder totalFailures(Integer totalFailures)

      The total number of endpoint definitions that weren't processed successfully (failed) by the import job, typically because an error, such as a syntax error, occurred.

      Parameters:
      totalFailures - The total number of endpoint definitions that weren't processed successfully (failed) by the import job, typically because an error, such as a syntax error, occurred.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • totalPieces

      ImportJobResponse.Builder totalPieces(Integer totalPieces)

      The total number of pieces that must be processed to complete the import job. Each piece consists of an approximately equal portion of the endpoint definitions that are part of the import job.

      Parameters:
      totalPieces - The total number of pieces that must be processed to complete the import job. Each piece consists of an approximately equal portion of the endpoint definitions that are part of the import job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • totalProcessed

      ImportJobResponse.Builder totalProcessed(Integer totalProcessed)

      The total number of endpoint definitions that were processed by the import job.

      Parameters:
      totalProcessed - The total number of endpoint definitions that were processed by the import job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      The job type. This value is IMPORT for import jobs.

      Parameters:
      type - The job type. This value is IMPORT for import jobs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.