Interface CreateResourceResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CloudControlResponse.Builder, CopyableBuilder<CreateResourceResponse.Builder,CreateResourceResponse>, SdkBuilder<CreateResourceResponse.Builder,CreateResourceResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
CreateResourceResponse

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

    • progressEvent

      CreateResourceResponse.Builder progressEvent(ProgressEvent progressEvent)

      Represents the current status of the resource creation request.

      After you have initiated a resource creation request, you can monitor the progress of your request by calling GetResourceRequestStatus using the RequestToken of the ProgressEvent returned by CreateResource.

      Parameters:
      progressEvent - Represents the current status of the resource creation request.

      After you have initiated a resource creation request, you can monitor the progress of your request by calling GetResourceRequestStatus using the RequestToken of the ProgressEvent returned by CreateResource.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • progressEvent

      default CreateResourceResponse.Builder progressEvent(Consumer<ProgressEvent.Builder> progressEvent)

      Represents the current status of the resource creation request.

      After you have initiated a resource creation request, you can monitor the progress of your request by calling GetResourceRequestStatus using the RequestToken of the ProgressEvent returned by CreateResource.

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

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

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