diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/FlowResponseStream.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/FlowResponseStream.h index 99e093e81ce..ce12e8e5380 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/FlowResponseStream.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/FlowResponseStream.h @@ -48,11 +48,11 @@ namespace Model *

The request is denied because of missing access permissions. Check your * permissions and retry your request.

*/ - inline const AccessDeniedException& GetAccessDeniedException() const { return m_accessDeniedException; } + inline const BedrockAgentRuntimeError& GetAccessDeniedException() const { return m_accessDeniedException; } inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; } - template + template void SetAccessDeniedException(AccessDeniedExceptionT&& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = std::forward(value); } - template + template FlowResponseStream& WithAccessDeniedException(AccessDeniedExceptionT&& value) { SetAccessDeniedException(std::forward(value)); return *this;} ///@} @@ -74,11 +74,11 @@ namespace Model *

There was a conflict performing an operation. Resolve the conflict and retry * your request.

*/ - inline const ConflictException& GetConflictException() const { return m_conflictException; } + inline const BedrockAgentRuntimeError& GetConflictException() const { return m_conflictException; } inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; } - template + template void SetConflictException(ConflictExceptionT&& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = std::forward(value); } - template + template FlowResponseStream& WithConflictException(ConflictExceptionT&& value) { SetConflictException(std::forward(value)); return *this;} ///@} @@ -162,11 +162,11 @@ namespace Model *

The specified resource Amazon Resource Name (ARN) was not found. Check the * Amazon Resource Name (ARN) and try your request again.

*/ - inline const ResourceNotFoundException& GetResourceNotFoundException() const { return m_resourceNotFoundException; } + inline const BedrockAgentRuntimeError& GetResourceNotFoundException() const { return m_resourceNotFoundException; } inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; } - template + template void SetResourceNotFoundException(ResourceNotFoundExceptionT&& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = std::forward(value); } - template + template FlowResponseStream& WithResourceNotFoundException(ResourceNotFoundExceptionT&& value) { SetResourceNotFoundException(std::forward(value)); return *this;} ///@} @@ -175,11 +175,11 @@ namespace Model *

The number of requests exceeds the service quota. Resubmit your request * later.

*/ - inline const ServiceQuotaExceededException& GetServiceQuotaExceededException() const { return m_serviceQuotaExceededException; } + inline const BedrockAgentRuntimeError& GetServiceQuotaExceededException() const { return m_serviceQuotaExceededException; } inline bool ServiceQuotaExceededExceptionHasBeenSet() const { return m_serviceQuotaExceededExceptionHasBeenSet; } - template + template void SetServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { m_serviceQuotaExceededExceptionHasBeenSet = true; m_serviceQuotaExceededException = std::forward(value); } - template + template FlowResponseStream& WithServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { SetServiceQuotaExceededException(std::forward(value)); return *this;} ///@} @@ -187,11 +187,11 @@ namespace Model /** *

The number of requests exceeds the limit. Resubmit your request later.

*/ - inline const ThrottlingException& GetThrottlingException() const { return m_throttlingException; } + inline const BedrockAgentRuntimeError& GetThrottlingException() const { return m_throttlingException; } inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; } - template + template void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::forward(value); } - template + template FlowResponseStream& WithThrottlingException(ThrottlingExceptionT&& value) { SetThrottlingException(std::forward(value)); return *this;} ///@} @@ -200,22 +200,22 @@ namespace Model *

Input validation failed. Check your request parameters and retry the * request.

*/ - inline const ValidationException& GetValidationException() const { return m_validationException; } + inline const BedrockAgentRuntimeError& GetValidationException() const { return m_validationException; } inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; } - template + template void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::forward(value); } - template + template FlowResponseStream& WithValidationException(ValidationExceptionT&& value) { SetValidationException(std::forward(value)); return *this;} ///@} private: - AccessDeniedException m_accessDeniedException; + BedrockAgentRuntimeError m_accessDeniedException; bool m_accessDeniedExceptionHasBeenSet = false; BadGatewayException m_badGatewayException; bool m_badGatewayExceptionHasBeenSet = false; - ConflictException m_conflictException; + BedrockAgentRuntimeError m_conflictException; bool m_conflictExceptionHasBeenSet = false; DependencyFailedException m_dependencyFailedException; @@ -236,16 +236,16 @@ namespace Model InternalServerException m_internalServerException; bool m_internalServerExceptionHasBeenSet = false; - ResourceNotFoundException m_resourceNotFoundException; + BedrockAgentRuntimeError m_resourceNotFoundException; bool m_resourceNotFoundExceptionHasBeenSet = false; - ServiceQuotaExceededException m_serviceQuotaExceededException; + BedrockAgentRuntimeError m_serviceQuotaExceededException; bool m_serviceQuotaExceededExceptionHasBeenSet = false; - ThrottlingException m_throttlingException; + BedrockAgentRuntimeError m_throttlingException; bool m_throttlingExceptionHasBeenSet = false; - ValidationException m_validationException; + BedrockAgentRuntimeError m_validationException; bool m_validationExceptionHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InlineAgentResponseStream.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InlineAgentResponseStream.h index 2582c6f705c..1f1ec5bcafa 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InlineAgentResponseStream.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InlineAgentResponseStream.h @@ -49,11 +49,11 @@ namespace Model *

The request is denied because of missing access permissions. Check your * permissions and retry your request.

*/ - inline const AccessDeniedException& GetAccessDeniedException() const { return m_accessDeniedException; } + inline const BedrockAgentRuntimeError& GetAccessDeniedException() const { return m_accessDeniedException; } inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; } - template + template void SetAccessDeniedException(AccessDeniedExceptionT&& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = std::forward(value); } - template + template InlineAgentResponseStream& WithAccessDeniedException(AccessDeniedExceptionT&& value) { SetAccessDeniedException(std::forward(value)); return *this;} ///@} @@ -87,11 +87,11 @@ namespace Model *

There was a conflict performing an operation. Resolve the conflict and retry * your request.

*/ - inline const ConflictException& GetConflictException() const { return m_conflictException; } + inline const BedrockAgentRuntimeError& GetConflictException() const { return m_conflictException; } inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; } - template + template void SetConflictException(ConflictExceptionT&& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = std::forward(value); } - template + template InlineAgentResponseStream& WithConflictException(ConflictExceptionT&& value) { SetConflictException(std::forward(value)); return *this;} ///@} @@ -138,11 +138,11 @@ namespace Model *

The specified resource Amazon Resource Name (ARN) was not found. Check the * Amazon Resource Name (ARN) and try your request again.

*/ - inline const ResourceNotFoundException& GetResourceNotFoundException() const { return m_resourceNotFoundException; } + inline const BedrockAgentRuntimeError& GetResourceNotFoundException() const { return m_resourceNotFoundException; } inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; } - template + template void SetResourceNotFoundException(ResourceNotFoundExceptionT&& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = std::forward(value); } - template + template InlineAgentResponseStream& WithResourceNotFoundException(ResourceNotFoundExceptionT&& value) { SetResourceNotFoundException(std::forward(value)); return *this;} ///@} @@ -165,11 +165,11 @@ namespace Model *

The number of requests exceeds the service quota. Resubmit your request * later.

*/ - inline const ServiceQuotaExceededException& GetServiceQuotaExceededException() const { return m_serviceQuotaExceededException; } + inline const BedrockAgentRuntimeError& GetServiceQuotaExceededException() const { return m_serviceQuotaExceededException; } inline bool ServiceQuotaExceededExceptionHasBeenSet() const { return m_serviceQuotaExceededExceptionHasBeenSet; } - template + template void SetServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { m_serviceQuotaExceededExceptionHasBeenSet = true; m_serviceQuotaExceededException = std::forward(value); } - template + template InlineAgentResponseStream& WithServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { SetServiceQuotaExceededException(std::forward(value)); return *this;} ///@} @@ -177,11 +177,11 @@ namespace Model /** *

The number of requests exceeds the limit. Resubmit your request later.

*/ - inline const ThrottlingException& GetThrottlingException() const { return m_throttlingException; } + inline const BedrockAgentRuntimeError& GetThrottlingException() const { return m_throttlingException; } inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; } - template + template void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::forward(value); } - template + template InlineAgentResponseStream& WithThrottlingException(ThrottlingExceptionT&& value) { SetThrottlingException(std::forward(value)); return *this;} ///@} @@ -207,16 +207,16 @@ namespace Model *

Input validation failed. Check your request parameters and retry the * request.

*/ - inline const ValidationException& GetValidationException() const { return m_validationException; } + inline const BedrockAgentRuntimeError& GetValidationException() const { return m_validationException; } inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; } - template + template void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::forward(value); } - template + template InlineAgentResponseStream& WithValidationException(ValidationExceptionT&& value) { SetValidationException(std::forward(value)); return *this;} ///@} private: - AccessDeniedException m_accessDeniedException; + BedrockAgentRuntimeError m_accessDeniedException; bool m_accessDeniedExceptionHasBeenSet = false; BadGatewayException m_badGatewayException; @@ -225,7 +225,7 @@ namespace Model InlineAgentPayloadPart m_chunk; bool m_chunkHasBeenSet = false; - ConflictException m_conflictException; + BedrockAgentRuntimeError m_conflictException; bool m_conflictExceptionHasBeenSet = false; DependencyFailedException m_dependencyFailedException; @@ -237,22 +237,22 @@ namespace Model InternalServerException m_internalServerException; bool m_internalServerExceptionHasBeenSet = false; - ResourceNotFoundException m_resourceNotFoundException; + BedrockAgentRuntimeError m_resourceNotFoundException; bool m_resourceNotFoundExceptionHasBeenSet = false; InlineAgentReturnControlPayload m_returnControl; bool m_returnControlHasBeenSet = false; - ServiceQuotaExceededException m_serviceQuotaExceededException; + BedrockAgentRuntimeError m_serviceQuotaExceededException; bool m_serviceQuotaExceededExceptionHasBeenSet = false; - ThrottlingException m_throttlingException; + BedrockAgentRuntimeError m_throttlingException; bool m_throttlingExceptionHasBeenSet = false; InlineAgentTracePart m_trace; bool m_traceHasBeenSet = false; - ValidationException m_validationException; + BedrockAgentRuntimeError m_validationException; bool m_validationExceptionHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizedPromptStream.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizedPromptStream.h index 8db919118cb..922fd12d326 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizedPromptStream.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/OptimizedPromptStream.h @@ -47,11 +47,11 @@ namespace Model *

The request is denied because of missing access permissions. Check your * permissions and retry your request.

*/ - inline const AccessDeniedException& GetAccessDeniedException() const { return m_accessDeniedException; } + inline const BedrockAgentRuntimeError& GetAccessDeniedException() const { return m_accessDeniedException; } inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; } - template + template void SetAccessDeniedException(AccessDeniedExceptionT&& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = std::forward(value); } - template + template OptimizedPromptStream& WithAccessDeniedException(AccessDeniedExceptionT&& value) { SetAccessDeniedException(std::forward(value)); return *this;} ///@} @@ -125,11 +125,11 @@ namespace Model * href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned * Throughput to increase the rate or number of tokens you can process.

*/ - inline const ThrottlingException& GetThrottlingException() const { return m_throttlingException; } + inline const BedrockAgentRuntimeError& GetThrottlingException() const { return m_throttlingException; } inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; } - template + template void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::forward(value); } - template + template OptimizedPromptStream& WithThrottlingException(ThrottlingExceptionT&& value) { SetThrottlingException(std::forward(value)); return *this;} ///@} @@ -138,16 +138,16 @@ namespace Model *

Input validation failed. Check your request parameters and retry the * request.

*/ - inline const ValidationException& GetValidationException() const { return m_validationException; } + inline const BedrockAgentRuntimeError& GetValidationException() const { return m_validationException; } inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; } - template + template void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::forward(value); } - template + template OptimizedPromptStream& WithValidationException(ValidationExceptionT&& value) { SetValidationException(std::forward(value)); return *this;} ///@} private: - AccessDeniedException m_accessDeniedException; + BedrockAgentRuntimeError m_accessDeniedException; bool m_accessDeniedExceptionHasBeenSet = false; AnalyzePromptEvent m_analyzePromptEvent; @@ -165,10 +165,10 @@ namespace Model OptimizedPromptEvent m_optimizedPromptEvent; bool m_optimizedPromptEventHasBeenSet = false; - ThrottlingException m_throttlingException; + BedrockAgentRuntimeError m_throttlingException; bool m_throttlingExceptionHasBeenSet = false; - ValidationException m_validationException; + BedrockAgentRuntimeError m_validationException; bool m_validationExceptionHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ResponseStream.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ResponseStream.h index c4a8d785e34..097d2c5067d 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ResponseStream.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ResponseStream.h @@ -49,11 +49,11 @@ namespace Model *

The request is denied because of missing access permissions. Check your * permissions and retry your request.

*/ - inline const AccessDeniedException& GetAccessDeniedException() const { return m_accessDeniedException; } + inline const BedrockAgentRuntimeError& GetAccessDeniedException() const { return m_accessDeniedException; } inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; } - template + template void SetAccessDeniedException(AccessDeniedExceptionT&& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = std::forward(value); } - template + template ResponseStream& WithAccessDeniedException(AccessDeniedExceptionT&& value) { SetAccessDeniedException(std::forward(value)); return *this;} ///@} @@ -87,11 +87,11 @@ namespace Model *

There was a conflict performing an operation. Resolve the conflict and retry * your request.

*/ - inline const ConflictException& GetConflictException() const { return m_conflictException; } + inline const BedrockAgentRuntimeError& GetConflictException() const { return m_conflictException; } inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; } - template + template void SetConflictException(ConflictExceptionT&& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = std::forward(value); } - template + template ResponseStream& WithConflictException(ConflictExceptionT&& value) { SetConflictException(std::forward(value)); return *this;} ///@} @@ -141,11 +141,11 @@ namespace Model * href="https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html">Retry * behavior in the AWS SDKs and Tools reference guide.

*/ - inline const ModelNotReadyException& GetModelNotReadyException() const { return m_modelNotReadyException; } + inline const BedrockAgentRuntimeError& GetModelNotReadyException() const { return m_modelNotReadyException; } inline bool ModelNotReadyExceptionHasBeenSet() const { return m_modelNotReadyExceptionHasBeenSet; } - template + template void SetModelNotReadyException(ModelNotReadyExceptionT&& value) { m_modelNotReadyExceptionHasBeenSet = true; m_modelNotReadyException = std::forward(value); } - template + template ResponseStream& WithModelNotReadyException(ModelNotReadyExceptionT&& value) { SetModelNotReadyException(std::forward(value)); return *this;} ///@} @@ -154,11 +154,11 @@ namespace Model *

The specified resource Amazon Resource Name (ARN) was not found. Check the * Amazon Resource Name (ARN) and try your request again.

*/ - inline const ResourceNotFoundException& GetResourceNotFoundException() const { return m_resourceNotFoundException; } + inline const BedrockAgentRuntimeError& GetResourceNotFoundException() const { return m_resourceNotFoundException; } inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; } - template + template void SetResourceNotFoundException(ResourceNotFoundExceptionT&& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = std::forward(value); } - template + template ResponseStream& WithResourceNotFoundException(ResourceNotFoundExceptionT&& value) { SetResourceNotFoundException(std::forward(value)); return *this;} ///@} @@ -181,11 +181,11 @@ namespace Model *

The number of requests exceeds the service quota. Resubmit your request * later.

*/ - inline const ServiceQuotaExceededException& GetServiceQuotaExceededException() const { return m_serviceQuotaExceededException; } + inline const BedrockAgentRuntimeError& GetServiceQuotaExceededException() const { return m_serviceQuotaExceededException; } inline bool ServiceQuotaExceededExceptionHasBeenSet() const { return m_serviceQuotaExceededExceptionHasBeenSet; } - template + template void SetServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { m_serviceQuotaExceededExceptionHasBeenSet = true; m_serviceQuotaExceededException = std::forward(value); } - template + template ResponseStream& WithServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { SetServiceQuotaExceededException(std::forward(value)); return *this;} ///@} @@ -193,11 +193,11 @@ namespace Model /** *

The number of requests exceeds the limit. Resubmit your request later.

*/ - inline const ThrottlingException& GetThrottlingException() const { return m_throttlingException; } + inline const BedrockAgentRuntimeError& GetThrottlingException() const { return m_throttlingException; } inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; } - template + template void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::forward(value); } - template + template ResponseStream& WithThrottlingException(ThrottlingExceptionT&& value) { SetThrottlingException(std::forward(value)); return *this;} ///@} @@ -223,16 +223,16 @@ namespace Model *

Input validation failed. Check your request parameters and retry the * request.

*/ - inline const ValidationException& GetValidationException() const { return m_validationException; } + inline const BedrockAgentRuntimeError& GetValidationException() const { return m_validationException; } inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; } - template + template void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::forward(value); } - template + template ResponseStream& WithValidationException(ValidationExceptionT&& value) { SetValidationException(std::forward(value)); return *this;} ///@} private: - AccessDeniedException m_accessDeniedException; + BedrockAgentRuntimeError m_accessDeniedException; bool m_accessDeniedExceptionHasBeenSet = false; BadGatewayException m_badGatewayException; @@ -241,7 +241,7 @@ namespace Model PayloadPart m_chunk; bool m_chunkHasBeenSet = false; - ConflictException m_conflictException; + BedrockAgentRuntimeError m_conflictException; bool m_conflictExceptionHasBeenSet = false; DependencyFailedException m_dependencyFailedException; @@ -253,25 +253,25 @@ namespace Model InternalServerException m_internalServerException; bool m_internalServerExceptionHasBeenSet = false; - ModelNotReadyException m_modelNotReadyException; + BedrockAgentRuntimeError m_modelNotReadyException; bool m_modelNotReadyExceptionHasBeenSet = false; - ResourceNotFoundException m_resourceNotFoundException; + BedrockAgentRuntimeError m_resourceNotFoundException; bool m_resourceNotFoundExceptionHasBeenSet = false; ReturnControlPayload m_returnControl; bool m_returnControlHasBeenSet = false; - ServiceQuotaExceededException m_serviceQuotaExceededException; + BedrockAgentRuntimeError m_serviceQuotaExceededException; bool m_serviceQuotaExceededExceptionHasBeenSet = false; - ThrottlingException m_throttlingException; + BedrockAgentRuntimeError m_throttlingException; bool m_throttlingExceptionHasBeenSet = false; TracePart m_trace; bool m_traceHasBeenSet = false; - ValidationException m_validationException; + BedrockAgentRuntimeError m_validationException; bool m_validationExceptionHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateStreamResponseOutput.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateStreamResponseOutput.h index cc97e697003..f9b359bcc68 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateStreamResponseOutput.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateStreamResponseOutput.h @@ -49,11 +49,11 @@ namespace Model * href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-access-denied">AccessDeniedException * in the Amazon Bedrock User Guide.

*/ - inline const AccessDeniedException& GetAccessDeniedException() const { return m_accessDeniedException; } + inline const BedrockAgentRuntimeError& GetAccessDeniedException() const { return m_accessDeniedException; } inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; } - template + template void SetAccessDeniedException(AccessDeniedExceptionT&& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = std::forward(value); } - template + template RetrieveAndGenerateStreamResponseOutput& WithAccessDeniedException(AccessDeniedExceptionT&& value) { SetAccessDeniedException(std::forward(value)); return *this;} ///@} @@ -85,11 +85,11 @@ namespace Model /** *

Error occurred because of a conflict while performing an operation.

*/ - inline const ConflictException& GetConflictException() const { return m_conflictException; } + inline const BedrockAgentRuntimeError& GetConflictException() const { return m_conflictException; } inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; } - template + template void SetConflictException(ConflictExceptionT&& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = std::forward(value); } - template + template RetrieveAndGenerateStreamResponseOutput& WithConflictException(ConflictExceptionT&& value) { SetConflictException(std::forward(value)); return *this;} ///@} @@ -148,11 +148,11 @@ namespace Model * href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-resource-not-found">ResourceNotFound * in the Amazon Bedrock User Guide.

*/ - inline const ResourceNotFoundException& GetResourceNotFoundException() const { return m_resourceNotFoundException; } + inline const BedrockAgentRuntimeError& GetResourceNotFoundException() const { return m_resourceNotFoundException; } inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; } - template + template void SetResourceNotFoundException(ResourceNotFoundExceptionT&& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = std::forward(value); } - template + template RetrieveAndGenerateStreamResponseOutput& WithResourceNotFoundException(ResourceNotFoundExceptionT&& value) { SetResourceNotFoundException(std::forward(value)); return *this;} ///@} @@ -163,11 +163,11 @@ namespace Model * href="https://docs.aws.amazon.com/servicequotas/latest/userguide/gs-request-quota.html">Viewing * service quotas. You can resubmit your request later.

*/ - inline const ServiceQuotaExceededException& GetServiceQuotaExceededException() const { return m_serviceQuotaExceededException; } + inline const BedrockAgentRuntimeError& GetServiceQuotaExceededException() const { return m_serviceQuotaExceededException; } inline bool ServiceQuotaExceededExceptionHasBeenSet() const { return m_serviceQuotaExceededExceptionHasBeenSet; } - template + template void SetServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { m_serviceQuotaExceededExceptionHasBeenSet = true; m_serviceQuotaExceededException = std::forward(value); } - template + template RetrieveAndGenerateStreamResponseOutput& WithServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { SetServiceQuotaExceededException(std::forward(value)); return *this;} ///@} @@ -178,11 +178,11 @@ namespace Model * href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-throttling-exception">ThrottlingException * in the Amazon Bedrock User Guide.

*/ - inline const ThrottlingException& GetThrottlingException() const { return m_throttlingException; } + inline const BedrockAgentRuntimeError& GetThrottlingException() const { return m_throttlingException; } inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; } - template + template void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::forward(value); } - template + template RetrieveAndGenerateStreamResponseOutput& WithThrottlingException(ThrottlingExceptionT&& value) { SetThrottlingException(std::forward(value)); return *this;} ///@} @@ -193,16 +193,16 @@ namespace Model * href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-validation-error">ValidationError * in the Amazon Bedrock User Guide.

*/ - inline const ValidationException& GetValidationException() const { return m_validationException; } + inline const BedrockAgentRuntimeError& GetValidationException() const { return m_validationException; } inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; } - template + template void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::forward(value); } - template + template RetrieveAndGenerateStreamResponseOutput& WithValidationException(ValidationExceptionT&& value) { SetValidationException(std::forward(value)); return *this;} ///@} private: - AccessDeniedException m_accessDeniedException; + BedrockAgentRuntimeError m_accessDeniedException; bool m_accessDeniedExceptionHasBeenSet = false; BadGatewayException m_badGatewayException; @@ -211,7 +211,7 @@ namespace Model CitationEvent m_citation; bool m_citationHasBeenSet = false; - ConflictException m_conflictException; + BedrockAgentRuntimeError m_conflictException; bool m_conflictExceptionHasBeenSet = false; DependencyFailedException m_dependencyFailedException; @@ -226,16 +226,16 @@ namespace Model RetrieveAndGenerateOutputEvent m_output; bool m_outputHasBeenSet = false; - ResourceNotFoundException m_resourceNotFoundException; + BedrockAgentRuntimeError m_resourceNotFoundException; bool m_resourceNotFoundExceptionHasBeenSet = false; - ServiceQuotaExceededException m_serviceQuotaExceededException; + BedrockAgentRuntimeError m_serviceQuotaExceededException; bool m_serviceQuotaExceededExceptionHasBeenSet = false; - ThrottlingException m_throttlingException; + BedrockAgentRuntimeError m_throttlingException; bool m_throttlingExceptionHasBeenSet = false; - ValidationException m_validationException; + BedrockAgentRuntimeError m_validationException; bool m_validationExceptionHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/ConverseStreamOutput.h b/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/ConverseStreamOutput.h index bd716bb2e84..76832b16eab 100644 --- a/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/ConverseStreamOutput.h +++ b/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/ConverseStreamOutput.h @@ -119,11 +119,11 @@ namespace Model /** *

An internal server error occurred. Retry your request.

*/ - inline const InternalServerException& GetInternalServerException() const { return m_internalServerException; } + inline const BedrockRuntimeError& GetInternalServerException() const { return m_internalServerException; } inline bool InternalServerExceptionHasBeenSet() const { return m_internalServerExceptionHasBeenSet; } - template + template void SetInternalServerException(InternalServerExceptionT&& value) { m_internalServerExceptionHasBeenSet = true; m_internalServerException = std::forward(value); } - template + template ConverseStreamOutput& WithInternalServerException(InternalServerExceptionT&& value) { SetInternalServerException(std::forward(value)); return *this;} ///@} @@ -146,11 +146,11 @@ namespace Model * href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-validation-error">ValidationError * in the Amazon Bedrock User Guide

*/ - inline const ValidationException& GetValidationException() const { return m_validationException; } + inline const BedrockRuntimeError& GetValidationException() const { return m_validationException; } inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; } - template + template void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::forward(value); } - template + template ConverseStreamOutput& WithValidationException(ValidationExceptionT&& value) { SetValidationException(std::forward(value)); return *this;} ///@} @@ -161,11 +161,11 @@ namespace Model * href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-throttling-exception">ThrottlingException * in the Amazon Bedrock User Guide

*/ - inline const ThrottlingException& GetThrottlingException() const { return m_throttlingException; } + inline const BedrockRuntimeError& GetThrottlingException() const { return m_throttlingException; } inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; } - template + template void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::forward(value); } - template + template ConverseStreamOutput& WithThrottlingException(ThrottlingExceptionT&& value) { SetThrottlingException(std::forward(value)); return *this;} ///@} @@ -175,11 +175,11 @@ namespace Model * href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-service-unavailable">ServiceUnavailable * in the Amazon Bedrock User Guide

*/ - inline const ServiceUnavailableException& GetServiceUnavailableException() const { return m_serviceUnavailableException; } + inline const BedrockRuntimeError& GetServiceUnavailableException() const { return m_serviceUnavailableException; } inline bool ServiceUnavailableExceptionHasBeenSet() const { return m_serviceUnavailableExceptionHasBeenSet; } - template + template void SetServiceUnavailableException(ServiceUnavailableExceptionT&& value) { m_serviceUnavailableExceptionHasBeenSet = true; m_serviceUnavailableException = std::forward(value); } - template + template ConverseStreamOutput& WithServiceUnavailableException(ServiceUnavailableExceptionT&& value) { SetServiceUnavailableException(std::forward(value)); return *this;} ///@} private: @@ -202,19 +202,19 @@ namespace Model ConverseStreamMetadataEvent m_metadata; bool m_metadataHasBeenSet = false; - InternalServerException m_internalServerException; + BedrockRuntimeError m_internalServerException; bool m_internalServerExceptionHasBeenSet = false; ModelStreamErrorException m_modelStreamErrorException; bool m_modelStreamErrorExceptionHasBeenSet = false; - ValidationException m_validationException; + BedrockRuntimeError m_validationException; bool m_validationExceptionHasBeenSet = false; - ThrottlingException m_throttlingException; + BedrockRuntimeError m_throttlingException; bool m_throttlingExceptionHasBeenSet = false; - ServiceUnavailableException m_serviceUnavailableException; + BedrockRuntimeError m_serviceUnavailableException; bool m_serviceUnavailableExceptionHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/InvokeModelWithBidirectionalStreamOutput.h b/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/InvokeModelWithBidirectionalStreamOutput.h index de80b37d4c1..5b1a266e89f 100644 --- a/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/InvokeModelWithBidirectionalStreamOutput.h +++ b/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/InvokeModelWithBidirectionalStreamOutput.h @@ -55,11 +55,11 @@ namespace Model /** *

The request encountered an unknown internal error.

*/ - inline const InternalServerException& GetInternalServerException() const { return m_internalServerException; } + inline const BedrockRuntimeError& GetInternalServerException() const { return m_internalServerException; } inline bool InternalServerExceptionHasBeenSet() const { return m_internalServerExceptionHasBeenSet; } - template + template void SetInternalServerException(InternalServerExceptionT&& value) { m_internalServerExceptionHasBeenSet = true; m_internalServerException = std::forward(value); } - template + template InvokeModelWithBidirectionalStreamOutput& WithInternalServerException(InternalServerExceptionT&& value) { SetInternalServerException(std::forward(value)); return *this;} ///@} @@ -80,11 +80,11 @@ namespace Model *

The input fails to satisfy the constraints specified by an Amazon Web * Services service.

*/ - inline const ValidationException& GetValidationException() const { return m_validationException; } + inline const BedrockRuntimeError& GetValidationException() const { return m_validationException; } inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; } - template + template void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::forward(value); } - template + template InvokeModelWithBidirectionalStreamOutput& WithValidationException(ValidationExceptionT&& value) { SetValidationException(std::forward(value)); return *this;} ///@} @@ -92,11 +92,11 @@ namespace Model /** *

The request was denied due to request throttling.

*/ - inline const ThrottlingException& GetThrottlingException() const { return m_throttlingException; } + inline const BedrockRuntimeError& GetThrottlingException() const { return m_throttlingException; } inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; } - template + template void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::forward(value); } - template + template InvokeModelWithBidirectionalStreamOutput& WithThrottlingException(ThrottlingExceptionT&& value) { SetThrottlingException(std::forward(value)); return *this;} ///@} @@ -105,11 +105,11 @@ namespace Model *

The connection was closed because a request was not received within the * timeout period.

*/ - inline const ModelTimeoutException& GetModelTimeoutException() const { return m_modelTimeoutException; } + inline const BedrockRuntimeError& GetModelTimeoutException() const { return m_modelTimeoutException; } inline bool ModelTimeoutExceptionHasBeenSet() const { return m_modelTimeoutExceptionHasBeenSet; } - template + template void SetModelTimeoutException(ModelTimeoutExceptionT&& value) { m_modelTimeoutExceptionHasBeenSet = true; m_modelTimeoutException = std::forward(value); } - template + template InvokeModelWithBidirectionalStreamOutput& WithModelTimeoutException(ModelTimeoutExceptionT&& value) { SetModelTimeoutException(std::forward(value)); return *this;} ///@} @@ -117,11 +117,11 @@ namespace Model /** *

The request has failed due to a temporary failure of the server.

*/ - inline const ServiceUnavailableException& GetServiceUnavailableException() const { return m_serviceUnavailableException; } + inline const BedrockRuntimeError& GetServiceUnavailableException() const { return m_serviceUnavailableException; } inline bool ServiceUnavailableExceptionHasBeenSet() const { return m_serviceUnavailableExceptionHasBeenSet; } - template + template void SetServiceUnavailableException(ServiceUnavailableExceptionT&& value) { m_serviceUnavailableExceptionHasBeenSet = true; m_serviceUnavailableException = std::forward(value); } - template + template InvokeModelWithBidirectionalStreamOutput& WithServiceUnavailableException(ServiceUnavailableExceptionT&& value) { SetServiceUnavailableException(std::forward(value)); return *this;} ///@} private: @@ -129,22 +129,22 @@ namespace Model BidirectionalOutputPayloadPart m_chunk; bool m_chunkHasBeenSet = false; - InternalServerException m_internalServerException; + BedrockRuntimeError m_internalServerException; bool m_internalServerExceptionHasBeenSet = false; ModelStreamErrorException m_modelStreamErrorException; bool m_modelStreamErrorExceptionHasBeenSet = false; - ValidationException m_validationException; + BedrockRuntimeError m_validationException; bool m_validationExceptionHasBeenSet = false; - ThrottlingException m_throttlingException; + BedrockRuntimeError m_throttlingException; bool m_throttlingExceptionHasBeenSet = false; - ModelTimeoutException m_modelTimeoutException; + BedrockRuntimeError m_modelTimeoutException; bool m_modelTimeoutExceptionHasBeenSet = false; - ServiceUnavailableException m_serviceUnavailableException; + BedrockRuntimeError m_serviceUnavailableException; bool m_serviceUnavailableExceptionHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/ResponseStream.h b/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/ResponseStream.h index 2f047537a2d..8da2f2d0456 100644 --- a/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/ResponseStream.h +++ b/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/ResponseStream.h @@ -54,11 +54,11 @@ namespace Model /** *

An internal server error occurred. Retry your request.

*/ - inline const InternalServerException& GetInternalServerException() const { return m_internalServerException; } + inline const BedrockRuntimeError& GetInternalServerException() const { return m_internalServerException; } inline bool InternalServerExceptionHasBeenSet() const { return m_internalServerExceptionHasBeenSet; } - template + template void SetInternalServerException(InternalServerExceptionT&& value) { m_internalServerExceptionHasBeenSet = true; m_internalServerException = std::forward(value); } - template + template ResponseStream& WithInternalServerException(InternalServerExceptionT&& value) { SetInternalServerException(std::forward(value)); return *this;} ///@} @@ -79,11 +79,11 @@ namespace Model *

Input validation failed. Check your request parameters and retry the * request.

*/ - inline const ValidationException& GetValidationException() const { return m_validationException; } + inline const BedrockRuntimeError& GetValidationException() const { return m_validationException; } inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; } - template + template void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::forward(value); } - template + template ResponseStream& WithValidationException(ValidationExceptionT&& value) { SetValidationException(std::forward(value)); return *this;} ///@} @@ -94,11 +94,11 @@ namespace Model * href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned * Throughput to increase the rate or number of tokens you can process.

*/ - inline const ThrottlingException& GetThrottlingException() const { return m_throttlingException; } + inline const BedrockRuntimeError& GetThrottlingException() const { return m_throttlingException; } inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; } - template + template void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::forward(value); } - template + template ResponseStream& WithThrottlingException(ThrottlingExceptionT&& value) { SetThrottlingException(std::forward(value)); return *this;} ///@} @@ -107,11 +107,11 @@ namespace Model *

The request took too long to process. Processing time exceeded the model * timeout length.

*/ - inline const ModelTimeoutException& GetModelTimeoutException() const { return m_modelTimeoutException; } + inline const BedrockRuntimeError& GetModelTimeoutException() const { return m_modelTimeoutException; } inline bool ModelTimeoutExceptionHasBeenSet() const { return m_modelTimeoutExceptionHasBeenSet; } - template + template void SetModelTimeoutException(ModelTimeoutExceptionT&& value) { m_modelTimeoutExceptionHasBeenSet = true; m_modelTimeoutException = std::forward(value); } - template + template ResponseStream& WithModelTimeoutException(ModelTimeoutExceptionT&& value) { SetModelTimeoutException(std::forward(value)); return *this;} ///@} @@ -119,11 +119,11 @@ namespace Model /** *

The service isn't available. Try again later.

*/ - inline const ServiceUnavailableException& GetServiceUnavailableException() const { return m_serviceUnavailableException; } + inline const BedrockRuntimeError& GetServiceUnavailableException() const { return m_serviceUnavailableException; } inline bool ServiceUnavailableExceptionHasBeenSet() const { return m_serviceUnavailableExceptionHasBeenSet; } - template + template void SetServiceUnavailableException(ServiceUnavailableExceptionT&& value) { m_serviceUnavailableExceptionHasBeenSet = true; m_serviceUnavailableException = std::forward(value); } - template + template ResponseStream& WithServiceUnavailableException(ServiceUnavailableExceptionT&& value) { SetServiceUnavailableException(std::forward(value)); return *this;} ///@} private: @@ -131,22 +131,22 @@ namespace Model PayloadPart m_chunk; bool m_chunkHasBeenSet = false; - InternalServerException m_internalServerException; + BedrockRuntimeError m_internalServerException; bool m_internalServerExceptionHasBeenSet = false; ModelStreamErrorException m_modelStreamErrorException; bool m_modelStreamErrorExceptionHasBeenSet = false; - ValidationException m_validationException; + BedrockRuntimeError m_validationException; bool m_validationExceptionHasBeenSet = false; - ThrottlingException m_throttlingException; + BedrockRuntimeError m_throttlingException; bool m_throttlingExceptionHasBeenSet = false; - ModelTimeoutException m_modelTimeoutException; + BedrockRuntimeError m_modelTimeoutException; bool m_modelTimeoutExceptionHasBeenSet = false; - ServiceUnavailableException m_serviceUnavailableException; + BedrockRuntimeError m_serviceUnavailableException; bool m_serviceUnavailableExceptionHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/include/aws/iotsitewise/model/ResponseStream.h b/generated/src/aws-cpp-sdk-iotsitewise/include/aws/iotsitewise/model/ResponseStream.h index 274937ea6ef..5a3908bd19f 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/include/aws/iotsitewise/model/ResponseStream.h +++ b/generated/src/aws-cpp-sdk-iotsitewise/include/aws/iotsitewise/model/ResponseStream.h @@ -67,11 +67,11 @@ namespace Model ///@{ - inline const AccessDeniedException& GetAccessDeniedException() const { return m_accessDeniedException; } + inline const IoTSiteWiseError& GetAccessDeniedException() const { return m_accessDeniedException; } inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; } - template + template void SetAccessDeniedException(AccessDeniedExceptionT&& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = std::forward(value); } - template + template ResponseStream& WithAccessDeniedException(AccessDeniedExceptionT&& value) { SetAccessDeniedException(std::forward(value)); return *this;} ///@} @@ -87,51 +87,51 @@ namespace Model ///@{ - inline const InternalFailureException& GetInternalFailureException() const { return m_internalFailureException; } + inline const IoTSiteWiseError& GetInternalFailureException() const { return m_internalFailureException; } inline bool InternalFailureExceptionHasBeenSet() const { return m_internalFailureExceptionHasBeenSet; } - template + template void SetInternalFailureException(InternalFailureExceptionT&& value) { m_internalFailureExceptionHasBeenSet = true; m_internalFailureException = std::forward(value); } - template + template ResponseStream& WithInternalFailureException(InternalFailureExceptionT&& value) { SetInternalFailureException(std::forward(value)); return *this;} ///@} ///@{ - inline const InvalidRequestException& GetInvalidRequestException() const { return m_invalidRequestException; } + inline const IoTSiteWiseError& GetInvalidRequestException() const { return m_invalidRequestException; } inline bool InvalidRequestExceptionHasBeenSet() const { return m_invalidRequestExceptionHasBeenSet; } - template + template void SetInvalidRequestException(InvalidRequestExceptionT&& value) { m_invalidRequestExceptionHasBeenSet = true; m_invalidRequestException = std::forward(value); } - template + template ResponseStream& WithInvalidRequestException(InvalidRequestExceptionT&& value) { SetInvalidRequestException(std::forward(value)); return *this;} ///@} ///@{ - inline const LimitExceededException& GetLimitExceededException() const { return m_limitExceededException; } + inline const IoTSiteWiseError& GetLimitExceededException() const { return m_limitExceededException; } inline bool LimitExceededExceptionHasBeenSet() const { return m_limitExceededExceptionHasBeenSet; } - template + template void SetLimitExceededException(LimitExceededExceptionT&& value) { m_limitExceededExceptionHasBeenSet = true; m_limitExceededException = std::forward(value); } - template + template ResponseStream& WithLimitExceededException(LimitExceededExceptionT&& value) { SetLimitExceededException(std::forward(value)); return *this;} ///@} ///@{ - inline const ResourceNotFoundException& GetResourceNotFoundException() const { return m_resourceNotFoundException; } + inline const IoTSiteWiseError& GetResourceNotFoundException() const { return m_resourceNotFoundException; } inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; } - template + template void SetResourceNotFoundException(ResourceNotFoundExceptionT&& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = std::forward(value); } - template + template ResponseStream& WithResourceNotFoundException(ResourceNotFoundExceptionT&& value) { SetResourceNotFoundException(std::forward(value)); return *this;} ///@} ///@{ - inline const ThrottlingException& GetThrottlingException() const { return m_throttlingException; } + inline const IoTSiteWiseError& GetThrottlingException() const { return m_throttlingException; } inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; } - template + template void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::forward(value); } - template + template ResponseStream& WithThrottlingException(ThrottlingExceptionT&& value) { SetThrottlingException(std::forward(value)); return *this;} ///@} private: @@ -142,25 +142,25 @@ namespace Model InvocationOutput m_output; bool m_outputHasBeenSet = false; - AccessDeniedException m_accessDeniedException; + IoTSiteWiseError m_accessDeniedException; bool m_accessDeniedExceptionHasBeenSet = false; ConflictingOperationException m_conflictingOperationException; bool m_conflictingOperationExceptionHasBeenSet = false; - InternalFailureException m_internalFailureException; + IoTSiteWiseError m_internalFailureException; bool m_internalFailureExceptionHasBeenSet = false; - InvalidRequestException m_invalidRequestException; + IoTSiteWiseError m_invalidRequestException; bool m_invalidRequestExceptionHasBeenSet = false; - LimitExceededException m_limitExceededException; + IoTSiteWiseError m_limitExceededException; bool m_limitExceededExceptionHasBeenSet = false; - ResourceNotFoundException m_resourceNotFoundException; + IoTSiteWiseError m_resourceNotFoundException; bool m_resourceNotFoundExceptionHasBeenSet = false; - ThrottlingException m_throttlingException; + IoTSiteWiseError m_throttlingException; bool m_throttlingExceptionHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-kinesis/include/aws/kinesis/model/SubscribeToShardEventStream.h b/generated/src/aws-cpp-sdk-kinesis/include/aws/kinesis/model/SubscribeToShardEventStream.h index db31b27de92..f4eab543fb9 100644 --- a/generated/src/aws-cpp-sdk-kinesis/include/aws/kinesis/model/SubscribeToShardEventStream.h +++ b/generated/src/aws-cpp-sdk-kinesis/include/aws/kinesis/model/SubscribeToShardEventStream.h @@ -56,81 +56,81 @@ namespace Model ///@{ - inline const ResourceNotFoundException& GetResourceNotFoundException() const { return m_resourceNotFoundException; } + inline const KinesisError& GetResourceNotFoundException() const { return m_resourceNotFoundException; } inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; } - template + template void SetResourceNotFoundException(ResourceNotFoundExceptionT&& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = std::forward(value); } - template + template SubscribeToShardEventStream& WithResourceNotFoundException(ResourceNotFoundExceptionT&& value) { SetResourceNotFoundException(std::forward(value)); return *this;} ///@} ///@{ - inline const ResourceInUseException& GetResourceInUseException() const { return m_resourceInUseException; } + inline const KinesisError& GetResourceInUseException() const { return m_resourceInUseException; } inline bool ResourceInUseExceptionHasBeenSet() const { return m_resourceInUseExceptionHasBeenSet; } - template + template void SetResourceInUseException(ResourceInUseExceptionT&& value) { m_resourceInUseExceptionHasBeenSet = true; m_resourceInUseException = std::forward(value); } - template + template SubscribeToShardEventStream& WithResourceInUseException(ResourceInUseExceptionT&& value) { SetResourceInUseException(std::forward(value)); return *this;} ///@} ///@{ - inline const KMSDisabledException& GetKMSDisabledException() const { return m_kMSDisabledException; } + inline const KinesisError& GetKMSDisabledException() const { return m_kMSDisabledException; } inline bool KMSDisabledExceptionHasBeenSet() const { return m_kMSDisabledExceptionHasBeenSet; } - template + template void SetKMSDisabledException(KMSDisabledExceptionT&& value) { m_kMSDisabledExceptionHasBeenSet = true; m_kMSDisabledException = std::forward(value); } - template + template SubscribeToShardEventStream& WithKMSDisabledException(KMSDisabledExceptionT&& value) { SetKMSDisabledException(std::forward(value)); return *this;} ///@} ///@{ - inline const KMSInvalidStateException& GetKMSInvalidStateException() const { return m_kMSInvalidStateException; } + inline const KinesisError& GetKMSInvalidStateException() const { return m_kMSInvalidStateException; } inline bool KMSInvalidStateExceptionHasBeenSet() const { return m_kMSInvalidStateExceptionHasBeenSet; } - template + template void SetKMSInvalidStateException(KMSInvalidStateExceptionT&& value) { m_kMSInvalidStateExceptionHasBeenSet = true; m_kMSInvalidStateException = std::forward(value); } - template + template SubscribeToShardEventStream& WithKMSInvalidStateException(KMSInvalidStateExceptionT&& value) { SetKMSInvalidStateException(std::forward(value)); return *this;} ///@} ///@{ - inline const KMSAccessDeniedException& GetKMSAccessDeniedException() const { return m_kMSAccessDeniedException; } + inline const KinesisError& GetKMSAccessDeniedException() const { return m_kMSAccessDeniedException; } inline bool KMSAccessDeniedExceptionHasBeenSet() const { return m_kMSAccessDeniedExceptionHasBeenSet; } - template + template void SetKMSAccessDeniedException(KMSAccessDeniedExceptionT&& value) { m_kMSAccessDeniedExceptionHasBeenSet = true; m_kMSAccessDeniedException = std::forward(value); } - template + template SubscribeToShardEventStream& WithKMSAccessDeniedException(KMSAccessDeniedExceptionT&& value) { SetKMSAccessDeniedException(std::forward(value)); return *this;} ///@} ///@{ - inline const KMSNotFoundException& GetKMSNotFoundException() const { return m_kMSNotFoundException; } + inline const KinesisError& GetKMSNotFoundException() const { return m_kMSNotFoundException; } inline bool KMSNotFoundExceptionHasBeenSet() const { return m_kMSNotFoundExceptionHasBeenSet; } - template + template void SetKMSNotFoundException(KMSNotFoundExceptionT&& value) { m_kMSNotFoundExceptionHasBeenSet = true; m_kMSNotFoundException = std::forward(value); } - template + template SubscribeToShardEventStream& WithKMSNotFoundException(KMSNotFoundExceptionT&& value) { SetKMSNotFoundException(std::forward(value)); return *this;} ///@} ///@{ - inline const KMSOptInRequired& GetKMSOptInRequired() const { return m_kMSOptInRequired; } + inline const KinesisError& GetKMSOptInRequired() const { return m_kMSOptInRequired; } inline bool KMSOptInRequiredHasBeenSet() const { return m_kMSOptInRequiredHasBeenSet; } - template + template void SetKMSOptInRequired(KMSOptInRequiredT&& value) { m_kMSOptInRequiredHasBeenSet = true; m_kMSOptInRequired = std::forward(value); } - template + template SubscribeToShardEventStream& WithKMSOptInRequired(KMSOptInRequiredT&& value) { SetKMSOptInRequired(std::forward(value)); return *this;} ///@} ///@{ - inline const KMSThrottlingException& GetKMSThrottlingException() const { return m_kMSThrottlingException; } + inline const KinesisError& GetKMSThrottlingException() const { return m_kMSThrottlingException; } inline bool KMSThrottlingExceptionHasBeenSet() const { return m_kMSThrottlingExceptionHasBeenSet; } - template + template void SetKMSThrottlingException(KMSThrottlingExceptionT&& value) { m_kMSThrottlingExceptionHasBeenSet = true; m_kMSThrottlingException = std::forward(value); } - template + template SubscribeToShardEventStream& WithKMSThrottlingException(KMSThrottlingExceptionT&& value) { SetKMSThrottlingException(std::forward(value)); return *this;} ///@} @@ -139,11 +139,11 @@ namespace Model *

The processing of the request failed because of an unknown error, exception, * or failure.

*/ - inline const InternalFailureException& GetInternalFailureException() const { return m_internalFailureException; } + inline const KinesisError& GetInternalFailureException() const { return m_internalFailureException; } inline bool InternalFailureExceptionHasBeenSet() const { return m_internalFailureExceptionHasBeenSet; } - template + template void SetInternalFailureException(InternalFailureExceptionT&& value) { m_internalFailureExceptionHasBeenSet = true; m_internalFailureException = std::forward(value); } - template + template SubscribeToShardEventStream& WithInternalFailureException(InternalFailureExceptionT&& value) { SetInternalFailureException(std::forward(value)); return *this;} ///@} private: @@ -151,31 +151,31 @@ namespace Model SubscribeToShardEvent m_subscribeToShardEvent; bool m_subscribeToShardEventHasBeenSet = false; - ResourceNotFoundException m_resourceNotFoundException; + KinesisError m_resourceNotFoundException; bool m_resourceNotFoundExceptionHasBeenSet = false; - ResourceInUseException m_resourceInUseException; + KinesisError m_resourceInUseException; bool m_resourceInUseExceptionHasBeenSet = false; - KMSDisabledException m_kMSDisabledException; + KinesisError m_kMSDisabledException; bool m_kMSDisabledExceptionHasBeenSet = false; - KMSInvalidStateException m_kMSInvalidStateException; + KinesisError m_kMSInvalidStateException; bool m_kMSInvalidStateExceptionHasBeenSet = false; - KMSAccessDeniedException m_kMSAccessDeniedException; + KinesisError m_kMSAccessDeniedException; bool m_kMSAccessDeniedExceptionHasBeenSet = false; - KMSNotFoundException m_kMSNotFoundException; + KinesisError m_kMSNotFoundException; bool m_kMSNotFoundExceptionHasBeenSet = false; - KMSOptInRequired m_kMSOptInRequired; + KinesisError m_kMSOptInRequired; bool m_kMSOptInRequiredHasBeenSet = false; - KMSThrottlingException m_kMSThrottlingException; + KinesisError m_kMSThrottlingException; bool m_kMSThrottlingExceptionHasBeenSet = false; - InternalFailureException m_internalFailureException; + KinesisError m_internalFailureException; bool m_internalFailureExceptionHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-lexv2-runtime/include/aws/lexv2-runtime/model/StartConversationResponseEventStream.h b/generated/src/aws-cpp-sdk-lexv2-runtime/include/aws/lexv2-runtime/model/StartConversationResponseEventStream.h index bc9231343a0..916bc74f417 100644 --- a/generated/src/aws-cpp-sdk-lexv2-runtime/include/aws/lexv2-runtime/model/StartConversationResponseEventStream.h +++ b/generated/src/aws-cpp-sdk-lexv2-runtime/include/aws/lexv2-runtime/model/StartConversationResponseEventStream.h @@ -112,11 +112,11 @@ namespace Model * expired. Also thrown when the credentials in the request do not have permission * to access the StartConversation operation.

*/ - inline const AccessDeniedException& GetAccessDeniedException() const { return m_accessDeniedException; } + inline const LexRuntimeV2Error& GetAccessDeniedException() const { return m_accessDeniedException; } inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; } - template + template void SetAccessDeniedException(AccessDeniedExceptionT&& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = std::forward(value); } - template + template StartConversationResponseEventStream& WithAccessDeniedException(AccessDeniedExceptionT&& value) { SetAccessDeniedException(std::forward(value)); return *this;} ///@} @@ -125,11 +125,11 @@ namespace Model *

Exception thrown if one of the input parameters points to a resource that * does not exist. For example, if the bot ID specified does not exist.

*/ - inline const ResourceNotFoundException& GetResourceNotFoundException() const { return m_resourceNotFoundException; } + inline const LexRuntimeV2Error& GetResourceNotFoundException() const { return m_resourceNotFoundException; } inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; } - template + template void SetResourceNotFoundException(ResourceNotFoundExceptionT&& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = std::forward(value); } - template + template StartConversationResponseEventStream& WithResourceNotFoundException(ResourceNotFoundExceptionT&& value) { SetResourceNotFoundException(std::forward(value)); return *this;} ///@} @@ -138,11 +138,11 @@ namespace Model *

Exception thrown when one or more parameters could not be validated. The * message contains the name of the field that isn't valid.

*/ - inline const ValidationException& GetValidationException() const { return m_validationException; } + inline const LexRuntimeV2Error& GetValidationException() const { return m_validationException; } inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; } - template + template void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::forward(value); } - template + template StartConversationResponseEventStream& WithValidationException(ValidationExceptionT&& value) { SetValidationException(std::forward(value)); return *this;} ///@} @@ -151,11 +151,11 @@ namespace Model *

Exception thrown when your application exceeds the maximum number of * concurrent requests.

*/ - inline const ThrottlingException& GetThrottlingException() const { return m_throttlingException; } + inline const LexRuntimeV2Error& GetThrottlingException() const { return m_throttlingException; } inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; } - template + template void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::forward(value); } - template + template StartConversationResponseEventStream& WithThrottlingException(ThrottlingExceptionT&& value) { SetThrottlingException(std::forward(value)); return *this;} ///@} @@ -163,11 +163,11 @@ namespace Model /** *

An error occurred with Amazon Lex V2.

*/ - inline const InternalServerException& GetInternalServerException() const { return m_internalServerException; } + inline const LexRuntimeV2Error& GetInternalServerException() const { return m_internalServerException; } inline bool InternalServerExceptionHasBeenSet() const { return m_internalServerExceptionHasBeenSet; } - template + template void SetInternalServerException(InternalServerExceptionT&& value) { m_internalServerExceptionHasBeenSet = true; m_internalServerException = std::forward(value); } - template + template StartConversationResponseEventStream& WithInternalServerException(InternalServerExceptionT&& value) { SetInternalServerException(std::forward(value)); return *this;} ///@} @@ -176,31 +176,31 @@ namespace Model *

Exception thrown when two clients are using the same AWS account, Amazon Lex * V2 bot, and session ID.

*/ - inline const ConflictException& GetConflictException() const { return m_conflictException; } + inline const LexRuntimeV2Error& GetConflictException() const { return m_conflictException; } inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; } - template + template void SetConflictException(ConflictExceptionT&& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = std::forward(value); } - template + template StartConversationResponseEventStream& WithConflictException(ConflictExceptionT&& value) { SetConflictException(std::forward(value)); return *this;} ///@} ///@{ - inline const DependencyFailedException& GetDependencyFailedException() const { return m_dependencyFailedException; } + inline const LexRuntimeV2Error& GetDependencyFailedException() const { return m_dependencyFailedException; } inline bool DependencyFailedExceptionHasBeenSet() const { return m_dependencyFailedExceptionHasBeenSet; } - template + template void SetDependencyFailedException(DependencyFailedExceptionT&& value) { m_dependencyFailedExceptionHasBeenSet = true; m_dependencyFailedException = std::forward(value); } - template + template StartConversationResponseEventStream& WithDependencyFailedException(DependencyFailedExceptionT&& value) { SetDependencyFailedException(std::forward(value)); return *this;} ///@} ///@{ - inline const BadGatewayException& GetBadGatewayException() const { return m_badGatewayException; } + inline const LexRuntimeV2Error& GetBadGatewayException() const { return m_badGatewayException; } inline bool BadGatewayExceptionHasBeenSet() const { return m_badGatewayExceptionHasBeenSet; } - template + template void SetBadGatewayException(BadGatewayExceptionT&& value) { m_badGatewayExceptionHasBeenSet = true; m_badGatewayException = std::forward(value); } - template + template StartConversationResponseEventStream& WithBadGatewayException(BadGatewayExceptionT&& value) { SetBadGatewayException(std::forward(value)); return *this;} ///@} private: @@ -223,28 +223,28 @@ namespace Model HeartbeatEvent m_heartbeatEvent; bool m_heartbeatEventHasBeenSet = false; - AccessDeniedException m_accessDeniedException; + LexRuntimeV2Error m_accessDeniedException; bool m_accessDeniedExceptionHasBeenSet = false; - ResourceNotFoundException m_resourceNotFoundException; + LexRuntimeV2Error m_resourceNotFoundException; bool m_resourceNotFoundExceptionHasBeenSet = false; - ValidationException m_validationException; + LexRuntimeV2Error m_validationException; bool m_validationExceptionHasBeenSet = false; - ThrottlingException m_throttlingException; + LexRuntimeV2Error m_throttlingException; bool m_throttlingExceptionHasBeenSet = false; - InternalServerException m_internalServerException; + LexRuntimeV2Error m_internalServerException; bool m_internalServerExceptionHasBeenSet = false; - ConflictException m_conflictException; + LexRuntimeV2Error m_conflictException; bool m_conflictExceptionHasBeenSet = false; - DependencyFailedException m_dependencyFailedException; + LexRuntimeV2Error m_dependencyFailedException; bool m_dependencyFailedExceptionHasBeenSet = false; - BadGatewayException m_badGatewayException; + LexRuntimeV2Error m_badGatewayException; bool m_badGatewayExceptionHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/StartLiveTailResponseStream.h b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/StartLiveTailResponseStream.h index 3a463f30d60..969849161c6 100644 --- a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/StartLiveTailResponseStream.h +++ b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/StartLiveTailResponseStream.h @@ -70,11 +70,11 @@ namespace Model *

This exception is returned in the stream when the Live Tail session times * out. Live Tail sessions time out after three hours.

*/ - inline const SessionTimeoutException& GetSessionTimeoutException() const { return m_sessionTimeoutException; } + inline const CloudWatchLogsError& GetSessionTimeoutException() const { return m_sessionTimeoutException; } inline bool SessionTimeoutExceptionHasBeenSet() const { return m_sessionTimeoutExceptionHasBeenSet; } - template + template void SetSessionTimeoutException(SessionTimeoutExceptionT&& value) { m_sessionTimeoutExceptionHasBeenSet = true; m_sessionTimeoutException = std::forward(value); } - template + template StartLiveTailResponseStream& WithSessionTimeoutException(SessionTimeoutExceptionT&& value) { SetSessionTimeoutException(std::forward(value)); return *this;} ///@} @@ -82,11 +82,11 @@ namespace Model /** *

This exception is returned if an unknown error occurs.

*/ - inline const SessionStreamingException& GetSessionStreamingException() const { return m_sessionStreamingException; } + inline const CloudWatchLogsError& GetSessionStreamingException() const { return m_sessionStreamingException; } inline bool SessionStreamingExceptionHasBeenSet() const { return m_sessionStreamingExceptionHasBeenSet; } - template + template void SetSessionStreamingException(SessionStreamingExceptionT&& value) { m_sessionStreamingExceptionHasBeenSet = true; m_sessionStreamingException = std::forward(value); } - template + template StartLiveTailResponseStream& WithSessionStreamingException(SessionStreamingExceptionT&& value) { SetSessionStreamingException(std::forward(value)); return *this;} ///@} private: @@ -97,10 +97,10 @@ namespace Model LiveTailSessionUpdate m_sessionUpdate; bool m_sessionUpdateHasBeenSet = false; - SessionTimeoutException m_sessionTimeoutException; + CloudWatchLogsError m_sessionTimeoutException; bool m_sessionTimeoutExceptionHasBeenSet = false; - SessionStreamingException m_sessionStreamingException; + CloudWatchLogsError m_sessionStreamingException; bool m_sessionStreamingExceptionHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-sagemaker-runtime/include/aws/sagemaker-runtime/model/ResponseStream.h b/generated/src/aws-cpp-sdk-sagemaker-runtime/include/aws/sagemaker-runtime/model/ResponseStream.h index 06ef684fb8e..9e01490dc56 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-runtime/include/aws/sagemaker-runtime/model/ResponseStream.h +++ b/generated/src/aws-cpp-sdk-sagemaker-runtime/include/aws/sagemaker-runtime/model/ResponseStream.h @@ -75,11 +75,11 @@ namespace Model *

The stream processing failed because of an unknown error, exception or * failure. Try your request again.

*/ - inline const InternalStreamFailure& GetInternalStreamFailure() const { return m_internalStreamFailure; } + inline const SageMakerRuntimeError& GetInternalStreamFailure() const { return m_internalStreamFailure; } inline bool InternalStreamFailureHasBeenSet() const { return m_internalStreamFailureHasBeenSet; } - template + template void SetInternalStreamFailure(InternalStreamFailureT&& value) { m_internalStreamFailureHasBeenSet = true; m_internalStreamFailure = std::forward(value); } - template + template ResponseStream& WithInternalStreamFailure(InternalStreamFailureT&& value) { SetInternalStreamFailure(std::forward(value)); return *this;} ///@} private: @@ -90,7 +90,7 @@ namespace Model ModelStreamError m_modelStreamError; bool m_modelStreamErrorHasBeenSet = false; - InternalStreamFailure m_internalStreamFailure; + SageMakerRuntimeError m_internalStreamFailure; bool m_internalStreamFailureHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/CallAnalyticsTranscriptResultStream.h b/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/CallAnalyticsTranscriptResultStream.h index 62b3efcec4f..848902bf93d 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/CallAnalyticsTranscriptResultStream.h +++ b/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/CallAnalyticsTranscriptResultStream.h @@ -70,51 +70,51 @@ namespace Model ///@{ - inline const BadRequestException& GetBadRequestException() const { return m_badRequestException; } + inline const TranscribeStreamingServiceError& GetBadRequestException() const { return m_badRequestException; } inline bool BadRequestExceptionHasBeenSet() const { return m_badRequestExceptionHasBeenSet; } - template + template void SetBadRequestException(BadRequestExceptionT&& value) { m_badRequestExceptionHasBeenSet = true; m_badRequestException = std::forward(value); } - template + template CallAnalyticsTranscriptResultStream& WithBadRequestException(BadRequestExceptionT&& value) { SetBadRequestException(std::forward(value)); return *this;} ///@} ///@{ - inline const LimitExceededException& GetLimitExceededException() const { return m_limitExceededException; } + inline const TranscribeStreamingServiceError& GetLimitExceededException() const { return m_limitExceededException; } inline bool LimitExceededExceptionHasBeenSet() const { return m_limitExceededExceptionHasBeenSet; } - template + template void SetLimitExceededException(LimitExceededExceptionT&& value) { m_limitExceededExceptionHasBeenSet = true; m_limitExceededException = std::forward(value); } - template + template CallAnalyticsTranscriptResultStream& WithLimitExceededException(LimitExceededExceptionT&& value) { SetLimitExceededException(std::forward(value)); return *this;} ///@} ///@{ - inline const InternalFailureException& GetInternalFailureException() const { return m_internalFailureException; } + inline const TranscribeStreamingServiceError& GetInternalFailureException() const { return m_internalFailureException; } inline bool InternalFailureExceptionHasBeenSet() const { return m_internalFailureExceptionHasBeenSet; } - template + template void SetInternalFailureException(InternalFailureExceptionT&& value) { m_internalFailureExceptionHasBeenSet = true; m_internalFailureException = std::forward(value); } - template + template CallAnalyticsTranscriptResultStream& WithInternalFailureException(InternalFailureExceptionT&& value) { SetInternalFailureException(std::forward(value)); return *this;} ///@} ///@{ - inline const ConflictException& GetConflictException() const { return m_conflictException; } + inline const TranscribeStreamingServiceError& GetConflictException() const { return m_conflictException; } inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; } - template + template void SetConflictException(ConflictExceptionT&& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = std::forward(value); } - template + template CallAnalyticsTranscriptResultStream& WithConflictException(ConflictExceptionT&& value) { SetConflictException(std::forward(value)); return *this;} ///@} ///@{ - inline const ServiceUnavailableException& GetServiceUnavailableException() const { return m_serviceUnavailableException; } + inline const TranscribeStreamingServiceError& GetServiceUnavailableException() const { return m_serviceUnavailableException; } inline bool ServiceUnavailableExceptionHasBeenSet() const { return m_serviceUnavailableExceptionHasBeenSet; } - template + template void SetServiceUnavailableException(ServiceUnavailableExceptionT&& value) { m_serviceUnavailableExceptionHasBeenSet = true; m_serviceUnavailableException = std::forward(value); } - template + template CallAnalyticsTranscriptResultStream& WithServiceUnavailableException(ServiceUnavailableExceptionT&& value) { SetServiceUnavailableException(std::forward(value)); return *this;} ///@} private: @@ -125,19 +125,19 @@ namespace Model CategoryEvent m_categoryEvent; bool m_categoryEventHasBeenSet = false; - BadRequestException m_badRequestException; + TranscribeStreamingServiceError m_badRequestException; bool m_badRequestExceptionHasBeenSet = false; - LimitExceededException m_limitExceededException; + TranscribeStreamingServiceError m_limitExceededException; bool m_limitExceededExceptionHasBeenSet = false; - InternalFailureException m_internalFailureException; + TranscribeStreamingServiceError m_internalFailureException; bool m_internalFailureExceptionHasBeenSet = false; - ConflictException m_conflictException; + TranscribeStreamingServiceError m_conflictException; bool m_conflictExceptionHasBeenSet = false; - ServiceUnavailableException m_serviceUnavailableException; + TranscribeStreamingServiceError m_serviceUnavailableException; bool m_serviceUnavailableExceptionHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/MedicalScribeResultStream.h b/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/MedicalScribeResultStream.h index 435f91e8f5a..a3f823d944c 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/MedicalScribeResultStream.h +++ b/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/MedicalScribeResultStream.h @@ -53,51 +53,51 @@ namespace Model ///@{ - inline const BadRequestException& GetBadRequestException() const { return m_badRequestException; } + inline const TranscribeStreamingServiceError& GetBadRequestException() const { return m_badRequestException; } inline bool BadRequestExceptionHasBeenSet() const { return m_badRequestExceptionHasBeenSet; } - template + template void SetBadRequestException(BadRequestExceptionT&& value) { m_badRequestExceptionHasBeenSet = true; m_badRequestException = std::forward(value); } - template + template MedicalScribeResultStream& WithBadRequestException(BadRequestExceptionT&& value) { SetBadRequestException(std::forward(value)); return *this;} ///@} ///@{ - inline const LimitExceededException& GetLimitExceededException() const { return m_limitExceededException; } + inline const TranscribeStreamingServiceError& GetLimitExceededException() const { return m_limitExceededException; } inline bool LimitExceededExceptionHasBeenSet() const { return m_limitExceededExceptionHasBeenSet; } - template + template void SetLimitExceededException(LimitExceededExceptionT&& value) { m_limitExceededExceptionHasBeenSet = true; m_limitExceededException = std::forward(value); } - template + template MedicalScribeResultStream& WithLimitExceededException(LimitExceededExceptionT&& value) { SetLimitExceededException(std::forward(value)); return *this;} ///@} ///@{ - inline const InternalFailureException& GetInternalFailureException() const { return m_internalFailureException; } + inline const TranscribeStreamingServiceError& GetInternalFailureException() const { return m_internalFailureException; } inline bool InternalFailureExceptionHasBeenSet() const { return m_internalFailureExceptionHasBeenSet; } - template + template void SetInternalFailureException(InternalFailureExceptionT&& value) { m_internalFailureExceptionHasBeenSet = true; m_internalFailureException = std::forward(value); } - template + template MedicalScribeResultStream& WithInternalFailureException(InternalFailureExceptionT&& value) { SetInternalFailureException(std::forward(value)); return *this;} ///@} ///@{ - inline const ConflictException& GetConflictException() const { return m_conflictException; } + inline const TranscribeStreamingServiceError& GetConflictException() const { return m_conflictException; } inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; } - template + template void SetConflictException(ConflictExceptionT&& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = std::forward(value); } - template + template MedicalScribeResultStream& WithConflictException(ConflictExceptionT&& value) { SetConflictException(std::forward(value)); return *this;} ///@} ///@{ - inline const ServiceUnavailableException& GetServiceUnavailableException() const { return m_serviceUnavailableException; } + inline const TranscribeStreamingServiceError& GetServiceUnavailableException() const { return m_serviceUnavailableException; } inline bool ServiceUnavailableExceptionHasBeenSet() const { return m_serviceUnavailableExceptionHasBeenSet; } - template + template void SetServiceUnavailableException(ServiceUnavailableExceptionT&& value) { m_serviceUnavailableExceptionHasBeenSet = true; m_serviceUnavailableException = std::forward(value); } - template + template MedicalScribeResultStream& WithServiceUnavailableException(ServiceUnavailableExceptionT&& value) { SetServiceUnavailableException(std::forward(value)); return *this;} ///@} private: @@ -105,19 +105,19 @@ namespace Model MedicalScribeTranscriptEvent m_transcriptEvent; bool m_transcriptEventHasBeenSet = false; - BadRequestException m_badRequestException; + TranscribeStreamingServiceError m_badRequestException; bool m_badRequestExceptionHasBeenSet = false; - LimitExceededException m_limitExceededException; + TranscribeStreamingServiceError m_limitExceededException; bool m_limitExceededExceptionHasBeenSet = false; - InternalFailureException m_internalFailureException; + TranscribeStreamingServiceError m_internalFailureException; bool m_internalFailureExceptionHasBeenSet = false; - ConflictException m_conflictException; + TranscribeStreamingServiceError m_conflictException; bool m_conflictExceptionHasBeenSet = false; - ServiceUnavailableException m_serviceUnavailableException; + TranscribeStreamingServiceError m_serviceUnavailableException; bool m_serviceUnavailableExceptionHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/MedicalTranscriptResultStream.h b/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/MedicalTranscriptResultStream.h index 51608fc5e8f..857114e3134 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/MedicalTranscriptResultStream.h +++ b/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/MedicalTranscriptResultStream.h @@ -58,51 +58,51 @@ namespace Model ///@{ - inline const BadRequestException& GetBadRequestException() const { return m_badRequestException; } + inline const TranscribeStreamingServiceError& GetBadRequestException() const { return m_badRequestException; } inline bool BadRequestExceptionHasBeenSet() const { return m_badRequestExceptionHasBeenSet; } - template + template void SetBadRequestException(BadRequestExceptionT&& value) { m_badRequestExceptionHasBeenSet = true; m_badRequestException = std::forward(value); } - template + template MedicalTranscriptResultStream& WithBadRequestException(BadRequestExceptionT&& value) { SetBadRequestException(std::forward(value)); return *this;} ///@} ///@{ - inline const LimitExceededException& GetLimitExceededException() const { return m_limitExceededException; } + inline const TranscribeStreamingServiceError& GetLimitExceededException() const { return m_limitExceededException; } inline bool LimitExceededExceptionHasBeenSet() const { return m_limitExceededExceptionHasBeenSet; } - template + template void SetLimitExceededException(LimitExceededExceptionT&& value) { m_limitExceededExceptionHasBeenSet = true; m_limitExceededException = std::forward(value); } - template + template MedicalTranscriptResultStream& WithLimitExceededException(LimitExceededExceptionT&& value) { SetLimitExceededException(std::forward(value)); return *this;} ///@} ///@{ - inline const InternalFailureException& GetInternalFailureException() const { return m_internalFailureException; } + inline const TranscribeStreamingServiceError& GetInternalFailureException() const { return m_internalFailureException; } inline bool InternalFailureExceptionHasBeenSet() const { return m_internalFailureExceptionHasBeenSet; } - template + template void SetInternalFailureException(InternalFailureExceptionT&& value) { m_internalFailureExceptionHasBeenSet = true; m_internalFailureException = std::forward(value); } - template + template MedicalTranscriptResultStream& WithInternalFailureException(InternalFailureExceptionT&& value) { SetInternalFailureException(std::forward(value)); return *this;} ///@} ///@{ - inline const ConflictException& GetConflictException() const { return m_conflictException; } + inline const TranscribeStreamingServiceError& GetConflictException() const { return m_conflictException; } inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; } - template + template void SetConflictException(ConflictExceptionT&& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = std::forward(value); } - template + template MedicalTranscriptResultStream& WithConflictException(ConflictExceptionT&& value) { SetConflictException(std::forward(value)); return *this;} ///@} ///@{ - inline const ServiceUnavailableException& GetServiceUnavailableException() const { return m_serviceUnavailableException; } + inline const TranscribeStreamingServiceError& GetServiceUnavailableException() const { return m_serviceUnavailableException; } inline bool ServiceUnavailableExceptionHasBeenSet() const { return m_serviceUnavailableExceptionHasBeenSet; } - template + template void SetServiceUnavailableException(ServiceUnavailableExceptionT&& value) { m_serviceUnavailableExceptionHasBeenSet = true; m_serviceUnavailableException = std::forward(value); } - template + template MedicalTranscriptResultStream& WithServiceUnavailableException(ServiceUnavailableExceptionT&& value) { SetServiceUnavailableException(std::forward(value)); return *this;} ///@} private: @@ -110,19 +110,19 @@ namespace Model MedicalTranscriptEvent m_transcriptEvent; bool m_transcriptEventHasBeenSet = false; - BadRequestException m_badRequestException; + TranscribeStreamingServiceError m_badRequestException; bool m_badRequestExceptionHasBeenSet = false; - LimitExceededException m_limitExceededException; + TranscribeStreamingServiceError m_limitExceededException; bool m_limitExceededExceptionHasBeenSet = false; - InternalFailureException m_internalFailureException; + TranscribeStreamingServiceError m_internalFailureException; bool m_internalFailureExceptionHasBeenSet = false; - ConflictException m_conflictException; + TranscribeStreamingServiceError m_conflictException; bool m_conflictExceptionHasBeenSet = false; - ServiceUnavailableException m_serviceUnavailableException; + TranscribeStreamingServiceError m_serviceUnavailableException; bool m_serviceUnavailableExceptionHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/TranscriptResultStream.h b/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/TranscriptResultStream.h index ef5b8fe553d..d059a73fc7e 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/TranscriptResultStream.h +++ b/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/TranscriptResultStream.h @@ -57,11 +57,11 @@ namespace Model *

A client error occurred when the stream was created. Check the parameters of * the request and try your request again.

*/ - inline const BadRequestException& GetBadRequestException() const { return m_badRequestException; } + inline const TranscribeStreamingServiceError& GetBadRequestException() const { return m_badRequestException; } inline bool BadRequestExceptionHasBeenSet() const { return m_badRequestExceptionHasBeenSet; } - template + template void SetBadRequestException(BadRequestExceptionT&& value) { m_badRequestExceptionHasBeenSet = true; m_badRequestException = std::forward(value); } - template + template TranscriptResultStream& WithBadRequestException(BadRequestExceptionT&& value) { SetBadRequestException(std::forward(value)); return *this;} ///@} @@ -71,11 +71,11 @@ namespace Model * typically the audio length limit. Break your audio stream into smaller chunks * and try your request again.

*/ - inline const LimitExceededException& GetLimitExceededException() const { return m_limitExceededException; } + inline const TranscribeStreamingServiceError& GetLimitExceededException() const { return m_limitExceededException; } inline bool LimitExceededExceptionHasBeenSet() const { return m_limitExceededExceptionHasBeenSet; } - template + template void SetLimitExceededException(LimitExceededExceptionT&& value) { m_limitExceededExceptionHasBeenSet = true; m_limitExceededException = std::forward(value); } - template + template TranscriptResultStream& WithLimitExceededException(LimitExceededExceptionT&& value) { SetLimitExceededException(std::forward(value)); return *this;} ///@} @@ -84,11 +84,11 @@ namespace Model *

A problem occurred while processing the audio. Amazon Transcribe terminated * processing.

*/ - inline const InternalFailureException& GetInternalFailureException() const { return m_internalFailureException; } + inline const TranscribeStreamingServiceError& GetInternalFailureException() const { return m_internalFailureException; } inline bool InternalFailureExceptionHasBeenSet() const { return m_internalFailureExceptionHasBeenSet; } - template + template void SetInternalFailureException(InternalFailureExceptionT&& value) { m_internalFailureExceptionHasBeenSet = true; m_internalFailureException = std::forward(value); } - template + template TranscriptResultStream& WithInternalFailureException(InternalFailureExceptionT&& value) { SetInternalFailureException(std::forward(value)); return *this;} ///@} @@ -97,11 +97,11 @@ namespace Model *

A new stream started with the same session ID. The current stream has been * terminated.

*/ - inline const ConflictException& GetConflictException() const { return m_conflictException; } + inline const TranscribeStreamingServiceError& GetConflictException() const { return m_conflictException; } inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; } - template + template void SetConflictException(ConflictExceptionT&& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = std::forward(value); } - template + template TranscriptResultStream& WithConflictException(ConflictExceptionT&& value) { SetConflictException(std::forward(value)); return *this;} ///@} @@ -109,11 +109,11 @@ namespace Model /** *

The service is currently unavailable. Try your request later.

*/ - inline const ServiceUnavailableException& GetServiceUnavailableException() const { return m_serviceUnavailableException; } + inline const TranscribeStreamingServiceError& GetServiceUnavailableException() const { return m_serviceUnavailableException; } inline bool ServiceUnavailableExceptionHasBeenSet() const { return m_serviceUnavailableExceptionHasBeenSet; } - template + template void SetServiceUnavailableException(ServiceUnavailableExceptionT&& value) { m_serviceUnavailableExceptionHasBeenSet = true; m_serviceUnavailableException = std::forward(value); } - template + template TranscriptResultStream& WithServiceUnavailableException(ServiceUnavailableExceptionT&& value) { SetServiceUnavailableException(std::forward(value)); return *this;} ///@} private: @@ -121,19 +121,19 @@ namespace Model TranscriptEvent m_transcriptEvent; bool m_transcriptEventHasBeenSet = false; - BadRequestException m_badRequestException; + TranscribeStreamingServiceError m_badRequestException; bool m_badRequestExceptionHasBeenSet = false; - LimitExceededException m_limitExceededException; + TranscribeStreamingServiceError m_limitExceededException; bool m_limitExceededExceptionHasBeenSet = false; - InternalFailureException m_internalFailureException; + TranscribeStreamingServiceError m_internalFailureException; bool m_internalFailureExceptionHasBeenSet = false; - ConflictException m_conflictException; + TranscribeStreamingServiceError m_conflictException; bool m_conflictExceptionHasBeenSet = false; - ServiceUnavailableException m_serviceUnavailableException; + TranscribeStreamingServiceError m_serviceUnavailableException; bool m_serviceUnavailableExceptionHasBeenSet = false; }; diff --git a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/ModelClassMembersAndInlines.vm b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/ModelClassMembersAndInlines.vm index dc15c298495..c269a30f6b1 100644 --- a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/ModelClassMembersAndInlines.vm +++ b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/ModelClassMembersAndInlines.vm @@ -14,6 +14,9 @@ #if($CppViewHelper.isStreamingPayloadMember($shape, $member.key) && $shape.result) #set($cppType = "Aws::Utils::Stream::ResponseStream") #set($isStream = true) +#elseif($member.value.shape.isException() && !$member.value.shape.isModeledException()) +#set($cppType = "${metadata.classNamePrefix}Error") +#set($isStream = false) #else #set($cppType = $CppViewHelper.computeCppType($member.value.shape)) #set($isStream = false) diff --git a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/common/model/ServiceClientModelHeaderMemberDeclaration.vm b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/common/model/ServiceClientModelHeaderMemberDeclaration.vm index 62db65c9d99..48a9f9969c8 100644 --- a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/common/model/ServiceClientModelHeaderMemberDeclaration.vm +++ b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/common/model/ServiceClientModelHeaderMemberDeclaration.vm @@ -7,6 +7,9 @@ #set($isEventStreamInput = false) #end #set($cppType = $CppViewHelper.computeCppType($shape, $member.key)) +#if($member.value.shape.isException() && !$member.value.shape.isModeledException()) +#set($cppType = "${metadata.classNamePrefix}Error") +#end #set($memberVariableName = $CppViewHelper.computeMemberVariableName($member.key)) #if($member.value.shape.getName() == $shape.getName() && $member.value.shape.list) Aws::Vector<$cppType> $memberVariableName;