Interface ApiInvocationInput.Builder

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

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

    • actionGroup

      ApiInvocationInput.Builder actionGroup(String actionGroup)

      The action group that the API operation belongs to.

      Parameters:
      actionGroup - The action group that the API operation belongs to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actionInvocationType

      ApiInvocationInput.Builder actionInvocationType(String actionInvocationType)

      Contains information about the API operation to invoke.

      Parameters:
      actionInvocationType - Contains information about the API operation to invoke.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • actionInvocationType

      ApiInvocationInput.Builder actionInvocationType(ActionInvocationType actionInvocationType)

      Contains information about the API operation to invoke.

      Parameters:
      actionInvocationType - Contains information about the API operation to invoke.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • apiPath

      The path to the API operation.

      Parameters:
      apiPath - The path to the API operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • httpMethod

      ApiInvocationInput.Builder httpMethod(String httpMethod)

      The HTTP method of the API operation.

      Parameters:
      httpMethod - The HTTP method of the API operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • parameters

      The parameters to provide for the API request, as the agent elicited from the user.

      Parameters:
      parameters - The parameters to provide for the API request, as the agent elicited from the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • parameters

      ApiInvocationInput.Builder parameters(ApiParameter... parameters)

      The parameters to provide for the API request, as the agent elicited from the user.

      Parameters:
      parameters - The parameters to provide for the API request, as the agent elicited from the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • parameters

      The parameters to provide for the API request, as the agent elicited from the user.

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

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

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

      ApiInvocationInput.Builder requestBody(ApiRequestBody requestBody)

      The request body to provide for the API request, as the agent elicited from the user.

      Parameters:
      requestBody - The request body to provide for the API request, as the agent elicited from the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requestBody

      default ApiInvocationInput.Builder requestBody(Consumer<ApiRequestBody.Builder> requestBody)

      The request body to provide for the API request, as the agent elicited from the user.

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

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

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