Interface ApiResult.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ApiResult.Builder,
,ApiResult> SdkBuilder<ApiResult.Builder,
,ApiResult> SdkPojo
- Enclosing class:
ApiResult
-
Method Summary
Modifier and TypeMethodDescriptionactionGroup
(String actionGroup) The action group that the API operation belongs to.The agent's ID.The path to the API operation.confirmationState
(String confirmationState) Controls the API operations or functions to invoke based on the user confirmation.confirmationState
(ConfirmationState confirmationState) Controls the API operations or functions to invoke based on the user confirmation.httpMethod
(String httpMethod) The HTTP method for the API operation.httpStatusCode
(Integer httpStatusCode) http status code from API execution response (for example: 200, 400, 500).responseBody
(Map<String, ContentBody> responseBody) The response body from the API operation.responseState
(String responseState) Controls the final response state returned to end user when API/Function execution failed.responseState
(ResponseState responseState) Controls the final response state returned to end user when API/Function execution failed.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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.
-
agentId
The agent's ID.
- Parameters:
agentId
- The agent's ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
confirmationState
Controls the API operations or functions to invoke based on the user confirmation.
- Parameters:
confirmationState
- Controls the API operations or functions to invoke based on the user confirmation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
confirmationState
Controls the API operations or functions to invoke based on the user confirmation.
- Parameters:
confirmationState
- Controls the API operations or functions to invoke based on the user confirmation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
httpMethod
The HTTP method for the API operation.
- Parameters:
httpMethod
- The HTTP method for the API operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
httpStatusCode
http status code from API execution response (for example: 200, 400, 500).
- Parameters:
httpStatusCode
- http status code from API execution response (for example: 200, 400, 500).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
responseBody
The response body from the API operation. The key of the object is the content type (currently, only
TEXT
is supported). The response may be returned directly or from the Lambda function.- Parameters:
responseBody
- The response body from the API operation. The key of the object is the content type (currently, onlyTEXT
is supported). The response may be returned directly or from the Lambda function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
responseState
Controls the final response state returned to end user when API/Function execution failed. When this state is FAILURE, the request would fail with dependency failure exception. When this state is REPROMPT, the API/function response will be sent to model for re-prompt
- Parameters:
responseState
- Controls the final response state returned to end user when API/Function execution failed. When this state is FAILURE, the request would fail with dependency failure exception. When this state is REPROMPT, the API/function response will be sent to model for re-prompt- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
responseState
Controls the final response state returned to end user when API/Function execution failed. When this state is FAILURE, the request would fail with dependency failure exception. When this state is REPROMPT, the API/function response will be sent to model for re-prompt
- Parameters:
responseState
- Controls the final response state returned to end user when API/Function execution failed. When this state is FAILURE, the request would fail with dependency failure exception. When this state is REPROMPT, the API/function response will be sent to model for re-prompt- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-