java.lang.Object
software.amazon.awssdk.services.machinelearning.internal.RandomIdInterceptor
All Implemented Interfaces:
ExecutionInterceptor

public final class RandomIdInterceptor extends Object implements ExecutionInterceptor
CreateXxx API calls require a unique (for all time!) ID parameter for idempotency. If the user doesn't specify one, fill in a GUID.
  • Constructor Details

    • RandomIdInterceptor

      public RandomIdInterceptor()
  • Method Details

    • modifyRequest

      public SdkRequest modifyRequest(Context.ModifyRequest context, ExecutionAttributes executionAttributes)
      Description copied from interface: ExecutionInterceptor
      Modify an SdkRequest given to a service client before it is marshalled into an SdkHttpFullRequest.
      Specified by:
      modifyRequest in interface ExecutionInterceptor
      Parameters:
      context - The current state of the execution, including the current SDK request from the service client call.
      executionAttributes - A mutable set of attributes scoped to one specific request/response cycle that can be used to give data to future lifecycle methods.
      Returns:
      The potentially-modified request that should be used for the rest of the execution. Must not be null.