Interface Update.Builder

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

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

    • id

      A UUID that is used to track the update.

      Parameters:
      id - A UUID that is used to track the update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      Update.Builder status(String status)

      The current status of the update.

      Parameters:
      status - The current status of the update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      Update.Builder status(UpdateStatus status)

      The current status of the update.

      Parameters:
      status - The current status of the update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      Update.Builder type(String type)

      The type of the update.

      Parameters:
      type - The type of the update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The type of the update.

      Parameters:
      type - The type of the update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • params

      A key-value map that contains the parameters associated with the update.

      Parameters:
      params - A key-value map that contains the parameters associated with the update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • params

      Update.Builder params(UpdateParam... params)

      A key-value map that contains the parameters associated with the update.

      Parameters:
      params - A key-value map that contains the parameters associated with the update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • params

      A key-value map that contains the parameters associated with the update.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to params(List<UpdateParam>).

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

      Update.Builder createdAt(Instant createdAt)

      The Unix epoch timestamp at object creation.

      Parameters:
      createdAt - The Unix epoch timestamp at object creation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errors

      Any errors associated with a Failed update.

      Parameters:
      errors - Any errors associated with a Failed update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errors

      Update.Builder errors(ErrorDetail... errors)

      Any errors associated with a Failed update.

      Parameters:
      errors - Any errors associated with a Failed update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errors

      Any errors associated with a Failed update.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to errors(List<ErrorDetail>).

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