diff --git a/VERSION b/VERSION index 2a819f9620c..95df9f993dc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.232 \ No newline at end of file +1.11.232 diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvokeAgentHandler.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvokeAgentHandler.h index 705474c5541..70d070ebac3 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvokeAgentHandler.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvokeAgentHandler.h @@ -10,6 +10,7 @@ #include #include +#include #include #include @@ -21,6 +22,7 @@ namespace Model { enum class InvokeAgentEventType { + INITIAL_RESPONSE, CHUNK, TRACE, UNKNOWN @@ -28,6 +30,7 @@ namespace Model class InvokeAgentHandler : public Aws::Utils::Event::EventStreamHandler { + typedef std::function InvokeAgentInitialResponseCallback; typedef std::function PayloadPartCallback; typedef std::function TracePartCallback; typedef std::function& error)> ErrorCallback; @@ -38,6 +41,7 @@ namespace Model AWS_BEDROCKAGENTRUNTIME_API virtual void OnEvent() override; + inline void SetInitialResponseCallback(const InvokeAgentInitialResponseCallback& callback) { m_onInitialResponse = callback; } inline void SetPayloadPartCallback(const PayloadPartCallback& callback) { m_onPayloadPart = callback; } inline void SetTracePartCallback(const TracePartCallback& callback) { m_onTracePart = callback; } inline void SetOnErrorCallback(const ErrorCallback& callback) { m_onError = callback; } @@ -47,6 +51,7 @@ namespace Model AWS_BEDROCKAGENTRUNTIME_API void HandleErrorInMessage(); AWS_BEDROCKAGENTRUNTIME_API void MarshallError(const Aws::String& errorCode, const Aws::String& errorMessage); + InvokeAgentInitialResponseCallback m_onInitialResponse; PayloadPartCallback m_onPayloadPart; TracePartCallback m_onTracePart; ErrorCallback m_onError; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvokeAgentInitialResponse.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvokeAgentInitialResponse.h new file mode 100644 index 00000000000..7161be42720 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvokeAgentInitialResponse.h @@ -0,0 +1,127 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + class InvokeAgentInitialResponse + { + public: + AWS_BEDROCKAGENTRUNTIME_API InvokeAgentInitialResponse(); + AWS_BEDROCKAGENTRUNTIME_API InvokeAgentInitialResponse(Aws::Utils::Json::JsonView jsonValue); + AWS_BEDROCKAGENTRUNTIME_API InvokeAgentInitialResponse& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

streaming response mimetype of the model

+ */ + inline const Aws::String& GetSessionId() const{ return m_sessionId; } + + /** + *

streaming response mimetype of the model

+ */ + inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; } + + /** + *

streaming response mimetype of the model

+ */ + inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; } + + /** + *

streaming response mimetype of the model

+ */ + inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); } + + /** + *

streaming response mimetype of the model

+ */ + inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); } + + /** + *

streaming response mimetype of the model

+ */ + inline InvokeAgentInitialResponse& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} + + /** + *

streaming response mimetype of the model

+ */ + inline InvokeAgentInitialResponse& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} + + /** + *

streaming response mimetype of the model

+ */ + inline InvokeAgentInitialResponse& WithSessionId(const char* value) { SetSessionId(value); return *this;} + + + /** + *

streaming response mimetype of the model

+ */ + inline const Aws::String& GetContentType() const{ return m_contentType; } + + /** + *

streaming response mimetype of the model

+ */ + inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; } + + /** + *

streaming response mimetype of the model

+ */ + inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; } + + /** + *

streaming response mimetype of the model

+ */ + inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); } + + /** + *

streaming response mimetype of the model

+ */ + inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); } + + /** + *

streaming response mimetype of the model

+ */ + inline InvokeAgentInitialResponse& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} + + /** + *

streaming response mimetype of the model

+ */ + inline InvokeAgentInitialResponse& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} + + /** + *

streaming response mimetype of the model

+ */ + inline InvokeAgentInitialResponse& WithContentType(const char* value) { SetContentType(value); return *this;} + + private: + + Aws::String m_sessionId; + bool m_sessionIdHasBeenSet = false; + + Aws::String m_contentType; + bool m_contentTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InvokeAgentHandler.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InvokeAgentHandler.cpp index 6aed197d870..8cb15a5ece3 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InvokeAgentHandler.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InvokeAgentHandler.cpp @@ -29,6 +29,12 @@ namespace Model InvokeAgentHandler::InvokeAgentHandler() : EventStreamHandler() { + m_onInitialResponse = [&](const InvokeAgentInitialResponse&) + { + AWS_LOGSTREAM_TRACE(INVOKEAGENT_HANDLER_CLASS_TAG, + "InvokeAgent initial response received."); + }; + m_onPayloadPart = [&](const PayloadPart&) { AWS_LOGSTREAM_TRACE(INVOKEAGENT_HANDLER_CLASS_TAG, "PayloadPart received."); @@ -93,6 +99,21 @@ namespace Model } switch (InvokeAgentEventMapper::GetInvokeAgentEventTypeForName(eventTypeHeaderIter->second.GetEventHeaderValueAsString())) { + + case InvokeAgentEventType::INITIAL_RESPONSE: + { + JsonValue json(GetEventPayloadAsString()); + if (!json.WasParseSuccessful()) + { + AWS_LOGSTREAM_WARN(INVOKEAGENT_HANDLER_CLASS_TAG, "Unable to generate a proper InvokeAgentInitialResponse object from the response in JSON format."); + break; + } + + InvokeAgentInitialResponse event(json.View()); + m_onInitialResponse(event); + break; + } + case InvokeAgentEventType::CHUNK: { JsonValue json(GetEventPayloadAsString()); @@ -209,13 +230,19 @@ namespace Model namespace InvokeAgentEventMapper { + static const int INITIAL_RESPONSE_HASH = Aws::Utils::HashingUtils::HashString("initial-response"); static const int CHUNK_HASH = Aws::Utils::HashingUtils::HashString("chunk"); static const int TRACE_HASH = Aws::Utils::HashingUtils::HashString("trace"); InvokeAgentEventType GetInvokeAgentEventTypeForName(const Aws::String& name) { int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); - if (hashCode == CHUNK_HASH) + + if (hashCode == INITIAL_RESPONSE_HASH) + { + return InvokeAgentEventType::INITIAL_RESPONSE; + } + else if (hashCode == CHUNK_HASH) { return InvokeAgentEventType::CHUNK; } @@ -230,6 +257,8 @@ namespace InvokeAgentEventMapper { switch (value) { + case InvokeAgentEventType::INITIAL_RESPONSE: + return "initial-response"; case InvokeAgentEventType::CHUNK: return "chunk"; case InvokeAgentEventType::TRACE: diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InvokeAgentInitialResponse.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InvokeAgentInitialResponse.cpp new file mode 100644 index 00000000000..6b4760c8bba --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InvokeAgentInitialResponse.cpp @@ -0,0 +1,50 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + +InvokeAgentInitialResponse::InvokeAgentInitialResponse() : + m_sessionIdHasBeenSet(false), + m_contentTypeHasBeenSet(false) +{ +} + +InvokeAgentInitialResponse::InvokeAgentInitialResponse(JsonView jsonValue) : + m_sessionIdHasBeenSet(false), + m_contentTypeHasBeenSet(false) +{ + *this = jsonValue; +} + +InvokeAgentInitialResponse& InvokeAgentInitialResponse::operator =(JsonView jsonValue) +{ + AWS_UNREFERENCED_PARAM(jsonValue); + return *this; +} + +JsonValue InvokeAgentInitialResponse::Jsonize() const +{ + JsonValue payload; + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/InvokeModelWithResponseStreamHandler.h b/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/InvokeModelWithResponseStreamHandler.h index 972be42ee6c..544ec317cfb 100644 --- a/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/InvokeModelWithResponseStreamHandler.h +++ b/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/InvokeModelWithResponseStreamHandler.h @@ -10,6 +10,7 @@ #include #include +#include #include namespace Aws @@ -20,12 +21,14 @@ namespace Model { enum class InvokeModelWithResponseStreamEventType { + INITIAL_RESPONSE, CHUNK, UNKNOWN }; class InvokeModelWithResponseStreamHandler : public Aws::Utils::Event::EventStreamHandler { + typedef std::function InvokeModelWithResponseStreamInitialResponseCallback; typedef std::function PayloadPartCallback; typedef std::function& error)> ErrorCallback; @@ -35,6 +38,7 @@ namespace Model AWS_BEDROCKRUNTIME_API virtual void OnEvent() override; + inline void SetInitialResponseCallback(const InvokeModelWithResponseStreamInitialResponseCallback& callback) { m_onInitialResponse = callback; } inline void SetPayloadPartCallback(const PayloadPartCallback& callback) { m_onPayloadPart = callback; } inline void SetOnErrorCallback(const ErrorCallback& callback) { m_onError = callback; } @@ -43,6 +47,7 @@ namespace Model AWS_BEDROCKRUNTIME_API void HandleErrorInMessage(); AWS_BEDROCKRUNTIME_API void MarshallError(const Aws::String& errorCode, const Aws::String& errorMessage); + InvokeModelWithResponseStreamInitialResponseCallback m_onInitialResponse; PayloadPartCallback m_onPayloadPart; ErrorCallback m_onError; }; diff --git a/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/InvokeModelWithResponseStreamInitialResponse.h b/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/InvokeModelWithResponseStreamInitialResponse.h new file mode 100644 index 00000000000..d17710a6d34 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/InvokeModelWithResponseStreamInitialResponse.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockRuntime +{ +namespace Model +{ + + class InvokeModelWithResponseStreamInitialResponse + { + public: + AWS_BEDROCKRUNTIME_API InvokeModelWithResponseStreamInitialResponse(); + AWS_BEDROCKRUNTIME_API InvokeModelWithResponseStreamInitialResponse(Aws::Utils::Json::JsonView jsonValue); + AWS_BEDROCKRUNTIME_API InvokeModelWithResponseStreamInitialResponse& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The MIME type of the inference result.

+ */ + inline const Aws::String& GetContentType() const{ return m_contentType; } + + /** + *

The MIME type of the inference result.

+ */ + inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; } + + /** + *

The MIME type of the inference result.

+ */ + inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; } + + /** + *

The MIME type of the inference result.

+ */ + inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); } + + /** + *

The MIME type of the inference result.

+ */ + inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); } + + /** + *

The MIME type of the inference result.

+ */ + inline InvokeModelWithResponseStreamInitialResponse& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} + + /** + *

The MIME type of the inference result.

+ */ + inline InvokeModelWithResponseStreamInitialResponse& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} + + /** + *

The MIME type of the inference result.

+ */ + inline InvokeModelWithResponseStreamInitialResponse& WithContentType(const char* value) { SetContentType(value); return *this;} + + private: + + Aws::String m_contentType; + bool m_contentTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-runtime/source/model/InvokeModelWithResponseStreamHandler.cpp b/generated/src/aws-cpp-sdk-bedrock-runtime/source/model/InvokeModelWithResponseStreamHandler.cpp index a86d8083a8c..1023501962e 100644 --- a/generated/src/aws-cpp-sdk-bedrock-runtime/source/model/InvokeModelWithResponseStreamHandler.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-runtime/source/model/InvokeModelWithResponseStreamHandler.cpp @@ -29,6 +29,12 @@ namespace Model InvokeModelWithResponseStreamHandler::InvokeModelWithResponseStreamHandler() : EventStreamHandler() { + m_onInitialResponse = [&](const InvokeModelWithResponseStreamInitialResponse&) + { + AWS_LOGSTREAM_TRACE(INVOKEMODELWITHRESPONSESTREAM_HANDLER_CLASS_TAG, + "InvokeModelWithResponseStream initial response received."); + }; + m_onPayloadPart = [&](const PayloadPart&) { AWS_LOGSTREAM_TRACE(INVOKEMODELWITHRESPONSESTREAM_HANDLER_CLASS_TAG, "PayloadPart received."); @@ -88,6 +94,21 @@ namespace Model } switch (InvokeModelWithResponseStreamEventMapper::GetInvokeModelWithResponseStreamEventTypeForName(eventTypeHeaderIter->second.GetEventHeaderValueAsString())) { + + case InvokeModelWithResponseStreamEventType::INITIAL_RESPONSE: + { + JsonValue json(GetEventPayloadAsString()); + if (!json.WasParseSuccessful()) + { + AWS_LOGSTREAM_WARN(INVOKEMODELWITHRESPONSESTREAM_HANDLER_CLASS_TAG, "Unable to generate a proper InvokeModelWithResponseStreamInitialResponse object from the response in JSON format."); + break; + } + + InvokeModelWithResponseStreamInitialResponse event(json.View()); + m_onInitialResponse(event); + break; + } + case InvokeModelWithResponseStreamEventType::CHUNK: { PayloadPart event(GetEventPayloadWithOwnership()); @@ -186,12 +207,18 @@ namespace Model namespace InvokeModelWithResponseStreamEventMapper { + static const int INITIAL_RESPONSE_HASH = Aws::Utils::HashingUtils::HashString("initial-response"); static const int CHUNK_HASH = Aws::Utils::HashingUtils::HashString("chunk"); InvokeModelWithResponseStreamEventType GetInvokeModelWithResponseStreamEventTypeForName(const Aws::String& name) { int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); - if (hashCode == CHUNK_HASH) + + if (hashCode == INITIAL_RESPONSE_HASH) + { + return InvokeModelWithResponseStreamEventType::INITIAL_RESPONSE; + } + else if (hashCode == CHUNK_HASH) { return InvokeModelWithResponseStreamEventType::CHUNK; } @@ -202,6 +229,8 @@ namespace InvokeModelWithResponseStreamEventMapper { switch (value) { + case InvokeModelWithResponseStreamEventType::INITIAL_RESPONSE: + return "initial-response"; case InvokeModelWithResponseStreamEventType::CHUNK: return "chunk"; default: diff --git a/generated/src/aws-cpp-sdk-bedrock-runtime/source/model/InvokeModelWithResponseStreamInitialResponse.cpp b/generated/src/aws-cpp-sdk-bedrock-runtime/source/model/InvokeModelWithResponseStreamInitialResponse.cpp new file mode 100644 index 00000000000..a32479250a0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-runtime/source/model/InvokeModelWithResponseStreamInitialResponse.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace BedrockRuntime +{ +namespace Model +{ + +InvokeModelWithResponseStreamInitialResponse::InvokeModelWithResponseStreamInitialResponse() : + m_contentTypeHasBeenSet(false) +{ +} + +InvokeModelWithResponseStreamInitialResponse::InvokeModelWithResponseStreamInitialResponse(JsonView jsonValue) : + m_contentTypeHasBeenSet(false) +{ + *this = jsonValue; +} + +InvokeModelWithResponseStreamInitialResponse& InvokeModelWithResponseStreamInitialResponse::operator =(JsonView jsonValue) +{ + AWS_UNREFERENCED_PARAM(jsonValue); + return *this; +} + +JsonValue InvokeModelWithResponseStreamInitialResponse::Jsonize() const +{ + JsonValue payload; + + return payload; +} + +} // namespace Model +} // namespace BedrockRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-kinesis/include/aws/kinesis/model/SubscribeToShardHandler.h b/generated/src/aws-cpp-sdk-kinesis/include/aws/kinesis/model/SubscribeToShardHandler.h index 2ec58dd2183..61d1895b00e 100644 --- a/generated/src/aws-cpp-sdk-kinesis/include/aws/kinesis/model/SubscribeToShardHandler.h +++ b/generated/src/aws-cpp-sdk-kinesis/include/aws/kinesis/model/SubscribeToShardHandler.h @@ -10,6 +10,7 @@ #include #include +#include #include namespace Aws @@ -20,12 +21,14 @@ namespace Model { enum class SubscribeToShardEventType { + INITIAL_RESPONSE, SUBSCRIBETOSHARDEVENT, UNKNOWN }; class SubscribeToShardHandler : public Aws::Utils::Event::EventStreamHandler { + typedef std::function SubscribeToShardInitialResponseCallback; typedef std::function SubscribeToShardEventCallback; typedef std::function& error)> ErrorCallback; @@ -35,6 +38,7 @@ namespace Model AWS_KINESIS_API virtual void OnEvent() override; + inline void SetInitialResponseCallback(const SubscribeToShardInitialResponseCallback& callback) { m_onInitialResponse = callback; } inline void SetSubscribeToShardEventCallback(const SubscribeToShardEventCallback& callback) { m_onSubscribeToShardEvent = callback; } inline void SetOnErrorCallback(const ErrorCallback& callback) { m_onError = callback; } @@ -43,6 +47,7 @@ namespace Model AWS_KINESIS_API void HandleErrorInMessage(); AWS_KINESIS_API void MarshallError(const Aws::String& errorCode, const Aws::String& errorMessage); + SubscribeToShardInitialResponseCallback m_onInitialResponse; SubscribeToShardEventCallback m_onSubscribeToShardEvent; ErrorCallback m_onError; }; diff --git a/generated/src/aws-cpp-sdk-kinesis/include/aws/kinesis/model/SubscribeToShardInitialResponse.h b/generated/src/aws-cpp-sdk-kinesis/include/aws/kinesis/model/SubscribeToShardInitialResponse.h new file mode 100644 index 00000000000..6f405d2dbd1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-kinesis/include/aws/kinesis/model/SubscribeToShardInitialResponse.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Kinesis +{ +namespace Model +{ + + class SubscribeToShardInitialResponse + { + public: + AWS_KINESIS_API SubscribeToShardInitialResponse(); + AWS_KINESIS_API SubscribeToShardInitialResponse(Aws::Utils::Json::JsonView jsonValue); + AWS_KINESIS_API SubscribeToShardInitialResponse& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const; + + }; + +} // namespace Model +} // namespace Kinesis +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-kinesis/source/model/SubscribeToShardHandler.cpp b/generated/src/aws-cpp-sdk-kinesis/source/model/SubscribeToShardHandler.cpp index 3b2144b2cd1..7a1be5a7247 100644 --- a/generated/src/aws-cpp-sdk-kinesis/source/model/SubscribeToShardHandler.cpp +++ b/generated/src/aws-cpp-sdk-kinesis/source/model/SubscribeToShardHandler.cpp @@ -29,6 +29,12 @@ namespace Model SubscribeToShardHandler::SubscribeToShardHandler() : EventStreamHandler() { + m_onInitialResponse = [&](const SubscribeToShardInitialResponse&) + { + AWS_LOGSTREAM_TRACE(SUBSCRIBETOSHARD_HANDLER_CLASS_TAG, + "SubscribeToShard initial response received."); + }; + m_onSubscribeToShardEvent = [&](const SubscribeToShardEvent&) { AWS_LOGSTREAM_TRACE(SUBSCRIBETOSHARD_HANDLER_CLASS_TAG, "SubscribeToShardEvent received."); @@ -88,6 +94,21 @@ namespace Model } switch (SubscribeToShardEventMapper::GetSubscribeToShardEventTypeForName(eventTypeHeaderIter->second.GetEventHeaderValueAsString())) { + + case SubscribeToShardEventType::INITIAL_RESPONSE: + { + JsonValue json(GetEventPayloadAsString()); + if (!json.WasParseSuccessful()) + { + AWS_LOGSTREAM_WARN(SUBSCRIBETOSHARD_HANDLER_CLASS_TAG, "Unable to generate a proper SubscribeToShardInitialResponse object from the response in JSON format."); + break; + } + + SubscribeToShardInitialResponse event(json.View()); + m_onInitialResponse(event); + break; + } + case SubscribeToShardEventType::SUBSCRIBETOSHARDEVENT: { JsonValue json(GetEventPayloadAsString()); @@ -192,12 +213,18 @@ namespace Model namespace SubscribeToShardEventMapper { + static const int INITIAL_RESPONSE_HASH = Aws::Utils::HashingUtils::HashString("initial-response"); static const int SUBSCRIBETOSHARDEVENT_HASH = Aws::Utils::HashingUtils::HashString("SubscribeToShardEvent"); SubscribeToShardEventType GetSubscribeToShardEventTypeForName(const Aws::String& name) { int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); - if (hashCode == SUBSCRIBETOSHARDEVENT_HASH) + + if (hashCode == INITIAL_RESPONSE_HASH) + { + return SubscribeToShardEventType::INITIAL_RESPONSE; + } + else if (hashCode == SUBSCRIBETOSHARDEVENT_HASH) { return SubscribeToShardEventType::SUBSCRIBETOSHARDEVENT; } @@ -208,6 +235,8 @@ namespace SubscribeToShardEventMapper { switch (value) { + case SubscribeToShardEventType::INITIAL_RESPONSE: + return "initial-response"; case SubscribeToShardEventType::SUBSCRIBETOSHARDEVENT: return "SubscribeToShardEvent"; default: diff --git a/generated/src/aws-cpp-sdk-kinesis/source/model/SubscribeToShardInitialResponse.cpp b/generated/src/aws-cpp-sdk-kinesis/source/model/SubscribeToShardInitialResponse.cpp new file mode 100644 index 00000000000..a1c1cab1ad1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-kinesis/source/model/SubscribeToShardInitialResponse.cpp @@ -0,0 +1,45 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Kinesis +{ +namespace Model +{ + +SubscribeToShardInitialResponse::SubscribeToShardInitialResponse() +{ +} + +SubscribeToShardInitialResponse::SubscribeToShardInitialResponse(JsonView jsonValue) +{ + *this = jsonValue; +} + +SubscribeToShardInitialResponse& SubscribeToShardInitialResponse::operator =(JsonView jsonValue) +{ + AWS_UNREFERENCED_PARAM(jsonValue); + return *this; +} + +JsonValue SubscribeToShardInitialResponse::Jsonize() const +{ + JsonValue payload; + + return payload; +} + +} // namespace Model +} // namespace Kinesis +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/InvokeWithResponseStreamHandler.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/InvokeWithResponseStreamHandler.h index 73a752f4239..dd5cf2bdd11 100644 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/InvokeWithResponseStreamHandler.h +++ b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/InvokeWithResponseStreamHandler.h @@ -10,6 +10,7 @@ #include #include +#include #include #include @@ -21,6 +22,7 @@ namespace Model { enum class InvokeWithResponseStreamEventType { + INITIAL_RESPONSE, PAYLOADCHUNK, INVOKECOMPLETE, UNKNOWN @@ -28,6 +30,7 @@ namespace Model class InvokeWithResponseStreamHandler : public Aws::Utils::Event::EventStreamHandler { + typedef std::function InvokeWithResponseStreamInitialResponseCallback; typedef std::function InvokeResponseStreamUpdateCallback; typedef std::function InvokeWithResponseStreamCompleteEventCallback; typedef std::function& error)> ErrorCallback; @@ -38,6 +41,7 @@ namespace Model AWS_LAMBDA_API virtual void OnEvent() override; + inline void SetInitialResponseCallback(const InvokeWithResponseStreamInitialResponseCallback& callback) { m_onInitialResponse = callback; } inline void SetInvokeResponseStreamUpdateCallback(const InvokeResponseStreamUpdateCallback& callback) { m_onInvokeResponseStreamUpdate = callback; } inline void SetInvokeWithResponseStreamCompleteEventCallback(const InvokeWithResponseStreamCompleteEventCallback& callback) { m_onInvokeWithResponseStreamCompleteEvent = callback; } inline void SetOnErrorCallback(const ErrorCallback& callback) { m_onError = callback; } @@ -47,6 +51,7 @@ namespace Model AWS_LAMBDA_API void HandleErrorInMessage(); AWS_LAMBDA_API void MarshallError(const Aws::String& errorCode, const Aws::String& errorMessage); + InvokeWithResponseStreamInitialResponseCallback m_onInitialResponse; InvokeResponseStreamUpdateCallback m_onInvokeResponseStreamUpdate; InvokeWithResponseStreamCompleteEventCallback m_onInvokeWithResponseStreamCompleteEvent; ErrorCallback m_onError; diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/InvokeWithResponseStreamInitialResponse.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/InvokeWithResponseStreamInitialResponse.h new file mode 100644 index 00000000000..524b92314c0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/InvokeWithResponseStreamInitialResponse.h @@ -0,0 +1,167 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Lambda +{ +namespace Model +{ + + class InvokeWithResponseStreamInitialResponse + { + public: + AWS_LAMBDA_API InvokeWithResponseStreamInitialResponse(); + AWS_LAMBDA_API InvokeWithResponseStreamInitialResponse(Aws::Utils::Json::JsonView jsonValue); + AWS_LAMBDA_API InvokeWithResponseStreamInitialResponse& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The type of data the stream is returning.

+ */ + inline const Aws::String& GetResponseStreamContentType() const{ return m_responseStreamContentType; } + + /** + *

The type of data the stream is returning.

+ */ + inline bool ResponseStreamContentTypeHasBeenSet() const { return m_responseStreamContentTypeHasBeenSet; } + + /** + *

The type of data the stream is returning.

+ */ + inline void SetResponseStreamContentType(const Aws::String& value) { m_responseStreamContentTypeHasBeenSet = true; m_responseStreamContentType = value; } + + /** + *

The type of data the stream is returning.

+ */ + inline void SetResponseStreamContentType(Aws::String&& value) { m_responseStreamContentTypeHasBeenSet = true; m_responseStreamContentType = std::move(value); } + + /** + *

The type of data the stream is returning.

+ */ + inline void SetResponseStreamContentType(const char* value) { m_responseStreamContentTypeHasBeenSet = true; m_responseStreamContentType.assign(value); } + + /** + *

The type of data the stream is returning.

+ */ + inline InvokeWithResponseStreamInitialResponse& WithResponseStreamContentType(const Aws::String& value) { SetResponseStreamContentType(value); return *this;} + + /** + *

The type of data the stream is returning.

+ */ + inline InvokeWithResponseStreamInitialResponse& WithResponseStreamContentType(Aws::String&& value) { SetResponseStreamContentType(std::move(value)); return *this;} + + /** + *

The type of data the stream is returning.

+ */ + inline InvokeWithResponseStreamInitialResponse& WithResponseStreamContentType(const char* value) { SetResponseStreamContentType(value); return *this;} + + + /** + *

The version of the function that executed. When you invoke a function with an + * alias, this indicates which version the alias resolved to.

+ */ + inline const Aws::String& GetExecutedVersion() const{ return m_executedVersion; } + + /** + *

The version of the function that executed. When you invoke a function with an + * alias, this indicates which version the alias resolved to.

+ */ + inline bool ExecutedVersionHasBeenSet() const { return m_executedVersionHasBeenSet; } + + /** + *

The version of the function that executed. When you invoke a function with an + * alias, this indicates which version the alias resolved to.

+ */ + inline void SetExecutedVersion(const Aws::String& value) { m_executedVersionHasBeenSet = true; m_executedVersion = value; } + + /** + *

The version of the function that executed. When you invoke a function with an + * alias, this indicates which version the alias resolved to.

+ */ + inline void SetExecutedVersion(Aws::String&& value) { m_executedVersionHasBeenSet = true; m_executedVersion = std::move(value); } + + /** + *

The version of the function that executed. When you invoke a function with an + * alias, this indicates which version the alias resolved to.

+ */ + inline void SetExecutedVersion(const char* value) { m_executedVersionHasBeenSet = true; m_executedVersion.assign(value); } + + /** + *

The version of the function that executed. When you invoke a function with an + * alias, this indicates which version the alias resolved to.

+ */ + inline InvokeWithResponseStreamInitialResponse& WithExecutedVersion(const Aws::String& value) { SetExecutedVersion(value); return *this;} + + /** + *

The version of the function that executed. When you invoke a function with an + * alias, this indicates which version the alias resolved to.

+ */ + inline InvokeWithResponseStreamInitialResponse& WithExecutedVersion(Aws::String&& value) { SetExecutedVersion(std::move(value)); return *this;} + + /** + *

The version of the function that executed. When you invoke a function with an + * alias, this indicates which version the alias resolved to.

+ */ + inline InvokeWithResponseStreamInitialResponse& WithExecutedVersion(const char* value) { SetExecutedVersion(value); return *this;} + + + /** + *

For a successful request, the HTTP status code is in the 200 range. For the + * RequestResponse invocation type, this status code is 200. For the + * DryRun invocation type, this status code is 204.

+ */ + inline int GetStatusCode() const{ return m_statusCode; } + + /** + *

For a successful request, the HTTP status code is in the 200 range. For the + * RequestResponse invocation type, this status code is 200. For the + * DryRun invocation type, this status code is 204.

+ */ + inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; } + + /** + *

For a successful request, the HTTP status code is in the 200 range. For the + * RequestResponse invocation type, this status code is 200. For the + * DryRun invocation type, this status code is 204.

+ */ + inline void SetStatusCode(int value) { m_statusCodeHasBeenSet = true; m_statusCode = value; } + + /** + *

For a successful request, the HTTP status code is in the 200 range. For the + * RequestResponse invocation type, this status code is 200. For the + * DryRun invocation type, this status code is 204.

+ */ + inline InvokeWithResponseStreamInitialResponse& WithStatusCode(int value) { SetStatusCode(value); return *this;} + + private: + + Aws::String m_responseStreamContentType; + bool m_responseStreamContentTypeHasBeenSet = false; + + Aws::String m_executedVersion; + bool m_executedVersionHasBeenSet = false; + + int m_statusCode; + bool m_statusCodeHasBeenSet = false; + }; + +} // namespace Model +} // namespace Lambda +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/InvokeWithResponseStreamHandler.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/InvokeWithResponseStreamHandler.cpp index 23d75cff1f7..32b47cf7678 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/InvokeWithResponseStreamHandler.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/InvokeWithResponseStreamHandler.cpp @@ -29,6 +29,12 @@ namespace Model InvokeWithResponseStreamHandler::InvokeWithResponseStreamHandler() : EventStreamHandler() { + m_onInitialResponse = [&](const InvokeWithResponseStreamInitialResponse&) + { + AWS_LOGSTREAM_TRACE(INVOKEWITHRESPONSESTREAM_HANDLER_CLASS_TAG, + "InvokeWithResponseStream initial response received."); + }; + m_onInvokeResponseStreamUpdate = [&](const InvokeResponseStreamUpdate&) { AWS_LOGSTREAM_TRACE(INVOKEWITHRESPONSESTREAM_HANDLER_CLASS_TAG, "InvokeResponseStreamUpdate received."); @@ -93,6 +99,21 @@ namespace Model } switch (InvokeWithResponseStreamEventMapper::GetInvokeWithResponseStreamEventTypeForName(eventTypeHeaderIter->second.GetEventHeaderValueAsString())) { + + case InvokeWithResponseStreamEventType::INITIAL_RESPONSE: + { + JsonValue json(GetEventPayloadAsString()); + if (!json.WasParseSuccessful()) + { + AWS_LOGSTREAM_WARN(INVOKEWITHRESPONSESTREAM_HANDLER_CLASS_TAG, "Unable to generate a proper InvokeWithResponseStreamInitialResponse object from the response in JSON format."); + break; + } + + InvokeWithResponseStreamInitialResponse event(json.View()); + m_onInitialResponse(event); + break; + } + case InvokeWithResponseStreamEventType::PAYLOADCHUNK: { InvokeResponseStreamUpdate event(GetEventPayloadWithOwnership()); @@ -203,13 +224,19 @@ namespace Model namespace InvokeWithResponseStreamEventMapper { + static const int INITIAL_RESPONSE_HASH = Aws::Utils::HashingUtils::HashString("initial-response"); static const int PAYLOADCHUNK_HASH = Aws::Utils::HashingUtils::HashString("PayloadChunk"); static const int INVOKECOMPLETE_HASH = Aws::Utils::HashingUtils::HashString("InvokeComplete"); InvokeWithResponseStreamEventType GetInvokeWithResponseStreamEventTypeForName(const Aws::String& name) { int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); - if (hashCode == PAYLOADCHUNK_HASH) + + if (hashCode == INITIAL_RESPONSE_HASH) + { + return InvokeWithResponseStreamEventType::INITIAL_RESPONSE; + } + else if (hashCode == PAYLOADCHUNK_HASH) { return InvokeWithResponseStreamEventType::PAYLOADCHUNK; } @@ -224,6 +251,8 @@ namespace InvokeWithResponseStreamEventMapper { switch (value) { + case InvokeWithResponseStreamEventType::INITIAL_RESPONSE: + return "initial-response"; case InvokeWithResponseStreamEventType::PAYLOADCHUNK: return "PayloadChunk"; case InvokeWithResponseStreamEventType::INVOKECOMPLETE: diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/InvokeWithResponseStreamInitialResponse.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/InvokeWithResponseStreamInitialResponse.cpp new file mode 100644 index 00000000000..d63c8e5c1d5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lambda/source/model/InvokeWithResponseStreamInitialResponse.cpp @@ -0,0 +1,54 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Lambda +{ +namespace Model +{ + +InvokeWithResponseStreamInitialResponse::InvokeWithResponseStreamInitialResponse() : + m_responseStreamContentTypeHasBeenSet(false), + m_executedVersionHasBeenSet(false), + m_statusCode(0), + m_statusCodeHasBeenSet(false) +{ +} + +InvokeWithResponseStreamInitialResponse::InvokeWithResponseStreamInitialResponse(JsonView jsonValue) : + m_responseStreamContentTypeHasBeenSet(false), + m_executedVersionHasBeenSet(false), + m_statusCode(0), + m_statusCodeHasBeenSet(false) +{ + *this = jsonValue; +} + +InvokeWithResponseStreamInitialResponse& InvokeWithResponseStreamInitialResponse::operator =(JsonView jsonValue) +{ + AWS_UNREFERENCED_PARAM(jsonValue); + return *this; +} + +JsonValue InvokeWithResponseStreamInitialResponse::Jsonize() const +{ + JsonValue payload; + + return payload; +} + +} // namespace Model +} // namespace Lambda +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-runtime/include/aws/lexv2-runtime/model/StartConversationHandler.h b/generated/src/aws-cpp-sdk-lexv2-runtime/include/aws/lexv2-runtime/model/StartConversationHandler.h index d184c1bc3f8..708abb23d85 100644 --- a/generated/src/aws-cpp-sdk-lexv2-runtime/include/aws/lexv2-runtime/model/StartConversationHandler.h +++ b/generated/src/aws-cpp-sdk-lexv2-runtime/include/aws/lexv2-runtime/model/StartConversationHandler.h @@ -10,6 +10,7 @@ #include #include +#include #include #include #include @@ -25,6 +26,7 @@ namespace Model { enum class StartConversationEventType { + INITIAL_RESPONSE, PLAYBACKINTERRUPTIONEVENT, TRANSCRIPTEVENT, INTENTRESULTEVENT, @@ -36,6 +38,7 @@ namespace Model class StartConversationHandler : public Aws::Utils::Event::EventStreamHandler { + typedef std::function StartConversationInitialResponseCallback; typedef std::function PlaybackInterruptionEventCallback; typedef std::function TranscriptEventCallback; typedef std::function IntentResultEventCallback; @@ -50,6 +53,7 @@ namespace Model AWS_LEXRUNTIMEV2_API virtual void OnEvent() override; + inline void SetInitialResponseCallback(const StartConversationInitialResponseCallback& callback) { m_onInitialResponse = callback; } inline void SetPlaybackInterruptionEventCallback(const PlaybackInterruptionEventCallback& callback) { m_onPlaybackInterruptionEvent = callback; } inline void SetTranscriptEventCallback(const TranscriptEventCallback& callback) { m_onTranscriptEvent = callback; } inline void SetIntentResultEventCallback(const IntentResultEventCallback& callback) { m_onIntentResultEvent = callback; } @@ -63,6 +67,7 @@ namespace Model AWS_LEXRUNTIMEV2_API void HandleErrorInMessage(); AWS_LEXRUNTIMEV2_API void MarshallError(const Aws::String& errorCode, const Aws::String& errorMessage); + StartConversationInitialResponseCallback m_onInitialResponse; PlaybackInterruptionEventCallback m_onPlaybackInterruptionEvent; TranscriptEventCallback m_onTranscriptEvent; IntentResultEventCallback m_onIntentResultEvent; diff --git a/generated/src/aws-cpp-sdk-lexv2-runtime/include/aws/lexv2-runtime/model/StartConversationInitialResponse.h b/generated/src/aws-cpp-sdk-lexv2-runtime/include/aws/lexv2-runtime/model/StartConversationInitialResponse.h new file mode 100644 index 00000000000..7d1066587f5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-runtime/include/aws/lexv2-runtime/model/StartConversationInitialResponse.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace LexRuntimeV2 +{ +namespace Model +{ + + class StartConversationInitialResponse + { + public: + AWS_LEXRUNTIMEV2_API StartConversationInitialResponse(); + AWS_LEXRUNTIMEV2_API StartConversationInitialResponse(Aws::Utils::Json::JsonView jsonValue); + AWS_LEXRUNTIMEV2_API StartConversationInitialResponse& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + }; + +} // namespace Model +} // namespace LexRuntimeV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/StartConversationHandler.cpp b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/StartConversationHandler.cpp index 00245c027b3..1c5de72880c 100644 --- a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/StartConversationHandler.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/StartConversationHandler.cpp @@ -29,6 +29,12 @@ namespace Model StartConversationHandler::StartConversationHandler() : EventStreamHandler() { + m_onInitialResponse = [&](const StartConversationInitialResponse&) + { + AWS_LOGSTREAM_TRACE(STARTCONVERSATION_HANDLER_CLASS_TAG, + "StartConversation initial response received."); + }; + m_onPlaybackInterruptionEvent = [&](const PlaybackInterruptionEvent&) { AWS_LOGSTREAM_TRACE(STARTCONVERSATION_HANDLER_CLASS_TAG, "PlaybackInterruptionEvent received."); @@ -113,6 +119,21 @@ namespace Model } switch (StartConversationEventMapper::GetStartConversationEventTypeForName(eventTypeHeaderIter->second.GetEventHeaderValueAsString())) { + + case StartConversationEventType::INITIAL_RESPONSE: + { + JsonValue json(GetEventPayloadAsString()); + if (!json.WasParseSuccessful()) + { + AWS_LOGSTREAM_WARN(STARTCONVERSATION_HANDLER_CLASS_TAG, "Unable to generate a proper StartConversationInitialResponse object from the response in JSON format."); + break; + } + + StartConversationInitialResponse event(json.View()); + m_onInitialResponse(event); + break; + } + case StartConversationEventType::PLAYBACKINTERRUPTIONEVENT: { JsonValue json(GetEventPayloadAsString()); @@ -277,6 +298,7 @@ namespace Model namespace StartConversationEventMapper { + static const int INITIAL_RESPONSE_HASH = Aws::Utils::HashingUtils::HashString("initial-response"); static const int PLAYBACKINTERRUPTIONEVENT_HASH = Aws::Utils::HashingUtils::HashString("PlaybackInterruptionEvent"); static const int TRANSCRIPTEVENT_HASH = Aws::Utils::HashingUtils::HashString("TranscriptEvent"); static const int INTENTRESULTEVENT_HASH = Aws::Utils::HashingUtils::HashString("IntentResultEvent"); @@ -287,7 +309,12 @@ namespace StartConversationEventMapper StartConversationEventType GetStartConversationEventTypeForName(const Aws::String& name) { int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); - if (hashCode == PLAYBACKINTERRUPTIONEVENT_HASH) + + if (hashCode == INITIAL_RESPONSE_HASH) + { + return StartConversationEventType::INITIAL_RESPONSE; + } + else if (hashCode == PLAYBACKINTERRUPTIONEVENT_HASH) { return StartConversationEventType::PLAYBACKINTERRUPTIONEVENT; } @@ -318,6 +345,8 @@ namespace StartConversationEventMapper { switch (value) { + case StartConversationEventType::INITIAL_RESPONSE: + return "initial-response"; case StartConversationEventType::PLAYBACKINTERRUPTIONEVENT: return "PlaybackInterruptionEvent"; case StartConversationEventType::TRANSCRIPTEVENT: diff --git a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/StartConversationInitialResponse.cpp b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/StartConversationInitialResponse.cpp new file mode 100644 index 00000000000..e0209312223 --- /dev/null +++ b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/StartConversationInitialResponse.cpp @@ -0,0 +1,45 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace LexRuntimeV2 +{ +namespace Model +{ + +StartConversationInitialResponse::StartConversationInitialResponse() +{ +} + +StartConversationInitialResponse::StartConversationInitialResponse(JsonView jsonValue) +{ + *this = jsonValue; +} + +StartConversationInitialResponse& StartConversationInitialResponse::operator =(JsonView jsonValue) +{ + AWS_UNREFERENCED_PARAM(jsonValue); + return *this; +} + +JsonValue StartConversationInitialResponse::Jsonize() const +{ + JsonValue payload; + + return payload; +} + +} // namespace Model +} // namespace LexRuntimeV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/StartLiveTailHandler.h b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/StartLiveTailHandler.h index 68da1d97fda..6d010d2d696 100644 --- a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/StartLiveTailHandler.h +++ b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/StartLiveTailHandler.h @@ -10,6 +10,7 @@ #include #include +#include #include #include @@ -21,6 +22,7 @@ namespace Model { enum class StartLiveTailEventType { + INITIAL_RESPONSE, SESSIONSTART, SESSIONUPDATE, UNKNOWN @@ -28,6 +30,7 @@ namespace Model class StartLiveTailHandler : public Aws::Utils::Event::EventStreamHandler { + typedef std::function StartLiveTailInitialResponseCallback; typedef std::function LiveTailSessionStartCallback; typedef std::function LiveTailSessionUpdateCallback; typedef std::function& error)> ErrorCallback; @@ -38,6 +41,7 @@ namespace Model AWS_CLOUDWATCHLOGS_API virtual void OnEvent() override; + inline void SetInitialResponseCallback(const StartLiveTailInitialResponseCallback& callback) { m_onInitialResponse = callback; } inline void SetLiveTailSessionStartCallback(const LiveTailSessionStartCallback& callback) { m_onLiveTailSessionStart = callback; } inline void SetLiveTailSessionUpdateCallback(const LiveTailSessionUpdateCallback& callback) { m_onLiveTailSessionUpdate = callback; } inline void SetOnErrorCallback(const ErrorCallback& callback) { m_onError = callback; } @@ -47,6 +51,7 @@ namespace Model AWS_CLOUDWATCHLOGS_API void HandleErrorInMessage(); AWS_CLOUDWATCHLOGS_API void MarshallError(const Aws::String& errorCode, const Aws::String& errorMessage); + StartLiveTailInitialResponseCallback m_onInitialResponse; LiveTailSessionStartCallback m_onLiveTailSessionStart; LiveTailSessionUpdateCallback m_onLiveTailSessionUpdate; ErrorCallback m_onError; diff --git a/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/StartLiveTailInitialResponse.h b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/StartLiveTailInitialResponse.h new file mode 100644 index 00000000000..326e64888bd --- /dev/null +++ b/generated/src/aws-cpp-sdk-logs/include/aws/logs/model/StartLiveTailInitialResponse.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace CloudWatchLogs +{ +namespace Model +{ + + class StartLiveTailInitialResponse + { + public: + AWS_CLOUDWATCHLOGS_API StartLiveTailInitialResponse(); + AWS_CLOUDWATCHLOGS_API StartLiveTailInitialResponse(Aws::Utils::Json::JsonView jsonValue); + AWS_CLOUDWATCHLOGS_API StartLiveTailInitialResponse& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const; + + }; + +} // namespace Model +} // namespace CloudWatchLogs +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-logs/source/model/StartLiveTailHandler.cpp b/generated/src/aws-cpp-sdk-logs/source/model/StartLiveTailHandler.cpp index a27b6edd23b..a3be82dbdcc 100644 --- a/generated/src/aws-cpp-sdk-logs/source/model/StartLiveTailHandler.cpp +++ b/generated/src/aws-cpp-sdk-logs/source/model/StartLiveTailHandler.cpp @@ -29,6 +29,12 @@ namespace Model StartLiveTailHandler::StartLiveTailHandler() : EventStreamHandler() { + m_onInitialResponse = [&](const StartLiveTailInitialResponse&) + { + AWS_LOGSTREAM_TRACE(STARTLIVETAIL_HANDLER_CLASS_TAG, + "StartLiveTail initial response received."); + }; + m_onLiveTailSessionStart = [&](const LiveTailSessionStart&) { AWS_LOGSTREAM_TRACE(STARTLIVETAIL_HANDLER_CLASS_TAG, "LiveTailSessionStart received."); @@ -93,6 +99,21 @@ namespace Model } switch (StartLiveTailEventMapper::GetStartLiveTailEventTypeForName(eventTypeHeaderIter->second.GetEventHeaderValueAsString())) { + + case StartLiveTailEventType::INITIAL_RESPONSE: + { + JsonValue json(GetEventPayloadAsString()); + if (!json.WasParseSuccessful()) + { + AWS_LOGSTREAM_WARN(STARTLIVETAIL_HANDLER_CLASS_TAG, "Unable to generate a proper StartLiveTailInitialResponse object from the response in JSON format."); + break; + } + + StartLiveTailInitialResponse event(json.View()); + m_onInitialResponse(event); + break; + } + case StartLiveTailEventType::SESSIONSTART: { JsonValue json(GetEventPayloadAsString()); @@ -209,13 +230,19 @@ namespace Model namespace StartLiveTailEventMapper { + static const int INITIAL_RESPONSE_HASH = Aws::Utils::HashingUtils::HashString("initial-response"); static const int SESSIONSTART_HASH = Aws::Utils::HashingUtils::HashString("sessionStart"); static const int SESSIONUPDATE_HASH = Aws::Utils::HashingUtils::HashString("sessionUpdate"); StartLiveTailEventType GetStartLiveTailEventTypeForName(const Aws::String& name) { int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); - if (hashCode == SESSIONSTART_HASH) + + if (hashCode == INITIAL_RESPONSE_HASH) + { + return StartLiveTailEventType::INITIAL_RESPONSE; + } + else if (hashCode == SESSIONSTART_HASH) { return StartLiveTailEventType::SESSIONSTART; } @@ -230,6 +257,8 @@ namespace StartLiveTailEventMapper { switch (value) { + case StartLiveTailEventType::INITIAL_RESPONSE: + return "initial-response"; case StartLiveTailEventType::SESSIONSTART: return "sessionStart"; case StartLiveTailEventType::SESSIONUPDATE: diff --git a/generated/src/aws-cpp-sdk-logs/source/model/StartLiveTailInitialResponse.cpp b/generated/src/aws-cpp-sdk-logs/source/model/StartLiveTailInitialResponse.cpp new file mode 100644 index 00000000000..0ed88a94710 --- /dev/null +++ b/generated/src/aws-cpp-sdk-logs/source/model/StartLiveTailInitialResponse.cpp @@ -0,0 +1,45 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudWatchLogs +{ +namespace Model +{ + +StartLiveTailInitialResponse::StartLiveTailInitialResponse() +{ +} + +StartLiveTailInitialResponse::StartLiveTailInitialResponse(JsonView jsonValue) +{ + *this = jsonValue; +} + +StartLiveTailInitialResponse& StartLiveTailInitialResponse::operator =(JsonView jsonValue) +{ + AWS_UNREFERENCED_PARAM(jsonValue); + return *this; +} + +JsonValue StartLiveTailInitialResponse::Jsonize() const +{ + JsonValue payload; + + return payload; +} + +} // namespace Model +} // namespace CloudWatchLogs +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-s3-crt/include/aws/s3-crt/model/SelectObjectContentHandler.h b/generated/src/aws-cpp-sdk-s3-crt/include/aws/s3-crt/model/SelectObjectContentHandler.h index b311249053a..c8eb202a462 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/include/aws/s3-crt/model/SelectObjectContentHandler.h +++ b/generated/src/aws-cpp-sdk-s3-crt/include/aws/s3-crt/model/SelectObjectContentHandler.h @@ -10,6 +10,7 @@ #include #include +#include #include #include #include @@ -22,6 +23,7 @@ namespace Model { enum class SelectObjectContentEventType { + INITIAL_RESPONSE, RECORDS, STATS, PROGRESS, @@ -32,6 +34,7 @@ namespace Model class SelectObjectContentHandler : public Aws::Utils::Event::EventStreamHandler { + typedef std::function SelectObjectContentInitialResponseCallback; typedef std::function RecordsEventCallback; typedef std::function StatsEventCallback; typedef std::function ProgressEventCallback; @@ -45,6 +48,7 @@ namespace Model AWS_S3CRT_API virtual void OnEvent() override; + inline void SetInitialResponseCallback(const SelectObjectContentInitialResponseCallback& callback) { m_onInitialResponse = callback; } inline void SetRecordsEventCallback(const RecordsEventCallback& callback) { m_onRecordsEvent = callback; } inline void SetStatsEventCallback(const StatsEventCallback& callback) { m_onStatsEvent = callback; } inline void SetProgressEventCallback(const ProgressEventCallback& callback) { m_onProgressEvent = callback; } @@ -57,6 +61,7 @@ namespace Model AWS_S3CRT_API void HandleErrorInMessage(); AWS_S3CRT_API void MarshallError(const Aws::String& errorCode, const Aws::String& errorMessage); + SelectObjectContentInitialResponseCallback m_onInitialResponse; RecordsEventCallback m_onRecordsEvent; StatsEventCallback m_onStatsEvent; ProgressEventCallback m_onProgressEvent; diff --git a/generated/src/aws-cpp-sdk-s3-crt/include/aws/s3-crt/model/SelectObjectContentInitialResponse.h b/generated/src/aws-cpp-sdk-s3-crt/include/aws/s3-crt/model/SelectObjectContentInitialResponse.h new file mode 100644 index 00000000000..38b7be5d9a9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-s3-crt/include/aws/s3-crt/model/SelectObjectContentInitialResponse.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace S3Crt +{ +namespace Model +{ + + class SelectObjectContentInitialResponse + { + public: + AWS_S3CRT_API SelectObjectContentInitialResponse(); + AWS_S3CRT_API SelectObjectContentInitialResponse(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_S3CRT_API SelectObjectContentInitialResponse& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; + + }; + +} // namespace Model +} // namespace S3Crt +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/SelectObjectContentHandler.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/SelectObjectContentHandler.cpp index df2a87700ba..ccf05f7504e 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/SelectObjectContentHandler.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/SelectObjectContentHandler.cpp @@ -26,6 +26,12 @@ namespace Model SelectObjectContentHandler::SelectObjectContentHandler() : EventStreamHandler() { + m_onInitialResponse = [&](const SelectObjectContentInitialResponse&) + { + AWS_LOGSTREAM_TRACE(SELECTOBJECTCONTENT_HANDLER_CLASS_TAG, + "SelectObjectContent initial response received."); + }; + m_onRecordsEvent = [&](const RecordsEvent&) { AWS_LOGSTREAM_TRACE(SELECTOBJECTCONTENT_HANDLER_CLASS_TAG, "RecordsEvent received."); @@ -105,6 +111,19 @@ namespace Model } switch (SelectObjectContentEventMapper::GetSelectObjectContentEventTypeForName(eventTypeHeaderIter->second.GetEventHeaderValueAsString())) { + + case SelectObjectContentEventType::INITIAL_RESPONSE: + { + auto xmlDoc = XmlDocument::CreateFromXmlString(GetEventPayloadAsString()); + if (!xmlDoc.WasParseSuccessful()) + { + AWS_LOGSTREAM_WARN(SELECTOBJECTCONTENT_HANDLER_CLASS_TAG, "Unable to generate a proper InitialResponse object from the response in XML format."); + break; + } + SelectObjectContentInitialResponse event(xmlDoc.GetRootElement()); + m_onInitialResponse(event); + break; + } case SelectObjectContentEventType::RECORDS: { RecordsEvent event(GetEventPayloadWithOwnership()); @@ -215,6 +234,7 @@ namespace Model namespace SelectObjectContentEventMapper { + static const int INITIAL_RESPONSE_HASH = Aws::Utils::HashingUtils::HashString("initial-response"); static const int RECORDS_HASH = Aws::Utils::HashingUtils::HashString("Records"); static const int STATS_HASH = Aws::Utils::HashingUtils::HashString("Stats"); static const int PROGRESS_HASH = Aws::Utils::HashingUtils::HashString("Progress"); @@ -224,7 +244,13 @@ namespace SelectObjectContentEventMapper SelectObjectContentEventType GetSelectObjectContentEventTypeForName(const Aws::String& name) { int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); - if (hashCode == RECORDS_HASH) + + if (hashCode == INITIAL_RESPONSE_HASH) + { + return SelectObjectContentEventType::INITIAL_RESPONSE; + } + + else if (hashCode == RECORDS_HASH) { return SelectObjectContentEventType::RECORDS; } @@ -251,6 +277,8 @@ namespace SelectObjectContentEventMapper { switch (value) { + case SelectObjectContentEventType::INITIAL_RESPONSE: + return "initial-response"; case SelectObjectContentEventType::RECORDS: return "Records"; case SelectObjectContentEventType::STATS: diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/SelectObjectContentInitialResponse.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/SelectObjectContentInitialResponse.cpp new file mode 100644 index 00000000000..133977a62fb --- /dev/null +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/SelectObjectContentInitialResponse.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace S3Crt +{ +namespace Model +{ + +SelectObjectContentInitialResponse::SelectObjectContentInitialResponse() +{ +} + +SelectObjectContentInitialResponse::SelectObjectContentInitialResponse(const XmlNode& xmlNode) +{ + *this = xmlNode; +} + +SelectObjectContentInitialResponse& SelectObjectContentInitialResponse::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + } + + return *this; +} + +void SelectObjectContentInitialResponse::AddToNode(XmlNode& parentNode) const +{ + Aws::StringStream ss; + AWS_UNREFERENCED_PARAM(parentNode); +} + +} // namespace Model +} // namespace S3Crt +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-s3/include/aws/s3/model/SelectObjectContentHandler.h b/generated/src/aws-cpp-sdk-s3/include/aws/s3/model/SelectObjectContentHandler.h index 96ed2f8c6c5..b9172ef7428 100644 --- a/generated/src/aws-cpp-sdk-s3/include/aws/s3/model/SelectObjectContentHandler.h +++ b/generated/src/aws-cpp-sdk-s3/include/aws/s3/model/SelectObjectContentHandler.h @@ -10,6 +10,7 @@ #include #include +#include #include #include #include @@ -22,6 +23,7 @@ namespace Model { enum class SelectObjectContentEventType { + INITIAL_RESPONSE, RECORDS, STATS, PROGRESS, @@ -32,6 +34,7 @@ namespace Model class SelectObjectContentHandler : public Aws::Utils::Event::EventStreamHandler { + typedef std::function SelectObjectContentInitialResponseCallback; typedef std::function RecordsEventCallback; typedef std::function StatsEventCallback; typedef std::function ProgressEventCallback; @@ -45,6 +48,7 @@ namespace Model AWS_S3_API virtual void OnEvent() override; + inline void SetInitialResponseCallback(const SelectObjectContentInitialResponseCallback& callback) { m_onInitialResponse = callback; } inline void SetRecordsEventCallback(const RecordsEventCallback& callback) { m_onRecordsEvent = callback; } inline void SetStatsEventCallback(const StatsEventCallback& callback) { m_onStatsEvent = callback; } inline void SetProgressEventCallback(const ProgressEventCallback& callback) { m_onProgressEvent = callback; } @@ -57,6 +61,7 @@ namespace Model AWS_S3_API void HandleErrorInMessage(); AWS_S3_API void MarshallError(const Aws::String& errorCode, const Aws::String& errorMessage); + SelectObjectContentInitialResponseCallback m_onInitialResponse; RecordsEventCallback m_onRecordsEvent; StatsEventCallback m_onStatsEvent; ProgressEventCallback m_onProgressEvent; diff --git a/generated/src/aws-cpp-sdk-s3/include/aws/s3/model/SelectObjectContentInitialResponse.h b/generated/src/aws-cpp-sdk-s3/include/aws/s3/model/SelectObjectContentInitialResponse.h new file mode 100644 index 00000000000..7b527f1ef7f --- /dev/null +++ b/generated/src/aws-cpp-sdk-s3/include/aws/s3/model/SelectObjectContentInitialResponse.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace S3 +{ +namespace Model +{ + + class SelectObjectContentInitialResponse + { + public: + AWS_S3_API SelectObjectContentInitialResponse(); + AWS_S3_API SelectObjectContentInitialResponse(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_S3_API SelectObjectContentInitialResponse& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; + + }; + +} // namespace Model +} // namespace S3 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-s3/source/model/SelectObjectContentHandler.cpp b/generated/src/aws-cpp-sdk-s3/source/model/SelectObjectContentHandler.cpp index 00969ef5212..e4bbf8e1200 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/SelectObjectContentHandler.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/SelectObjectContentHandler.cpp @@ -26,6 +26,12 @@ namespace Model SelectObjectContentHandler::SelectObjectContentHandler() : EventStreamHandler() { + m_onInitialResponse = [&](const SelectObjectContentInitialResponse&) + { + AWS_LOGSTREAM_TRACE(SELECTOBJECTCONTENT_HANDLER_CLASS_TAG, + "SelectObjectContent initial response received."); + }; + m_onRecordsEvent = [&](const RecordsEvent&) { AWS_LOGSTREAM_TRACE(SELECTOBJECTCONTENT_HANDLER_CLASS_TAG, "RecordsEvent received."); @@ -105,6 +111,19 @@ namespace Model } switch (SelectObjectContentEventMapper::GetSelectObjectContentEventTypeForName(eventTypeHeaderIter->second.GetEventHeaderValueAsString())) { + + case SelectObjectContentEventType::INITIAL_RESPONSE: + { + auto xmlDoc = XmlDocument::CreateFromXmlString(GetEventPayloadAsString()); + if (!xmlDoc.WasParseSuccessful()) + { + AWS_LOGSTREAM_WARN(SELECTOBJECTCONTENT_HANDLER_CLASS_TAG, "Unable to generate a proper InitialResponse object from the response in XML format."); + break; + } + SelectObjectContentInitialResponse event(xmlDoc.GetRootElement()); + m_onInitialResponse(event); + break; + } case SelectObjectContentEventType::RECORDS: { RecordsEvent event(GetEventPayloadWithOwnership()); @@ -215,6 +234,7 @@ namespace Model namespace SelectObjectContentEventMapper { + static const int INITIAL_RESPONSE_HASH = Aws::Utils::HashingUtils::HashString("initial-response"); static const int RECORDS_HASH = Aws::Utils::HashingUtils::HashString("Records"); static const int STATS_HASH = Aws::Utils::HashingUtils::HashString("Stats"); static const int PROGRESS_HASH = Aws::Utils::HashingUtils::HashString("Progress"); @@ -224,7 +244,13 @@ namespace SelectObjectContentEventMapper SelectObjectContentEventType GetSelectObjectContentEventTypeForName(const Aws::String& name) { int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); - if (hashCode == RECORDS_HASH) + + if (hashCode == INITIAL_RESPONSE_HASH) + { + return SelectObjectContentEventType::INITIAL_RESPONSE; + } + + else if (hashCode == RECORDS_HASH) { return SelectObjectContentEventType::RECORDS; } @@ -251,6 +277,8 @@ namespace SelectObjectContentEventMapper { switch (value) { + case SelectObjectContentEventType::INITIAL_RESPONSE: + return "initial-response"; case SelectObjectContentEventType::RECORDS: return "Records"; case SelectObjectContentEventType::STATS: diff --git a/generated/src/aws-cpp-sdk-s3/source/model/SelectObjectContentInitialResponse.cpp b/generated/src/aws-cpp-sdk-s3/source/model/SelectObjectContentInitialResponse.cpp new file mode 100644 index 00000000000..255176a2618 --- /dev/null +++ b/generated/src/aws-cpp-sdk-s3/source/model/SelectObjectContentInitialResponse.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace S3 +{ +namespace Model +{ + +SelectObjectContentInitialResponse::SelectObjectContentInitialResponse() +{ +} + +SelectObjectContentInitialResponse::SelectObjectContentInitialResponse(const XmlNode& xmlNode) +{ + *this = xmlNode; +} + +SelectObjectContentInitialResponse& SelectObjectContentInitialResponse::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + } + + return *this; +} + +void SelectObjectContentInitialResponse::AddToNode(XmlNode& parentNode) const +{ + Aws::StringStream ss; + AWS_UNREFERENCED_PARAM(parentNode); +} + +} // namespace Model +} // namespace S3 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker-runtime/include/aws/sagemaker-runtime/model/InvokeEndpointWithResponseStreamHandler.h b/generated/src/aws-cpp-sdk-sagemaker-runtime/include/aws/sagemaker-runtime/model/InvokeEndpointWithResponseStreamHandler.h index de036c5b838..26710ce21d0 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-runtime/include/aws/sagemaker-runtime/model/InvokeEndpointWithResponseStreamHandler.h +++ b/generated/src/aws-cpp-sdk-sagemaker-runtime/include/aws/sagemaker-runtime/model/InvokeEndpointWithResponseStreamHandler.h @@ -10,6 +10,7 @@ #include #include +#include #include namespace Aws @@ -20,12 +21,14 @@ namespace Model { enum class InvokeEndpointWithResponseStreamEventType { + INITIAL_RESPONSE, PAYLOADPART, UNKNOWN }; class InvokeEndpointWithResponseStreamHandler : public Aws::Utils::Event::EventStreamHandler { + typedef std::function InvokeEndpointWithResponseStreamInitialResponseCallback; typedef std::function PayloadPartCallback; typedef std::function& error)> ErrorCallback; @@ -35,6 +38,7 @@ namespace Model AWS_SAGEMAKERRUNTIME_API virtual void OnEvent() override; + inline void SetInitialResponseCallback(const InvokeEndpointWithResponseStreamInitialResponseCallback& callback) { m_onInitialResponse = callback; } inline void SetPayloadPartCallback(const PayloadPartCallback& callback) { m_onPayloadPart = callback; } inline void SetOnErrorCallback(const ErrorCallback& callback) { m_onError = callback; } @@ -43,6 +47,7 @@ namespace Model AWS_SAGEMAKERRUNTIME_API void HandleErrorInMessage(); AWS_SAGEMAKERRUNTIME_API void MarshallError(const Aws::String& errorCode, const Aws::String& errorMessage); + InvokeEndpointWithResponseStreamInitialResponseCallback m_onInitialResponse; PayloadPartCallback m_onPayloadPart; ErrorCallback m_onError; }; diff --git a/generated/src/aws-cpp-sdk-sagemaker-runtime/include/aws/sagemaker-runtime/model/InvokeEndpointWithResponseStreamInitialResponse.h b/generated/src/aws-cpp-sdk-sagemaker-runtime/include/aws/sagemaker-runtime/model/InvokeEndpointWithResponseStreamInitialResponse.h new file mode 100644 index 00000000000..9338cc82bdb --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker-runtime/include/aws/sagemaker-runtime/model/InvokeEndpointWithResponseStreamInitialResponse.h @@ -0,0 +1,291 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SageMakerRuntime +{ +namespace Model +{ + + class InvokeEndpointWithResponseStreamInitialResponse + { + public: + AWS_SAGEMAKERRUNTIME_API InvokeEndpointWithResponseStreamInitialResponse(); + AWS_SAGEMAKERRUNTIME_API InvokeEndpointWithResponseStreamInitialResponse(Aws::Utils::Json::JsonView jsonValue); + AWS_SAGEMAKERRUNTIME_API InvokeEndpointWithResponseStreamInitialResponse& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_SAGEMAKERRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Provides additional information in the response about the inference returned + * by a model hosted at an Amazon SageMaker endpoint. The information is an opaque + * value that is forwarded verbatim. You could use this value, for example, to + * return an ID received in the CustomAttributes header of a request + * or other metadata that a service endpoint was programmed to produce. The value + * must consist of no more than 1024 visible US-ASCII characters as specified in Section 3.3.6. Field + * Value Components of the Hypertext Transfer Protocol (HTTP/1.1). If the + * customer wants the custom attribute returned, the model must set the custom + * attribute to be included on the way back.

The code in your model is + * responsible for setting or updating any custom attributes in the response. If + * your code does not set this value in the response, an empty value is returned. + * For example, if a custom attribute represents the trace ID, your model can + * prepend the custom attribute with Trace ID: in your post-processing + * function.

This feature is currently supported in the Amazon Web Services + * SDKs but not in the Amazon SageMaker Python SDK.

+ */ + inline const Aws::String& GetCustomAttributes() const{ return m_customAttributes; } + + /** + *

Provides additional information in the response about the inference returned + * by a model hosted at an Amazon SageMaker endpoint. The information is an opaque + * value that is forwarded verbatim. You could use this value, for example, to + * return an ID received in the CustomAttributes header of a request + * or other metadata that a service endpoint was programmed to produce. The value + * must consist of no more than 1024 visible US-ASCII characters as specified in Section 3.3.6. Field + * Value Components of the Hypertext Transfer Protocol (HTTP/1.1). If the + * customer wants the custom attribute returned, the model must set the custom + * attribute to be included on the way back.

The code in your model is + * responsible for setting or updating any custom attributes in the response. If + * your code does not set this value in the response, an empty value is returned. + * For example, if a custom attribute represents the trace ID, your model can + * prepend the custom attribute with Trace ID: in your post-processing + * function.

This feature is currently supported in the Amazon Web Services + * SDKs but not in the Amazon SageMaker Python SDK.

+ */ + inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; } + + /** + *

Provides additional information in the response about the inference returned + * by a model hosted at an Amazon SageMaker endpoint. The information is an opaque + * value that is forwarded verbatim. You could use this value, for example, to + * return an ID received in the CustomAttributes header of a request + * or other metadata that a service endpoint was programmed to produce. The value + * must consist of no more than 1024 visible US-ASCII characters as specified in Section 3.3.6. Field + * Value Components of the Hypertext Transfer Protocol (HTTP/1.1). If the + * customer wants the custom attribute returned, the model must set the custom + * attribute to be included on the way back.

The code in your model is + * responsible for setting or updating any custom attributes in the response. If + * your code does not set this value in the response, an empty value is returned. + * For example, if a custom attribute represents the trace ID, your model can + * prepend the custom attribute with Trace ID: in your post-processing + * function.

This feature is currently supported in the Amazon Web Services + * SDKs but not in the Amazon SageMaker Python SDK.

+ */ + inline void SetCustomAttributes(const Aws::String& value) { m_customAttributesHasBeenSet = true; m_customAttributes = value; } + + /** + *

Provides additional information in the response about the inference returned + * by a model hosted at an Amazon SageMaker endpoint. The information is an opaque + * value that is forwarded verbatim. You could use this value, for example, to + * return an ID received in the CustomAttributes header of a request + * or other metadata that a service endpoint was programmed to produce. The value + * must consist of no more than 1024 visible US-ASCII characters as specified in Section 3.3.6. Field + * Value Components of the Hypertext Transfer Protocol (HTTP/1.1). If the + * customer wants the custom attribute returned, the model must set the custom + * attribute to be included on the way back.

The code in your model is + * responsible for setting or updating any custom attributes in the response. If + * your code does not set this value in the response, an empty value is returned. + * For example, if a custom attribute represents the trace ID, your model can + * prepend the custom attribute with Trace ID: in your post-processing + * function.

This feature is currently supported in the Amazon Web Services + * SDKs but not in the Amazon SageMaker Python SDK.

+ */ + inline void SetCustomAttributes(Aws::String&& value) { m_customAttributesHasBeenSet = true; m_customAttributes = std::move(value); } + + /** + *

Provides additional information in the response about the inference returned + * by a model hosted at an Amazon SageMaker endpoint. The information is an opaque + * value that is forwarded verbatim. You could use this value, for example, to + * return an ID received in the CustomAttributes header of a request + * or other metadata that a service endpoint was programmed to produce. The value + * must consist of no more than 1024 visible US-ASCII characters as specified in Section 3.3.6. Field + * Value Components of the Hypertext Transfer Protocol (HTTP/1.1). If the + * customer wants the custom attribute returned, the model must set the custom + * attribute to be included on the way back.

The code in your model is + * responsible for setting or updating any custom attributes in the response. If + * your code does not set this value in the response, an empty value is returned. + * For example, if a custom attribute represents the trace ID, your model can + * prepend the custom attribute with Trace ID: in your post-processing + * function.

This feature is currently supported in the Amazon Web Services + * SDKs but not in the Amazon SageMaker Python SDK.

+ */ + inline void SetCustomAttributes(const char* value) { m_customAttributesHasBeenSet = true; m_customAttributes.assign(value); } + + /** + *

Provides additional information in the response about the inference returned + * by a model hosted at an Amazon SageMaker endpoint. The information is an opaque + * value that is forwarded verbatim. You could use this value, for example, to + * return an ID received in the CustomAttributes header of a request + * or other metadata that a service endpoint was programmed to produce. The value + * must consist of no more than 1024 visible US-ASCII characters as specified in Section 3.3.6. Field + * Value Components of the Hypertext Transfer Protocol (HTTP/1.1). If the + * customer wants the custom attribute returned, the model must set the custom + * attribute to be included on the way back.

The code in your model is + * responsible for setting or updating any custom attributes in the response. If + * your code does not set this value in the response, an empty value is returned. + * For example, if a custom attribute represents the trace ID, your model can + * prepend the custom attribute with Trace ID: in your post-processing + * function.

This feature is currently supported in the Amazon Web Services + * SDKs but not in the Amazon SageMaker Python SDK.

+ */ + inline InvokeEndpointWithResponseStreamInitialResponse& WithCustomAttributes(const Aws::String& value) { SetCustomAttributes(value); return *this;} + + /** + *

Provides additional information in the response about the inference returned + * by a model hosted at an Amazon SageMaker endpoint. The information is an opaque + * value that is forwarded verbatim. You could use this value, for example, to + * return an ID received in the CustomAttributes header of a request + * or other metadata that a service endpoint was programmed to produce. The value + * must consist of no more than 1024 visible US-ASCII characters as specified in Section 3.3.6. Field + * Value Components of the Hypertext Transfer Protocol (HTTP/1.1). If the + * customer wants the custom attribute returned, the model must set the custom + * attribute to be included on the way back.

The code in your model is + * responsible for setting or updating any custom attributes in the response. If + * your code does not set this value in the response, an empty value is returned. + * For example, if a custom attribute represents the trace ID, your model can + * prepend the custom attribute with Trace ID: in your post-processing + * function.

This feature is currently supported in the Amazon Web Services + * SDKs but not in the Amazon SageMaker Python SDK.

+ */ + inline InvokeEndpointWithResponseStreamInitialResponse& WithCustomAttributes(Aws::String&& value) { SetCustomAttributes(std::move(value)); return *this;} + + /** + *

Provides additional information in the response about the inference returned + * by a model hosted at an Amazon SageMaker endpoint. The information is an opaque + * value that is forwarded verbatim. You could use this value, for example, to + * return an ID received in the CustomAttributes header of a request + * or other metadata that a service endpoint was programmed to produce. The value + * must consist of no more than 1024 visible US-ASCII characters as specified in Section 3.3.6. Field + * Value Components of the Hypertext Transfer Protocol (HTTP/1.1). If the + * customer wants the custom attribute returned, the model must set the custom + * attribute to be included on the way back.

The code in your model is + * responsible for setting or updating any custom attributes in the response. If + * your code does not set this value in the response, an empty value is returned. + * For example, if a custom attribute represents the trace ID, your model can + * prepend the custom attribute with Trace ID: in your post-processing + * function.

This feature is currently supported in the Amazon Web Services + * SDKs but not in the Amazon SageMaker Python SDK.

+ */ + inline InvokeEndpointWithResponseStreamInitialResponse& WithCustomAttributes(const char* value) { SetCustomAttributes(value); return *this;} + + + /** + *

The MIME type of the inference returned from the model container.

+ */ + inline const Aws::String& GetContentType() const{ return m_contentType; } + + /** + *

The MIME type of the inference returned from the model container.

+ */ + inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; } + + /** + *

The MIME type of the inference returned from the model container.

+ */ + inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; } + + /** + *

The MIME type of the inference returned from the model container.

+ */ + inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); } + + /** + *

The MIME type of the inference returned from the model container.

+ */ + inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); } + + /** + *

The MIME type of the inference returned from the model container.

+ */ + inline InvokeEndpointWithResponseStreamInitialResponse& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} + + /** + *

The MIME type of the inference returned from the model container.

+ */ + inline InvokeEndpointWithResponseStreamInitialResponse& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} + + /** + *

The MIME type of the inference returned from the model container.

+ */ + inline InvokeEndpointWithResponseStreamInitialResponse& WithContentType(const char* value) { SetContentType(value); return *this;} + + + /** + *

Identifies the production variant that was invoked.

+ */ + inline const Aws::String& GetInvokedProductionVariant() const{ return m_invokedProductionVariant; } + + /** + *

Identifies the production variant that was invoked.

+ */ + inline bool InvokedProductionVariantHasBeenSet() const { return m_invokedProductionVariantHasBeenSet; } + + /** + *

Identifies the production variant that was invoked.

+ */ + inline void SetInvokedProductionVariant(const Aws::String& value) { m_invokedProductionVariantHasBeenSet = true; m_invokedProductionVariant = value; } + + /** + *

Identifies the production variant that was invoked.

+ */ + inline void SetInvokedProductionVariant(Aws::String&& value) { m_invokedProductionVariantHasBeenSet = true; m_invokedProductionVariant = std::move(value); } + + /** + *

Identifies the production variant that was invoked.

+ */ + inline void SetInvokedProductionVariant(const char* value) { m_invokedProductionVariantHasBeenSet = true; m_invokedProductionVariant.assign(value); } + + /** + *

Identifies the production variant that was invoked.

+ */ + inline InvokeEndpointWithResponseStreamInitialResponse& WithInvokedProductionVariant(const Aws::String& value) { SetInvokedProductionVariant(value); return *this;} + + /** + *

Identifies the production variant that was invoked.

+ */ + inline InvokeEndpointWithResponseStreamInitialResponse& WithInvokedProductionVariant(Aws::String&& value) { SetInvokedProductionVariant(std::move(value)); return *this;} + + /** + *

Identifies the production variant that was invoked.

+ */ + inline InvokeEndpointWithResponseStreamInitialResponse& WithInvokedProductionVariant(const char* value) { SetInvokedProductionVariant(value); return *this;} + + private: + + Aws::String m_customAttributes; + bool m_customAttributesHasBeenSet = false; + + Aws::String m_contentType; + bool m_contentTypeHasBeenSet = false; + + Aws::String m_invokedProductionVariant; + bool m_invokedProductionVariantHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMakerRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker-runtime/source/model/InvokeEndpointWithResponseStreamHandler.cpp b/generated/src/aws-cpp-sdk-sagemaker-runtime/source/model/InvokeEndpointWithResponseStreamHandler.cpp index 5781c45cd23..4f89b3be014 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-runtime/source/model/InvokeEndpointWithResponseStreamHandler.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-runtime/source/model/InvokeEndpointWithResponseStreamHandler.cpp @@ -29,6 +29,12 @@ namespace Model InvokeEndpointWithResponseStreamHandler::InvokeEndpointWithResponseStreamHandler() : EventStreamHandler() { + m_onInitialResponse = [&](const InvokeEndpointWithResponseStreamInitialResponse&) + { + AWS_LOGSTREAM_TRACE(INVOKEENDPOINTWITHRESPONSESTREAM_HANDLER_CLASS_TAG, + "InvokeEndpointWithResponseStream initial response received."); + }; + m_onPayloadPart = [&](const PayloadPart&) { AWS_LOGSTREAM_TRACE(INVOKEENDPOINTWITHRESPONSESTREAM_HANDLER_CLASS_TAG, "PayloadPart received."); @@ -88,6 +94,21 @@ namespace Model } switch (InvokeEndpointWithResponseStreamEventMapper::GetInvokeEndpointWithResponseStreamEventTypeForName(eventTypeHeaderIter->second.GetEventHeaderValueAsString())) { + + case InvokeEndpointWithResponseStreamEventType::INITIAL_RESPONSE: + { + JsonValue json(GetEventPayloadAsString()); + if (!json.WasParseSuccessful()) + { + AWS_LOGSTREAM_WARN(INVOKEENDPOINTWITHRESPONSESTREAM_HANDLER_CLASS_TAG, "Unable to generate a proper InvokeEndpointWithResponseStreamInitialResponse object from the response in JSON format."); + break; + } + + InvokeEndpointWithResponseStreamInitialResponse event(json.View()); + m_onInitialResponse(event); + break; + } + case InvokeEndpointWithResponseStreamEventType::PAYLOADPART: { PayloadPart event(GetEventPayloadWithOwnership()); @@ -186,12 +207,18 @@ namespace Model namespace InvokeEndpointWithResponseStreamEventMapper { + static const int INITIAL_RESPONSE_HASH = Aws::Utils::HashingUtils::HashString("initial-response"); static const int PAYLOADPART_HASH = Aws::Utils::HashingUtils::HashString("PayloadPart"); InvokeEndpointWithResponseStreamEventType GetInvokeEndpointWithResponseStreamEventTypeForName(const Aws::String& name) { int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); - if (hashCode == PAYLOADPART_HASH) + + if (hashCode == INITIAL_RESPONSE_HASH) + { + return InvokeEndpointWithResponseStreamEventType::INITIAL_RESPONSE; + } + else if (hashCode == PAYLOADPART_HASH) { return InvokeEndpointWithResponseStreamEventType::PAYLOADPART; } @@ -202,6 +229,8 @@ namespace InvokeEndpointWithResponseStreamEventMapper { switch (value) { + case InvokeEndpointWithResponseStreamEventType::INITIAL_RESPONSE: + return "initial-response"; case InvokeEndpointWithResponseStreamEventType::PAYLOADPART: return "PayloadPart"; default: diff --git a/generated/src/aws-cpp-sdk-sagemaker-runtime/source/model/InvokeEndpointWithResponseStreamInitialResponse.cpp b/generated/src/aws-cpp-sdk-sagemaker-runtime/source/model/InvokeEndpointWithResponseStreamInitialResponse.cpp new file mode 100644 index 00000000000..9f6952df3ad --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker-runtime/source/model/InvokeEndpointWithResponseStreamInitialResponse.cpp @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace SageMakerRuntime +{ +namespace Model +{ + +InvokeEndpointWithResponseStreamInitialResponse::InvokeEndpointWithResponseStreamInitialResponse() : + m_customAttributesHasBeenSet(false), + m_contentTypeHasBeenSet(false), + m_invokedProductionVariantHasBeenSet(false) +{ +} + +InvokeEndpointWithResponseStreamInitialResponse::InvokeEndpointWithResponseStreamInitialResponse(JsonView jsonValue) : + m_customAttributesHasBeenSet(false), + m_contentTypeHasBeenSet(false), + m_invokedProductionVariantHasBeenSet(false) +{ + *this = jsonValue; +} + +InvokeEndpointWithResponseStreamInitialResponse& InvokeEndpointWithResponseStreamInitialResponse::operator =(JsonView jsonValue) +{ + AWS_UNREFERENCED_PARAM(jsonValue); + return *this; +} + +JsonValue InvokeEndpointWithResponseStreamInitialResponse::Jsonize() const +{ + JsonValue payload; + + return payload; +} + +} // namespace Model +} // namespace SageMakerRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartCallAnalyticsStreamTranscriptionHandler.h b/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartCallAnalyticsStreamTranscriptionHandler.h index 3d2229ec3db..04a2882330a 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartCallAnalyticsStreamTranscriptionHandler.h +++ b/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartCallAnalyticsStreamTranscriptionHandler.h @@ -10,6 +10,7 @@ #include #include +#include #include #include @@ -21,6 +22,7 @@ namespace Model { enum class StartCallAnalyticsStreamTranscriptionEventType { + INITIAL_RESPONSE, UTTERANCEEVENT, CATEGORYEVENT, UNKNOWN @@ -28,6 +30,7 @@ namespace Model class StartCallAnalyticsStreamTranscriptionHandler : public Aws::Utils::Event::EventStreamHandler { + typedef std::function StartCallAnalyticsStreamTranscriptionInitialResponseCallback; typedef std::function UtteranceEventCallback; typedef std::function CategoryEventCallback; typedef std::function& error)> ErrorCallback; @@ -38,6 +41,7 @@ namespace Model AWS_TRANSCRIBESTREAMINGSERVICE_API virtual void OnEvent() override; + inline void SetInitialResponseCallback(const StartCallAnalyticsStreamTranscriptionInitialResponseCallback& callback) { m_onInitialResponse = callback; } inline void SetUtteranceEventCallback(const UtteranceEventCallback& callback) { m_onUtteranceEvent = callback; } inline void SetCategoryEventCallback(const CategoryEventCallback& callback) { m_onCategoryEvent = callback; } inline void SetOnErrorCallback(const ErrorCallback& callback) { m_onError = callback; } @@ -47,6 +51,7 @@ namespace Model AWS_TRANSCRIBESTREAMINGSERVICE_API void HandleErrorInMessage(); AWS_TRANSCRIBESTREAMINGSERVICE_API void MarshallError(const Aws::String& errorCode, const Aws::String& errorMessage); + StartCallAnalyticsStreamTranscriptionInitialResponseCallback m_onInitialResponse; UtteranceEventCallback m_onUtteranceEvent; CategoryEventCallback m_onCategoryEvent; ErrorCallback m_onError; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartCallAnalyticsStreamTranscriptionInitialResponse.h b/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartCallAnalyticsStreamTranscriptionInitialResponse.h new file mode 100644 index 00000000000..4a42b0449f7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartCallAnalyticsStreamTranscriptionInitialResponse.h @@ -0,0 +1,617 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace TranscribeStreamingService +{ +namespace Model +{ + + class StartCallAnalyticsStreamTranscriptionInitialResponse + { + public: + AWS_TRANSCRIBESTREAMINGSERVICE_API StartCallAnalyticsStreamTranscriptionInitialResponse(); + AWS_TRANSCRIBESTREAMINGSERVICE_API StartCallAnalyticsStreamTranscriptionInitialResponse(Aws::Utils::Json::JsonView jsonValue); + AWS_TRANSCRIBESTREAMINGSERVICE_API StartCallAnalyticsStreamTranscriptionInitialResponse& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Provides the name of the custom language model that you specified in your + * Call Analytics request.

+ */ + inline const Aws::String& GetLanguageModelName() const{ return m_languageModelName; } + + /** + *

Provides the name of the custom language model that you specified in your + * Call Analytics request.

+ */ + inline bool LanguageModelNameHasBeenSet() const { return m_languageModelNameHasBeenSet; } + + /** + *

Provides the name of the custom language model that you specified in your + * Call Analytics request.

+ */ + inline void SetLanguageModelName(const Aws::String& value) { m_languageModelNameHasBeenSet = true; m_languageModelName = value; } + + /** + *

Provides the name of the custom language model that you specified in your + * Call Analytics request.

+ */ + inline void SetLanguageModelName(Aws::String&& value) { m_languageModelNameHasBeenSet = true; m_languageModelName = std::move(value); } + + /** + *

Provides the name of the custom language model that you specified in your + * Call Analytics request.

+ */ + inline void SetLanguageModelName(const char* value) { m_languageModelNameHasBeenSet = true; m_languageModelName.assign(value); } + + /** + *

Provides the name of the custom language model that you specified in your + * Call Analytics request.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithLanguageModelName(const Aws::String& value) { SetLanguageModelName(value); return *this;} + + /** + *

Provides the name of the custom language model that you specified in your + * Call Analytics request.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithLanguageModelName(Aws::String&& value) { SetLanguageModelName(std::move(value)); return *this;} + + /** + *

Provides the name of the custom language model that you specified in your + * Call Analytics request.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithLanguageModelName(const char* value) { SetLanguageModelName(value); return *this;} + + + /** + *

Provides the identifier for your Call Analytics streaming request.

+ */ + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + /** + *

Provides the identifier for your Call Analytics streaming request.

+ */ + inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } + + /** + *

Provides the identifier for your Call Analytics streaming request.

+ */ + inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } + + /** + *

Provides the identifier for your Call Analytics streaming request.

+ */ + inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } + + /** + *

Provides the identifier for your Call Analytics streaming request.

+ */ + inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } + + /** + *

Provides the identifier for your Call Analytics streaming request.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + /** + *

Provides the identifier for your Call Analytics streaming request.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + /** + *

Provides the identifier for your Call Analytics streaming request.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + + /** + *

Provides the name of the custom vocabulary filter that you specified in your + * Call Analytics request.

+ */ + inline const Aws::String& GetVocabularyFilterName() const{ return m_vocabularyFilterName; } + + /** + *

Provides the name of the custom vocabulary filter that you specified in your + * Call Analytics request.

+ */ + inline bool VocabularyFilterNameHasBeenSet() const { return m_vocabularyFilterNameHasBeenSet; } + + /** + *

Provides the name of the custom vocabulary filter that you specified in your + * Call Analytics request.

+ */ + inline void SetVocabularyFilterName(const Aws::String& value) { m_vocabularyFilterNameHasBeenSet = true; m_vocabularyFilterName = value; } + + /** + *

Provides the name of the custom vocabulary filter that you specified in your + * Call Analytics request.

+ */ + inline void SetVocabularyFilterName(Aws::String&& value) { m_vocabularyFilterNameHasBeenSet = true; m_vocabularyFilterName = std::move(value); } + + /** + *

Provides the name of the custom vocabulary filter that you specified in your + * Call Analytics request.

+ */ + inline void SetVocabularyFilterName(const char* value) { m_vocabularyFilterNameHasBeenSet = true; m_vocabularyFilterName.assign(value); } + + /** + *

Provides the name of the custom vocabulary filter that you specified in your + * Call Analytics request.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithVocabularyFilterName(const Aws::String& value) { SetVocabularyFilterName(value); return *this;} + + /** + *

Provides the name of the custom vocabulary filter that you specified in your + * Call Analytics request.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithVocabularyFilterName(Aws::String&& value) { SetVocabularyFilterName(std::move(value)); return *this;} + + /** + *

Provides the name of the custom vocabulary filter that you specified in your + * Call Analytics request.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithVocabularyFilterName(const char* value) { SetVocabularyFilterName(value); return *this;} + + + /** + *

Provides the sample rate that you specified in your Call Analytics + * request.

+ */ + inline int GetMediaSampleRateHertz() const{ return m_mediaSampleRateHertz; } + + /** + *

Provides the sample rate that you specified in your Call Analytics + * request.

+ */ + inline bool MediaSampleRateHertzHasBeenSet() const { return m_mediaSampleRateHertzHasBeenSet; } + + /** + *

Provides the sample rate that you specified in your Call Analytics + * request.

+ */ + inline void SetMediaSampleRateHertz(int value) { m_mediaSampleRateHertzHasBeenSet = true; m_mediaSampleRateHertz = value; } + + /** + *

Provides the sample rate that you specified in your Call Analytics + * request.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithMediaSampleRateHertz(int value) { SetMediaSampleRateHertz(value); return *this;} + + + /** + *

Provides the media encoding you specified in your Call Analytics request.

+ */ + inline const MediaEncoding& GetMediaEncoding() const{ return m_mediaEncoding; } + + /** + *

Provides the media encoding you specified in your Call Analytics request.

+ */ + inline bool MediaEncodingHasBeenSet() const { return m_mediaEncodingHasBeenSet; } + + /** + *

Provides the media encoding you specified in your Call Analytics request.

+ */ + inline void SetMediaEncoding(const MediaEncoding& value) { m_mediaEncodingHasBeenSet = true; m_mediaEncoding = value; } + + /** + *

Provides the media encoding you specified in your Call Analytics request.

+ */ + inline void SetMediaEncoding(MediaEncoding&& value) { m_mediaEncodingHasBeenSet = true; m_mediaEncoding = std::move(value); } + + /** + *

Provides the media encoding you specified in your Call Analytics request.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithMediaEncoding(const MediaEncoding& value) { SetMediaEncoding(value); return *this;} + + /** + *

Provides the media encoding you specified in your Call Analytics request.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithMediaEncoding(MediaEncoding&& value) { SetMediaEncoding(std::move(value)); return *this;} + + + /** + *

Provides the stabilization level used for your transcription.

+ */ + inline const PartialResultsStability& GetPartialResultsStability() const{ return m_partialResultsStability; } + + /** + *

Provides the stabilization level used for your transcription.

+ */ + inline bool PartialResultsStabilityHasBeenSet() const { return m_partialResultsStabilityHasBeenSet; } + + /** + *

Provides the stabilization level used for your transcription.

+ */ + inline void SetPartialResultsStability(const PartialResultsStability& value) { m_partialResultsStabilityHasBeenSet = true; m_partialResultsStability = value; } + + /** + *

Provides the stabilization level used for your transcription.

+ */ + inline void SetPartialResultsStability(PartialResultsStability&& value) { m_partialResultsStabilityHasBeenSet = true; m_partialResultsStability = std::move(value); } + + /** + *

Provides the stabilization level used for your transcription.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithPartialResultsStability(const PartialResultsStability& value) { SetPartialResultsStability(value); return *this;} + + /** + *

Provides the stabilization level used for your transcription.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithPartialResultsStability(PartialResultsStability&& value) { SetPartialResultsStability(std::move(value)); return *this;} + + + /** + *

Shows whether partial results stabilization was enabled for your Call + * Analytics transcription.

+ */ + inline bool GetEnablePartialResultsStabilization() const{ return m_enablePartialResultsStabilization; } + + /** + *

Shows whether partial results stabilization was enabled for your Call + * Analytics transcription.

+ */ + inline bool EnablePartialResultsStabilizationHasBeenSet() const { return m_enablePartialResultsStabilizationHasBeenSet; } + + /** + *

Shows whether partial results stabilization was enabled for your Call + * Analytics transcription.

+ */ + inline void SetEnablePartialResultsStabilization(bool value) { m_enablePartialResultsStabilizationHasBeenSet = true; m_enablePartialResultsStabilization = value; } + + /** + *

Shows whether partial results stabilization was enabled for your Call + * Analytics transcription.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithEnablePartialResultsStabilization(bool value) { SetEnablePartialResultsStabilization(value); return *this;} + + + /** + *

Provides the language code that you specified in your Call Analytics + * request.

+ */ + inline const CallAnalyticsLanguageCode& GetLanguageCode() const{ return m_languageCode; } + + /** + *

Provides the language code that you specified in your Call Analytics + * request.

+ */ + inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; } + + /** + *

Provides the language code that you specified in your Call Analytics + * request.

+ */ + inline void SetLanguageCode(const CallAnalyticsLanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; } + + /** + *

Provides the language code that you specified in your Call Analytics + * request.

+ */ + inline void SetLanguageCode(CallAnalyticsLanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); } + + /** + *

Provides the language code that you specified in your Call Analytics + * request.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithLanguageCode(const CallAnalyticsLanguageCode& value) { SetLanguageCode(value); return *this;} + + /** + *

Provides the language code that you specified in your Call Analytics + * request.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithLanguageCode(CallAnalyticsLanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;} + + + /** + *

Provides the name of the custom vocabulary that you specified in your Call + * Analytics request.

+ */ + inline const Aws::String& GetVocabularyName() const{ return m_vocabularyName; } + + /** + *

Provides the name of the custom vocabulary that you specified in your Call + * Analytics request.

+ */ + inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; } + + /** + *

Provides the name of the custom vocabulary that you specified in your Call + * Analytics request.

+ */ + inline void SetVocabularyName(const Aws::String& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = value; } + + /** + *

Provides the name of the custom vocabulary that you specified in your Call + * Analytics request.

+ */ + inline void SetVocabularyName(Aws::String&& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = std::move(value); } + + /** + *

Provides the name of the custom vocabulary that you specified in your Call + * Analytics request.

+ */ + inline void SetVocabularyName(const char* value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName.assign(value); } + + /** + *

Provides the name of the custom vocabulary that you specified in your Call + * Analytics request.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithVocabularyName(const Aws::String& value) { SetVocabularyName(value); return *this;} + + /** + *

Provides the name of the custom vocabulary that you specified in your Call + * Analytics request.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithVocabularyName(Aws::String&& value) { SetVocabularyName(std::move(value)); return *this;} + + /** + *

Provides the name of the custom vocabulary that you specified in your Call + * Analytics request.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithVocabularyName(const char* value) { SetVocabularyName(value); return *this;} + + + /** + *

Shows whether content redaction was enabled for your Call Analytics + * transcription.

+ */ + inline const ContentRedactionType& GetContentRedactionType() const{ return m_contentRedactionType; } + + /** + *

Shows whether content redaction was enabled for your Call Analytics + * transcription.

+ */ + inline bool ContentRedactionTypeHasBeenSet() const { return m_contentRedactionTypeHasBeenSet; } + + /** + *

Shows whether content redaction was enabled for your Call Analytics + * transcription.

+ */ + inline void SetContentRedactionType(const ContentRedactionType& value) { m_contentRedactionTypeHasBeenSet = true; m_contentRedactionType = value; } + + /** + *

Shows whether content redaction was enabled for your Call Analytics + * transcription.

+ */ + inline void SetContentRedactionType(ContentRedactionType&& value) { m_contentRedactionTypeHasBeenSet = true; m_contentRedactionType = std::move(value); } + + /** + *

Shows whether content redaction was enabled for your Call Analytics + * transcription.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithContentRedactionType(const ContentRedactionType& value) { SetContentRedactionType(value); return *this;} + + /** + *

Shows whether content redaction was enabled for your Call Analytics + * transcription.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithContentRedactionType(ContentRedactionType&& value) { SetContentRedactionType(std::move(value)); return *this;} + + + /** + *

Shows whether content identification was enabled for your Call Analytics + * transcription.

+ */ + inline const ContentIdentificationType& GetContentIdentificationType() const{ return m_contentIdentificationType; } + + /** + *

Shows whether content identification was enabled for your Call Analytics + * transcription.

+ */ + inline bool ContentIdentificationTypeHasBeenSet() const { return m_contentIdentificationTypeHasBeenSet; } + + /** + *

Shows whether content identification was enabled for your Call Analytics + * transcription.

+ */ + inline void SetContentIdentificationType(const ContentIdentificationType& value) { m_contentIdentificationTypeHasBeenSet = true; m_contentIdentificationType = value; } + + /** + *

Shows whether content identification was enabled for your Call Analytics + * transcription.

+ */ + inline void SetContentIdentificationType(ContentIdentificationType&& value) { m_contentIdentificationTypeHasBeenSet = true; m_contentIdentificationType = std::move(value); } + + /** + *

Shows whether content identification was enabled for your Call Analytics + * transcription.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithContentIdentificationType(const ContentIdentificationType& value) { SetContentIdentificationType(value); return *this;} + + /** + *

Shows whether content identification was enabled for your Call Analytics + * transcription.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithContentIdentificationType(ContentIdentificationType&& value) { SetContentIdentificationType(std::move(value)); return *this;} + + + /** + *

Lists the PII entity types you specified in your Call Analytics request.

+ */ + inline const Aws::String& GetPiiEntityTypes() const{ return m_piiEntityTypes; } + + /** + *

Lists the PII entity types you specified in your Call Analytics request.

+ */ + inline bool PiiEntityTypesHasBeenSet() const { return m_piiEntityTypesHasBeenSet; } + + /** + *

Lists the PII entity types you specified in your Call Analytics request.

+ */ + inline void SetPiiEntityTypes(const Aws::String& value) { m_piiEntityTypesHasBeenSet = true; m_piiEntityTypes = value; } + + /** + *

Lists the PII entity types you specified in your Call Analytics request.

+ */ + inline void SetPiiEntityTypes(Aws::String&& value) { m_piiEntityTypesHasBeenSet = true; m_piiEntityTypes = std::move(value); } + + /** + *

Lists the PII entity types you specified in your Call Analytics request.

+ */ + inline void SetPiiEntityTypes(const char* value) { m_piiEntityTypesHasBeenSet = true; m_piiEntityTypes.assign(value); } + + /** + *

Lists the PII entity types you specified in your Call Analytics request.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithPiiEntityTypes(const Aws::String& value) { SetPiiEntityTypes(value); return *this;} + + /** + *

Lists the PII entity types you specified in your Call Analytics request.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithPiiEntityTypes(Aws::String&& value) { SetPiiEntityTypes(std::move(value)); return *this;} + + /** + *

Lists the PII entity types you specified in your Call Analytics request.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithPiiEntityTypes(const char* value) { SetPiiEntityTypes(value); return *this;} + + + /** + *

Provides the vocabulary filtering method used in your Call Analytics + * transcription.

+ */ + inline const VocabularyFilterMethod& GetVocabularyFilterMethod() const{ return m_vocabularyFilterMethod; } + + /** + *

Provides the vocabulary filtering method used in your Call Analytics + * transcription.

+ */ + inline bool VocabularyFilterMethodHasBeenSet() const { return m_vocabularyFilterMethodHasBeenSet; } + + /** + *

Provides the vocabulary filtering method used in your Call Analytics + * transcription.

+ */ + inline void SetVocabularyFilterMethod(const VocabularyFilterMethod& value) { m_vocabularyFilterMethodHasBeenSet = true; m_vocabularyFilterMethod = value; } + + /** + *

Provides the vocabulary filtering method used in your Call Analytics + * transcription.

+ */ + inline void SetVocabularyFilterMethod(VocabularyFilterMethod&& value) { m_vocabularyFilterMethodHasBeenSet = true; m_vocabularyFilterMethod = std::move(value); } + + /** + *

Provides the vocabulary filtering method used in your Call Analytics + * transcription.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithVocabularyFilterMethod(const VocabularyFilterMethod& value) { SetVocabularyFilterMethod(value); return *this;} + + /** + *

Provides the vocabulary filtering method used in your Call Analytics + * transcription.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithVocabularyFilterMethod(VocabularyFilterMethod&& value) { SetVocabularyFilterMethod(std::move(value)); return *this;} + + + /** + *

Provides the identifier for your Call Analytics transcription session.

+ */ + inline const Aws::String& GetSessionId() const{ return m_sessionId; } + + /** + *

Provides the identifier for your Call Analytics transcription session.

+ */ + inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; } + + /** + *

Provides the identifier for your Call Analytics transcription session.

+ */ + inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; } + + /** + *

Provides the identifier for your Call Analytics transcription session.

+ */ + inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); } + + /** + *

Provides the identifier for your Call Analytics transcription session.

+ */ + inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); } + + /** + *

Provides the identifier for your Call Analytics transcription session.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} + + /** + *

Provides the identifier for your Call Analytics transcription session.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} + + /** + *

Provides the identifier for your Call Analytics transcription session.

+ */ + inline StartCallAnalyticsStreamTranscriptionInitialResponse& WithSessionId(const char* value) { SetSessionId(value); return *this;} + + private: + + Aws::String m_languageModelName; + bool m_languageModelNameHasBeenSet = false; + + Aws::String m_requestId; + bool m_requestIdHasBeenSet = false; + + Aws::String m_vocabularyFilterName; + bool m_vocabularyFilterNameHasBeenSet = false; + + int m_mediaSampleRateHertz; + bool m_mediaSampleRateHertzHasBeenSet = false; + + MediaEncoding m_mediaEncoding; + bool m_mediaEncodingHasBeenSet = false; + + PartialResultsStability m_partialResultsStability; + bool m_partialResultsStabilityHasBeenSet = false; + + bool m_enablePartialResultsStabilization; + bool m_enablePartialResultsStabilizationHasBeenSet = false; + + CallAnalyticsLanguageCode m_languageCode; + bool m_languageCodeHasBeenSet = false; + + Aws::String m_vocabularyName; + bool m_vocabularyNameHasBeenSet = false; + + ContentRedactionType m_contentRedactionType; + bool m_contentRedactionTypeHasBeenSet = false; + + ContentIdentificationType m_contentIdentificationType; + bool m_contentIdentificationTypeHasBeenSet = false; + + Aws::String m_piiEntityTypes; + bool m_piiEntityTypesHasBeenSet = false; + + VocabularyFilterMethod m_vocabularyFilterMethod; + bool m_vocabularyFilterMethodHasBeenSet = false; + + Aws::String m_sessionId; + bool m_sessionIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace TranscribeStreamingService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartMedicalStreamTranscriptionHandler.h b/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartMedicalStreamTranscriptionHandler.h index 790db5e3561..5600593e395 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartMedicalStreamTranscriptionHandler.h +++ b/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartMedicalStreamTranscriptionHandler.h @@ -10,6 +10,7 @@ #include #include +#include #include namespace Aws @@ -20,12 +21,14 @@ namespace Model { enum class StartMedicalStreamTranscriptionEventType { + INITIAL_RESPONSE, TRANSCRIPTEVENT, UNKNOWN }; class StartMedicalStreamTranscriptionHandler : public Aws::Utils::Event::EventStreamHandler { + typedef std::function StartMedicalStreamTranscriptionInitialResponseCallback; typedef std::function MedicalTranscriptEventCallback; typedef std::function& error)> ErrorCallback; @@ -35,6 +38,7 @@ namespace Model AWS_TRANSCRIBESTREAMINGSERVICE_API virtual void OnEvent() override; + inline void SetInitialResponseCallback(const StartMedicalStreamTranscriptionInitialResponseCallback& callback) { m_onInitialResponse = callback; } inline void SetMedicalTranscriptEventCallback(const MedicalTranscriptEventCallback& callback) { m_onMedicalTranscriptEvent = callback; } inline void SetOnErrorCallback(const ErrorCallback& callback) { m_onError = callback; } @@ -43,6 +47,7 @@ namespace Model AWS_TRANSCRIBESTREAMINGSERVICE_API void HandleErrorInMessage(); AWS_TRANSCRIBESTREAMINGSERVICE_API void MarshallError(const Aws::String& errorCode, const Aws::String& errorMessage); + StartMedicalStreamTranscriptionInitialResponseCallback m_onInitialResponse; MedicalTranscriptEventCallback m_onMedicalTranscriptEvent; ErrorCallback m_onError; }; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartMedicalStreamTranscriptionInitialResponse.h b/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartMedicalStreamTranscriptionInitialResponse.h new file mode 100644 index 00000000000..db8f32b5db0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartMedicalStreamTranscriptionInitialResponse.h @@ -0,0 +1,456 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace TranscribeStreamingService +{ +namespace Model +{ + + class StartMedicalStreamTranscriptionInitialResponse + { + public: + AWS_TRANSCRIBESTREAMINGSERVICE_API StartMedicalStreamTranscriptionInitialResponse(); + AWS_TRANSCRIBESTREAMINGSERVICE_API StartMedicalStreamTranscriptionInitialResponse(Aws::Utils::Json::JsonView jsonValue); + AWS_TRANSCRIBESTREAMINGSERVICE_API StartMedicalStreamTranscriptionInitialResponse& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Provides the medical specialty that you specified in your request.

+ */ + inline const Specialty& GetSpecialty() const{ return m_specialty; } + + /** + *

Provides the medical specialty that you specified in your request.

+ */ + inline bool SpecialtyHasBeenSet() const { return m_specialtyHasBeenSet; } + + /** + *

Provides the medical specialty that you specified in your request.

+ */ + inline void SetSpecialty(const Specialty& value) { m_specialtyHasBeenSet = true; m_specialty = value; } + + /** + *

Provides the medical specialty that you specified in your request.

+ */ + inline void SetSpecialty(Specialty&& value) { m_specialtyHasBeenSet = true; m_specialty = std::move(value); } + + /** + *

Provides the medical specialty that you specified in your request.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithSpecialty(const Specialty& value) { SetSpecialty(value); return *this;} + + /** + *

Provides the medical specialty that you specified in your request.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithSpecialty(Specialty&& value) { SetSpecialty(std::move(value)); return *this;} + + + /** + *

Provides the language code that you specified in your request. This must be + * en-US.

+ */ + inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; } + + /** + *

Provides the language code that you specified in your request. This must be + * en-US.

+ */ + inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; } + + /** + *

Provides the language code that you specified in your request. This must be + * en-US.

+ */ + inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; } + + /** + *

Provides the language code that you specified in your request. This must be + * en-US.

+ */ + inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); } + + /** + *

Provides the language code that you specified in your request. This must be + * en-US.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;} + + /** + *

Provides the language code that you specified in your request. This must be + * en-US.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;} + + + /** + *

Provides the type of audio you specified in your request.

+ */ + inline const Type& GetType() const{ return m_type; } + + /** + *

Provides the type of audio you specified in your request.

+ */ + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + + /** + *

Provides the type of audio you specified in your request.

+ */ + inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; } + + /** + *

Provides the type of audio you specified in your request.

+ */ + inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + + /** + *

Provides the type of audio you specified in your request.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithType(const Type& value) { SetType(value); return *this;} + + /** + *

Provides the type of audio you specified in your request.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithType(Type&& value) { SetType(std::move(value)); return *this;} + + + /** + *

Provides the name of the custom vocabulary that you specified in your + * request.

+ */ + inline const Aws::String& GetVocabularyName() const{ return m_vocabularyName; } + + /** + *

Provides the name of the custom vocabulary that you specified in your + * request.

+ */ + inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; } + + /** + *

Provides the name of the custom vocabulary that you specified in your + * request.

+ */ + inline void SetVocabularyName(const Aws::String& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = value; } + + /** + *

Provides the name of the custom vocabulary that you specified in your + * request.

+ */ + inline void SetVocabularyName(Aws::String&& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = std::move(value); } + + /** + *

Provides the name of the custom vocabulary that you specified in your + * request.

+ */ + inline void SetVocabularyName(const char* value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName.assign(value); } + + /** + *

Provides the name of the custom vocabulary that you specified in your + * request.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithVocabularyName(const Aws::String& value) { SetVocabularyName(value); return *this;} + + /** + *

Provides the name of the custom vocabulary that you specified in your + * request.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithVocabularyName(Aws::String&& value) { SetVocabularyName(std::move(value)); return *this;} + + /** + *

Provides the name of the custom vocabulary that you specified in your + * request.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithVocabularyName(const char* value) { SetVocabularyName(value); return *this;} + + + /** + *

Provides the identifier for your streaming request.

+ */ + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + /** + *

Provides the identifier for your streaming request.

+ */ + inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } + + /** + *

Provides the identifier for your streaming request.

+ */ + inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } + + /** + *

Provides the identifier for your streaming request.

+ */ + inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } + + /** + *

Provides the identifier for your streaming request.

+ */ + inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } + + /** + *

Provides the identifier for your streaming request.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + /** + *

Provides the identifier for your streaming request.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + /** + *

Provides the identifier for your streaming request.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + + /** + *

Shows whether speaker partitioning was enabled for your transcription.

+ */ + inline bool GetShowSpeakerLabel() const{ return m_showSpeakerLabel; } + + /** + *

Shows whether speaker partitioning was enabled for your transcription.

+ */ + inline bool ShowSpeakerLabelHasBeenSet() const { return m_showSpeakerLabelHasBeenSet; } + + /** + *

Shows whether speaker partitioning was enabled for your transcription.

+ */ + inline void SetShowSpeakerLabel(bool value) { m_showSpeakerLabelHasBeenSet = true; m_showSpeakerLabel = value; } + + /** + *

Shows whether speaker partitioning was enabled for your transcription.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithShowSpeakerLabel(bool value) { SetShowSpeakerLabel(value); return *this;} + + + /** + *

Shows whether content identification was enabled for your transcription.

+ */ + inline const MedicalContentIdentificationType& GetContentIdentificationType() const{ return m_contentIdentificationType; } + + /** + *

Shows whether content identification was enabled for your transcription.

+ */ + inline bool ContentIdentificationTypeHasBeenSet() const { return m_contentIdentificationTypeHasBeenSet; } + + /** + *

Shows whether content identification was enabled for your transcription.

+ */ + inline void SetContentIdentificationType(const MedicalContentIdentificationType& value) { m_contentIdentificationTypeHasBeenSet = true; m_contentIdentificationType = value; } + + /** + *

Shows whether content identification was enabled for your transcription.

+ */ + inline void SetContentIdentificationType(MedicalContentIdentificationType&& value) { m_contentIdentificationTypeHasBeenSet = true; m_contentIdentificationType = std::move(value); } + + /** + *

Shows whether content identification was enabled for your transcription.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithContentIdentificationType(const MedicalContentIdentificationType& value) { SetContentIdentificationType(value); return *this;} + + /** + *

Shows whether content identification was enabled for your transcription.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithContentIdentificationType(MedicalContentIdentificationType&& value) { SetContentIdentificationType(std::move(value)); return *this;} + + + /** + *

Shows whether channel identification was enabled for your transcription.

+ */ + inline bool GetEnableChannelIdentification() const{ return m_enableChannelIdentification; } + + /** + *

Shows whether channel identification was enabled for your transcription.

+ */ + inline bool EnableChannelIdentificationHasBeenSet() const { return m_enableChannelIdentificationHasBeenSet; } + + /** + *

Shows whether channel identification was enabled for your transcription.

+ */ + inline void SetEnableChannelIdentification(bool value) { m_enableChannelIdentificationHasBeenSet = true; m_enableChannelIdentification = value; } + + /** + *

Shows whether channel identification was enabled for your transcription.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithEnableChannelIdentification(bool value) { SetEnableChannelIdentification(value); return *this;} + + + /** + *

Provides the sample rate that you specified in your request.

+ */ + inline int GetMediaSampleRateHertz() const{ return m_mediaSampleRateHertz; } + + /** + *

Provides the sample rate that you specified in your request.

+ */ + inline bool MediaSampleRateHertzHasBeenSet() const { return m_mediaSampleRateHertzHasBeenSet; } + + /** + *

Provides the sample rate that you specified in your request.

+ */ + inline void SetMediaSampleRateHertz(int value) { m_mediaSampleRateHertzHasBeenSet = true; m_mediaSampleRateHertz = value; } + + /** + *

Provides the sample rate that you specified in your request.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithMediaSampleRateHertz(int value) { SetMediaSampleRateHertz(value); return *this;} + + + /** + *

Provides the number of channels that you specified in your request.

+ */ + inline int GetNumberOfChannels() const{ return m_numberOfChannels; } + + /** + *

Provides the number of channels that you specified in your request.

+ */ + inline bool NumberOfChannelsHasBeenSet() const { return m_numberOfChannelsHasBeenSet; } + + /** + *

Provides the number of channels that you specified in your request.

+ */ + inline void SetNumberOfChannels(int value) { m_numberOfChannelsHasBeenSet = true; m_numberOfChannels = value; } + + /** + *

Provides the number of channels that you specified in your request.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithNumberOfChannels(int value) { SetNumberOfChannels(value); return *this;} + + + /** + *

Provides the media encoding you specified in your request.

+ */ + inline const MediaEncoding& GetMediaEncoding() const{ return m_mediaEncoding; } + + /** + *

Provides the media encoding you specified in your request.

+ */ + inline bool MediaEncodingHasBeenSet() const { return m_mediaEncodingHasBeenSet; } + + /** + *

Provides the media encoding you specified in your request.

+ */ + inline void SetMediaEncoding(const MediaEncoding& value) { m_mediaEncodingHasBeenSet = true; m_mediaEncoding = value; } + + /** + *

Provides the media encoding you specified in your request.

+ */ + inline void SetMediaEncoding(MediaEncoding&& value) { m_mediaEncodingHasBeenSet = true; m_mediaEncoding = std::move(value); } + + /** + *

Provides the media encoding you specified in your request.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithMediaEncoding(const MediaEncoding& value) { SetMediaEncoding(value); return *this;} + + /** + *

Provides the media encoding you specified in your request.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithMediaEncoding(MediaEncoding&& value) { SetMediaEncoding(std::move(value)); return *this;} + + + /** + *

Provides the identifier for your transcription session.

+ */ + inline const Aws::String& GetSessionId() const{ return m_sessionId; } + + /** + *

Provides the identifier for your transcription session.

+ */ + inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; } + + /** + *

Provides the identifier for your transcription session.

+ */ + inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; } + + /** + *

Provides the identifier for your transcription session.

+ */ + inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); } + + /** + *

Provides the identifier for your transcription session.

+ */ + inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); } + + /** + *

Provides the identifier for your transcription session.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} + + /** + *

Provides the identifier for your transcription session.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} + + /** + *

Provides the identifier for your transcription session.

+ */ + inline StartMedicalStreamTranscriptionInitialResponse& WithSessionId(const char* value) { SetSessionId(value); return *this;} + + private: + + Specialty m_specialty; + bool m_specialtyHasBeenSet = false; + + LanguageCode m_languageCode; + bool m_languageCodeHasBeenSet = false; + + Type m_type; + bool m_typeHasBeenSet = false; + + Aws::String m_vocabularyName; + bool m_vocabularyNameHasBeenSet = false; + + Aws::String m_requestId; + bool m_requestIdHasBeenSet = false; + + bool m_showSpeakerLabel; + bool m_showSpeakerLabelHasBeenSet = false; + + MedicalContentIdentificationType m_contentIdentificationType; + bool m_contentIdentificationTypeHasBeenSet = false; + + bool m_enableChannelIdentification; + bool m_enableChannelIdentificationHasBeenSet = false; + + int m_mediaSampleRateHertz; + bool m_mediaSampleRateHertzHasBeenSet = false; + + int m_numberOfChannels; + bool m_numberOfChannelsHasBeenSet = false; + + MediaEncoding m_mediaEncoding; + bool m_mediaEncodingHasBeenSet = false; + + Aws::String m_sessionId; + bool m_sessionIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace TranscribeStreamingService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartStreamTranscriptionHandler.h b/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartStreamTranscriptionHandler.h index 61811016a2b..3b60929bd07 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartStreamTranscriptionHandler.h +++ b/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartStreamTranscriptionHandler.h @@ -10,6 +10,7 @@ #include #include +#include #include namespace Aws @@ -20,12 +21,14 @@ namespace Model { enum class StartStreamTranscriptionEventType { + INITIAL_RESPONSE, TRANSCRIPTEVENT, UNKNOWN }; class StartStreamTranscriptionHandler : public Aws::Utils::Event::EventStreamHandler { + typedef std::function StartStreamTranscriptionInitialResponseCallback; typedef std::function TranscriptEventCallback; typedef std::function& error)> ErrorCallback; @@ -35,6 +38,7 @@ namespace Model AWS_TRANSCRIBESTREAMINGSERVICE_API virtual void OnEvent() override; + inline void SetInitialResponseCallback(const StartStreamTranscriptionInitialResponseCallback& callback) { m_onInitialResponse = callback; } inline void SetTranscriptEventCallback(const TranscriptEventCallback& callback) { m_onTranscriptEvent = callback; } inline void SetOnErrorCallback(const ErrorCallback& callback) { m_onError = callback; } @@ -43,6 +47,7 @@ namespace Model AWS_TRANSCRIBESTREAMINGSERVICE_API void HandleErrorInMessage(); AWS_TRANSCRIBESTREAMINGSERVICE_API void MarshallError(const Aws::String& errorCode, const Aws::String& errorMessage); + StartStreamTranscriptionInitialResponseCallback m_onInitialResponse; TranscriptEventCallback m_onTranscriptEvent; ErrorCallback m_onError; }; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartStreamTranscriptionInitialResponse.h b/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartStreamTranscriptionInitialResponse.h new file mode 100644 index 00000000000..5735e8d6f80 --- /dev/null +++ b/generated/src/aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/StartStreamTranscriptionInitialResponse.h @@ -0,0 +1,899 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace TranscribeStreamingService +{ +namespace Model +{ + + class StartStreamTranscriptionInitialResponse + { + public: + AWS_TRANSCRIBESTREAMINGSERVICE_API StartStreamTranscriptionInitialResponse(); + AWS_TRANSCRIBESTREAMINGSERVICE_API StartStreamTranscriptionInitialResponse(Aws::Utils::Json::JsonView jsonValue); + AWS_TRANSCRIBESTREAMINGSERVICE_API StartStreamTranscriptionInitialResponse& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Provides the names of the custom vocabularies that you specified in your + * request.

+ */ + inline const Aws::String& GetVocabularyNames() const{ return m_vocabularyNames; } + + /** + *

Provides the names of the custom vocabularies that you specified in your + * request.

+ */ + inline bool VocabularyNamesHasBeenSet() const { return m_vocabularyNamesHasBeenSet; } + + /** + *

Provides the names of the custom vocabularies that you specified in your + * request.

+ */ + inline void SetVocabularyNames(const Aws::String& value) { m_vocabularyNamesHasBeenSet = true; m_vocabularyNames = value; } + + /** + *

Provides the names of the custom vocabularies that you specified in your + * request.

+ */ + inline void SetVocabularyNames(Aws::String&& value) { m_vocabularyNamesHasBeenSet = true; m_vocabularyNames = std::move(value); } + + /** + *

Provides the names of the custom vocabularies that you specified in your + * request.

+ */ + inline void SetVocabularyNames(const char* value) { m_vocabularyNamesHasBeenSet = true; m_vocabularyNames.assign(value); } + + /** + *

Provides the names of the custom vocabularies that you specified in your + * request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithVocabularyNames(const Aws::String& value) { SetVocabularyNames(value); return *this;} + + /** + *

Provides the names of the custom vocabularies that you specified in your + * request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithVocabularyNames(Aws::String&& value) { SetVocabularyNames(std::move(value)); return *this;} + + /** + *

Provides the names of the custom vocabularies that you specified in your + * request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithVocabularyNames(const char* value) { SetVocabularyNames(value); return *this;} + + + /** + *

Shows whether automatic multi-language identification was enabled for your + * transcription.

+ */ + inline bool GetIdentifyMultipleLanguages() const{ return m_identifyMultipleLanguages; } + + /** + *

Shows whether automatic multi-language identification was enabled for your + * transcription.

+ */ + inline bool IdentifyMultipleLanguagesHasBeenSet() const { return m_identifyMultipleLanguagesHasBeenSet; } + + /** + *

Shows whether automatic multi-language identification was enabled for your + * transcription.

+ */ + inline void SetIdentifyMultipleLanguages(bool value) { m_identifyMultipleLanguagesHasBeenSet = true; m_identifyMultipleLanguages = value; } + + /** + *

Shows whether automatic multi-language identification was enabled for your + * transcription.

+ */ + inline StartStreamTranscriptionInitialResponse& WithIdentifyMultipleLanguages(bool value) { SetIdentifyMultipleLanguages(value); return *this;} + + + /** + *

Provides the name of the custom language model that you specified in your + * request.

+ */ + inline const Aws::String& GetLanguageModelName() const{ return m_languageModelName; } + + /** + *

Provides the name of the custom language model that you specified in your + * request.

+ */ + inline bool LanguageModelNameHasBeenSet() const { return m_languageModelNameHasBeenSet; } + + /** + *

Provides the name of the custom language model that you specified in your + * request.

+ */ + inline void SetLanguageModelName(const Aws::String& value) { m_languageModelNameHasBeenSet = true; m_languageModelName = value; } + + /** + *

Provides the name of the custom language model that you specified in your + * request.

+ */ + inline void SetLanguageModelName(Aws::String&& value) { m_languageModelNameHasBeenSet = true; m_languageModelName = std::move(value); } + + /** + *

Provides the name of the custom language model that you specified in your + * request.

+ */ + inline void SetLanguageModelName(const char* value) { m_languageModelNameHasBeenSet = true; m_languageModelName.assign(value); } + + /** + *

Provides the name of the custom language model that you specified in your + * request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithLanguageModelName(const Aws::String& value) { SetLanguageModelName(value); return *this;} + + /** + *

Provides the name of the custom language model that you specified in your + * request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithLanguageModelName(Aws::String&& value) { SetLanguageModelName(std::move(value)); return *this;} + + /** + *

Provides the name of the custom language model that you specified in your + * request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithLanguageModelName(const char* value) { SetLanguageModelName(value); return *this;} + + + /** + *

Provides the identifier for your streaming request.

+ */ + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + /** + *

Provides the identifier for your streaming request.

+ */ + inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } + + /** + *

Provides the identifier for your streaming request.

+ */ + inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } + + /** + *

Provides the identifier for your streaming request.

+ */ + inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } + + /** + *

Provides the identifier for your streaming request.

+ */ + inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } + + /** + *

Provides the identifier for your streaming request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + /** + *

Provides the identifier for your streaming request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + /** + *

Provides the identifier for your streaming request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + + /** + *

Provides the name of the custom vocabulary filter that you specified in your + * request.

+ */ + inline const Aws::String& GetVocabularyFilterName() const{ return m_vocabularyFilterName; } + + /** + *

Provides the name of the custom vocabulary filter that you specified in your + * request.

+ */ + inline bool VocabularyFilterNameHasBeenSet() const { return m_vocabularyFilterNameHasBeenSet; } + + /** + *

Provides the name of the custom vocabulary filter that you specified in your + * request.

+ */ + inline void SetVocabularyFilterName(const Aws::String& value) { m_vocabularyFilterNameHasBeenSet = true; m_vocabularyFilterName = value; } + + /** + *

Provides the name of the custom vocabulary filter that you specified in your + * request.

+ */ + inline void SetVocabularyFilterName(Aws::String&& value) { m_vocabularyFilterNameHasBeenSet = true; m_vocabularyFilterName = std::move(value); } + + /** + *

Provides the name of the custom vocabulary filter that you specified in your + * request.

+ */ + inline void SetVocabularyFilterName(const char* value) { m_vocabularyFilterNameHasBeenSet = true; m_vocabularyFilterName.assign(value); } + + /** + *

Provides the name of the custom vocabulary filter that you specified in your + * request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithVocabularyFilterName(const Aws::String& value) { SetVocabularyFilterName(value); return *this;} + + /** + *

Provides the name of the custom vocabulary filter that you specified in your + * request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithVocabularyFilterName(Aws::String&& value) { SetVocabularyFilterName(std::move(value)); return *this;} + + /** + *

Provides the name of the custom vocabulary filter that you specified in your + * request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithVocabularyFilterName(const char* value) { SetVocabularyFilterName(value); return *this;} + + + /** + *

Provides the sample rate that you specified in your request.

+ */ + inline int GetMediaSampleRateHertz() const{ return m_mediaSampleRateHertz; } + + /** + *

Provides the sample rate that you specified in your request.

+ */ + inline bool MediaSampleRateHertzHasBeenSet() const { return m_mediaSampleRateHertzHasBeenSet; } + + /** + *

Provides the sample rate that you specified in your request.

+ */ + inline void SetMediaSampleRateHertz(int value) { m_mediaSampleRateHertzHasBeenSet = true; m_mediaSampleRateHertz = value; } + + /** + *

Provides the sample rate that you specified in your request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithMediaSampleRateHertz(int value) { SetMediaSampleRateHertz(value); return *this;} + + + /** + *

Shows whether automatic language identification was enabled for your + * transcription.

+ */ + inline bool GetIdentifyLanguage() const{ return m_identifyLanguage; } + + /** + *

Shows whether automatic language identification was enabled for your + * transcription.

+ */ + inline bool IdentifyLanguageHasBeenSet() const { return m_identifyLanguageHasBeenSet; } + + /** + *

Shows whether automatic language identification was enabled for your + * transcription.

+ */ + inline void SetIdentifyLanguage(bool value) { m_identifyLanguageHasBeenSet = true; m_identifyLanguage = value; } + + /** + *

Shows whether automatic language identification was enabled for your + * transcription.

+ */ + inline StartStreamTranscriptionInitialResponse& WithIdentifyLanguage(bool value) { SetIdentifyLanguage(value); return *this;} + + + /** + *

Provides the media encoding you specified in your request.

+ */ + inline const MediaEncoding& GetMediaEncoding() const{ return m_mediaEncoding; } + + /** + *

Provides the media encoding you specified in your request.

+ */ + inline bool MediaEncodingHasBeenSet() const { return m_mediaEncodingHasBeenSet; } + + /** + *

Provides the media encoding you specified in your request.

+ */ + inline void SetMediaEncoding(const MediaEncoding& value) { m_mediaEncodingHasBeenSet = true; m_mediaEncoding = value; } + + /** + *

Provides the media encoding you specified in your request.

+ */ + inline void SetMediaEncoding(MediaEncoding&& value) { m_mediaEncodingHasBeenSet = true; m_mediaEncoding = std::move(value); } + + /** + *

Provides the media encoding you specified in your request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithMediaEncoding(const MediaEncoding& value) { SetMediaEncoding(value); return *this;} + + /** + *

Provides the media encoding you specified in your request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithMediaEncoding(MediaEncoding&& value) { SetMediaEncoding(std::move(value)); return *this;} + + + /** + *

Provides the stabilization level used for your transcription.

+ */ + inline const PartialResultsStability& GetPartialResultsStability() const{ return m_partialResultsStability; } + + /** + *

Provides the stabilization level used for your transcription.

+ */ + inline bool PartialResultsStabilityHasBeenSet() const { return m_partialResultsStabilityHasBeenSet; } + + /** + *

Provides the stabilization level used for your transcription.

+ */ + inline void SetPartialResultsStability(const PartialResultsStability& value) { m_partialResultsStabilityHasBeenSet = true; m_partialResultsStability = value; } + + /** + *

Provides the stabilization level used for your transcription.

+ */ + inline void SetPartialResultsStability(PartialResultsStability&& value) { m_partialResultsStabilityHasBeenSet = true; m_partialResultsStability = std::move(value); } + + /** + *

Provides the stabilization level used for your transcription.

+ */ + inline StartStreamTranscriptionInitialResponse& WithPartialResultsStability(const PartialResultsStability& value) { SetPartialResultsStability(value); return *this;} + + /** + *

Provides the stabilization level used for your transcription.

+ */ + inline StartStreamTranscriptionInitialResponse& WithPartialResultsStability(PartialResultsStability&& value) { SetPartialResultsStability(std::move(value)); return *this;} + + + /** + *

Provides the language codes that you specified in your request.

+ */ + inline const Aws::String& GetLanguageOptions() const{ return m_languageOptions; } + + /** + *

Provides the language codes that you specified in your request.

+ */ + inline bool LanguageOptionsHasBeenSet() const { return m_languageOptionsHasBeenSet; } + + /** + *

Provides the language codes that you specified in your request.

+ */ + inline void SetLanguageOptions(const Aws::String& value) { m_languageOptionsHasBeenSet = true; m_languageOptions = value; } + + /** + *

Provides the language codes that you specified in your request.

+ */ + inline void SetLanguageOptions(Aws::String&& value) { m_languageOptionsHasBeenSet = true; m_languageOptions = std::move(value); } + + /** + *

Provides the language codes that you specified in your request.

+ */ + inline void SetLanguageOptions(const char* value) { m_languageOptionsHasBeenSet = true; m_languageOptions.assign(value); } + + /** + *

Provides the language codes that you specified in your request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithLanguageOptions(const Aws::String& value) { SetLanguageOptions(value); return *this;} + + /** + *

Provides the language codes that you specified in your request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithLanguageOptions(Aws::String&& value) { SetLanguageOptions(std::move(value)); return *this;} + + /** + *

Provides the language codes that you specified in your request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithLanguageOptions(const char* value) { SetLanguageOptions(value); return *this;} + + + /** + *

Provides the names of the custom vocabulary filters that you specified in + * your request.

+ */ + inline const Aws::String& GetVocabularyFilterNames() const{ return m_vocabularyFilterNames; } + + /** + *

Provides the names of the custom vocabulary filters that you specified in + * your request.

+ */ + inline bool VocabularyFilterNamesHasBeenSet() const { return m_vocabularyFilterNamesHasBeenSet; } + + /** + *

Provides the names of the custom vocabulary filters that you specified in + * your request.

+ */ + inline void SetVocabularyFilterNames(const Aws::String& value) { m_vocabularyFilterNamesHasBeenSet = true; m_vocabularyFilterNames = value; } + + /** + *

Provides the names of the custom vocabulary filters that you specified in + * your request.

+ */ + inline void SetVocabularyFilterNames(Aws::String&& value) { m_vocabularyFilterNamesHasBeenSet = true; m_vocabularyFilterNames = std::move(value); } + + /** + *

Provides the names of the custom vocabulary filters that you specified in + * your request.

+ */ + inline void SetVocabularyFilterNames(const char* value) { m_vocabularyFilterNamesHasBeenSet = true; m_vocabularyFilterNames.assign(value); } + + /** + *

Provides the names of the custom vocabulary filters that you specified in + * your request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithVocabularyFilterNames(const Aws::String& value) { SetVocabularyFilterNames(value); return *this;} + + /** + *

Provides the names of the custom vocabulary filters that you specified in + * your request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithVocabularyFilterNames(Aws::String&& value) { SetVocabularyFilterNames(std::move(value)); return *this;} + + /** + *

Provides the names of the custom vocabulary filters that you specified in + * your request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithVocabularyFilterNames(const char* value) { SetVocabularyFilterNames(value); return *this;} + + + /** + *

Shows whether partial results stabilization was enabled for your + * transcription.

+ */ + inline bool GetEnablePartialResultsStabilization() const{ return m_enablePartialResultsStabilization; } + + /** + *

Shows whether partial results stabilization was enabled for your + * transcription.

+ */ + inline bool EnablePartialResultsStabilizationHasBeenSet() const { return m_enablePartialResultsStabilizationHasBeenSet; } + + /** + *

Shows whether partial results stabilization was enabled for your + * transcription.

+ */ + inline void SetEnablePartialResultsStabilization(bool value) { m_enablePartialResultsStabilizationHasBeenSet = true; m_enablePartialResultsStabilization = value; } + + /** + *

Shows whether partial results stabilization was enabled for your + * transcription.

+ */ + inline StartStreamTranscriptionInitialResponse& WithEnablePartialResultsStabilization(bool value) { SetEnablePartialResultsStabilization(value); return *this;} + + + /** + *

Provides the language code that you specified in your request.

+ */ + inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; } + + /** + *

Provides the language code that you specified in your request.

+ */ + inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; } + + /** + *

Provides the language code that you specified in your request.

+ */ + inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; } + + /** + *

Provides the language code that you specified in your request.

+ */ + inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); } + + /** + *

Provides the language code that you specified in your request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;} + + /** + *

Provides the language code that you specified in your request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;} + + + /** + *

Provides the name of the custom vocabulary that you specified in your + * request.

+ */ + inline const Aws::String& GetVocabularyName() const{ return m_vocabularyName; } + + /** + *

Provides the name of the custom vocabulary that you specified in your + * request.

+ */ + inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; } + + /** + *

Provides the name of the custom vocabulary that you specified in your + * request.

+ */ + inline void SetVocabularyName(const Aws::String& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = value; } + + /** + *

Provides the name of the custom vocabulary that you specified in your + * request.

+ */ + inline void SetVocabularyName(Aws::String&& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = std::move(value); } + + /** + *

Provides the name of the custom vocabulary that you specified in your + * request.

+ */ + inline void SetVocabularyName(const char* value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName.assign(value); } + + /** + *

Provides the name of the custom vocabulary that you specified in your + * request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithVocabularyName(const Aws::String& value) { SetVocabularyName(value); return *this;} + + /** + *

Provides the name of the custom vocabulary that you specified in your + * request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithVocabularyName(Aws::String&& value) { SetVocabularyName(std::move(value)); return *this;} + + /** + *

Provides the name of the custom vocabulary that you specified in your + * request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithVocabularyName(const char* value) { SetVocabularyName(value); return *this;} + + + /** + *

Shows whether content redaction was enabled for your transcription.

+ */ + inline const ContentRedactionType& GetContentRedactionType() const{ return m_contentRedactionType; } + + /** + *

Shows whether content redaction was enabled for your transcription.

+ */ + inline bool ContentRedactionTypeHasBeenSet() const { return m_contentRedactionTypeHasBeenSet; } + + /** + *

Shows whether content redaction was enabled for your transcription.

+ */ + inline void SetContentRedactionType(const ContentRedactionType& value) { m_contentRedactionTypeHasBeenSet = true; m_contentRedactionType = value; } + + /** + *

Shows whether content redaction was enabled for your transcription.

+ */ + inline void SetContentRedactionType(ContentRedactionType&& value) { m_contentRedactionTypeHasBeenSet = true; m_contentRedactionType = std::move(value); } + + /** + *

Shows whether content redaction was enabled for your transcription.

+ */ + inline StartStreamTranscriptionInitialResponse& WithContentRedactionType(const ContentRedactionType& value) { SetContentRedactionType(value); return *this;} + + /** + *

Shows whether content redaction was enabled for your transcription.

+ */ + inline StartStreamTranscriptionInitialResponse& WithContentRedactionType(ContentRedactionType&& value) { SetContentRedactionType(std::move(value)); return *this;} + + + /** + *

Shows whether speaker partitioning was enabled for your transcription.

+ */ + inline bool GetShowSpeakerLabel() const{ return m_showSpeakerLabel; } + + /** + *

Shows whether speaker partitioning was enabled for your transcription.

+ */ + inline bool ShowSpeakerLabelHasBeenSet() const { return m_showSpeakerLabelHasBeenSet; } + + /** + *

Shows whether speaker partitioning was enabled for your transcription.

+ */ + inline void SetShowSpeakerLabel(bool value) { m_showSpeakerLabelHasBeenSet = true; m_showSpeakerLabel = value; } + + /** + *

Shows whether speaker partitioning was enabled for your transcription.

+ */ + inline StartStreamTranscriptionInitialResponse& WithShowSpeakerLabel(bool value) { SetShowSpeakerLabel(value); return *this;} + + + /** + *

Shows whether content identification was enabled for your transcription.

+ */ + inline const ContentIdentificationType& GetContentIdentificationType() const{ return m_contentIdentificationType; } + + /** + *

Shows whether content identification was enabled for your transcription.

+ */ + inline bool ContentIdentificationTypeHasBeenSet() const { return m_contentIdentificationTypeHasBeenSet; } + + /** + *

Shows whether content identification was enabled for your transcription.

+ */ + inline void SetContentIdentificationType(const ContentIdentificationType& value) { m_contentIdentificationTypeHasBeenSet = true; m_contentIdentificationType = value; } + + /** + *

Shows whether content identification was enabled for your transcription.

+ */ + inline void SetContentIdentificationType(ContentIdentificationType&& value) { m_contentIdentificationTypeHasBeenSet = true; m_contentIdentificationType = std::move(value); } + + /** + *

Shows whether content identification was enabled for your transcription.

+ */ + inline StartStreamTranscriptionInitialResponse& WithContentIdentificationType(const ContentIdentificationType& value) { SetContentIdentificationType(value); return *this;} + + /** + *

Shows whether content identification was enabled for your transcription.

+ */ + inline StartStreamTranscriptionInitialResponse& WithContentIdentificationType(ContentIdentificationType&& value) { SetContentIdentificationType(std::move(value)); return *this;} + + + /** + *

Provides the preferred language that you specified in your request.

+ */ + inline const LanguageCode& GetPreferredLanguage() const{ return m_preferredLanguage; } + + /** + *

Provides the preferred language that you specified in your request.

+ */ + inline bool PreferredLanguageHasBeenSet() const { return m_preferredLanguageHasBeenSet; } + + /** + *

Provides the preferred language that you specified in your request.

+ */ + inline void SetPreferredLanguage(const LanguageCode& value) { m_preferredLanguageHasBeenSet = true; m_preferredLanguage = value; } + + /** + *

Provides the preferred language that you specified in your request.

+ */ + inline void SetPreferredLanguage(LanguageCode&& value) { m_preferredLanguageHasBeenSet = true; m_preferredLanguage = std::move(value); } + + /** + *

Provides the preferred language that you specified in your request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithPreferredLanguage(const LanguageCode& value) { SetPreferredLanguage(value); return *this;} + + /** + *

Provides the preferred language that you specified in your request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithPreferredLanguage(LanguageCode&& value) { SetPreferredLanguage(std::move(value)); return *this;} + + + /** + *

Lists the PII entity types you specified in your request.

+ */ + inline const Aws::String& GetPiiEntityTypes() const{ return m_piiEntityTypes; } + + /** + *

Lists the PII entity types you specified in your request.

+ */ + inline bool PiiEntityTypesHasBeenSet() const { return m_piiEntityTypesHasBeenSet; } + + /** + *

Lists the PII entity types you specified in your request.

+ */ + inline void SetPiiEntityTypes(const Aws::String& value) { m_piiEntityTypesHasBeenSet = true; m_piiEntityTypes = value; } + + /** + *

Lists the PII entity types you specified in your request.

+ */ + inline void SetPiiEntityTypes(Aws::String&& value) { m_piiEntityTypesHasBeenSet = true; m_piiEntityTypes = std::move(value); } + + /** + *

Lists the PII entity types you specified in your request.

+ */ + inline void SetPiiEntityTypes(const char* value) { m_piiEntityTypesHasBeenSet = true; m_piiEntityTypes.assign(value); } + + /** + *

Lists the PII entity types you specified in your request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithPiiEntityTypes(const Aws::String& value) { SetPiiEntityTypes(value); return *this;} + + /** + *

Lists the PII entity types you specified in your request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithPiiEntityTypes(Aws::String&& value) { SetPiiEntityTypes(std::move(value)); return *this;} + + /** + *

Lists the PII entity types you specified in your request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithPiiEntityTypes(const char* value) { SetPiiEntityTypes(value); return *this;} + + + /** + *

Shows whether channel identification was enabled for your transcription.

+ */ + inline bool GetEnableChannelIdentification() const{ return m_enableChannelIdentification; } + + /** + *

Shows whether channel identification was enabled for your transcription.

+ */ + inline bool EnableChannelIdentificationHasBeenSet() const { return m_enableChannelIdentificationHasBeenSet; } + + /** + *

Shows whether channel identification was enabled for your transcription.

+ */ + inline void SetEnableChannelIdentification(bool value) { m_enableChannelIdentificationHasBeenSet = true; m_enableChannelIdentification = value; } + + /** + *

Shows whether channel identification was enabled for your transcription.

+ */ + inline StartStreamTranscriptionInitialResponse& WithEnableChannelIdentification(bool value) { SetEnableChannelIdentification(value); return *this;} + + + /** + *

Provides the number of channels that you specified in your request.

+ */ + inline int GetNumberOfChannels() const{ return m_numberOfChannels; } + + /** + *

Provides the number of channels that you specified in your request.

+ */ + inline bool NumberOfChannelsHasBeenSet() const { return m_numberOfChannelsHasBeenSet; } + + /** + *

Provides the number of channels that you specified in your request.

+ */ + inline void SetNumberOfChannels(int value) { m_numberOfChannelsHasBeenSet = true; m_numberOfChannels = value; } + + /** + *

Provides the number of channels that you specified in your request.

+ */ + inline StartStreamTranscriptionInitialResponse& WithNumberOfChannels(int value) { SetNumberOfChannels(value); return *this;} + + + /** + *

Provides the vocabulary filtering method used in your transcription.

+ */ + inline const VocabularyFilterMethod& GetVocabularyFilterMethod() const{ return m_vocabularyFilterMethod; } + + /** + *

Provides the vocabulary filtering method used in your transcription.

+ */ + inline bool VocabularyFilterMethodHasBeenSet() const { return m_vocabularyFilterMethodHasBeenSet; } + + /** + *

Provides the vocabulary filtering method used in your transcription.

+ */ + inline void SetVocabularyFilterMethod(const VocabularyFilterMethod& value) { m_vocabularyFilterMethodHasBeenSet = true; m_vocabularyFilterMethod = value; } + + /** + *

Provides the vocabulary filtering method used in your transcription.

+ */ + inline void SetVocabularyFilterMethod(VocabularyFilterMethod&& value) { m_vocabularyFilterMethodHasBeenSet = true; m_vocabularyFilterMethod = std::move(value); } + + /** + *

Provides the vocabulary filtering method used in your transcription.

+ */ + inline StartStreamTranscriptionInitialResponse& WithVocabularyFilterMethod(const VocabularyFilterMethod& value) { SetVocabularyFilterMethod(value); return *this;} + + /** + *

Provides the vocabulary filtering method used in your transcription.

+ */ + inline StartStreamTranscriptionInitialResponse& WithVocabularyFilterMethod(VocabularyFilterMethod&& value) { SetVocabularyFilterMethod(std::move(value)); return *this;} + + + /** + *

Provides the identifier for your transcription session.

+ */ + inline const Aws::String& GetSessionId() const{ return m_sessionId; } + + /** + *

Provides the identifier for your transcription session.

+ */ + inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; } + + /** + *

Provides the identifier for your transcription session.

+ */ + inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; } + + /** + *

Provides the identifier for your transcription session.

+ */ + inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); } + + /** + *

Provides the identifier for your transcription session.

+ */ + inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); } + + /** + *

Provides the identifier for your transcription session.

+ */ + inline StartStreamTranscriptionInitialResponse& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} + + /** + *

Provides the identifier for your transcription session.

+ */ + inline StartStreamTranscriptionInitialResponse& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} + + /** + *

Provides the identifier for your transcription session.

+ */ + inline StartStreamTranscriptionInitialResponse& WithSessionId(const char* value) { SetSessionId(value); return *this;} + + private: + + Aws::String m_vocabularyNames; + bool m_vocabularyNamesHasBeenSet = false; + + bool m_identifyMultipleLanguages; + bool m_identifyMultipleLanguagesHasBeenSet = false; + + Aws::String m_languageModelName; + bool m_languageModelNameHasBeenSet = false; + + Aws::String m_requestId; + bool m_requestIdHasBeenSet = false; + + Aws::String m_vocabularyFilterName; + bool m_vocabularyFilterNameHasBeenSet = false; + + int m_mediaSampleRateHertz; + bool m_mediaSampleRateHertzHasBeenSet = false; + + bool m_identifyLanguage; + bool m_identifyLanguageHasBeenSet = false; + + MediaEncoding m_mediaEncoding; + bool m_mediaEncodingHasBeenSet = false; + + PartialResultsStability m_partialResultsStability; + bool m_partialResultsStabilityHasBeenSet = false; + + Aws::String m_languageOptions; + bool m_languageOptionsHasBeenSet = false; + + Aws::String m_vocabularyFilterNames; + bool m_vocabularyFilterNamesHasBeenSet = false; + + bool m_enablePartialResultsStabilization; + bool m_enablePartialResultsStabilizationHasBeenSet = false; + + LanguageCode m_languageCode; + bool m_languageCodeHasBeenSet = false; + + Aws::String m_vocabularyName; + bool m_vocabularyNameHasBeenSet = false; + + ContentRedactionType m_contentRedactionType; + bool m_contentRedactionTypeHasBeenSet = false; + + bool m_showSpeakerLabel; + bool m_showSpeakerLabelHasBeenSet = false; + + ContentIdentificationType m_contentIdentificationType; + bool m_contentIdentificationTypeHasBeenSet = false; + + LanguageCode m_preferredLanguage; + bool m_preferredLanguageHasBeenSet = false; + + Aws::String m_piiEntityTypes; + bool m_piiEntityTypesHasBeenSet = false; + + bool m_enableChannelIdentification; + bool m_enableChannelIdentificationHasBeenSet = false; + + int m_numberOfChannels; + bool m_numberOfChannelsHasBeenSet = false; + + VocabularyFilterMethod m_vocabularyFilterMethod; + bool m_vocabularyFilterMethodHasBeenSet = false; + + Aws::String m_sessionId; + bool m_sessionIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace TranscribeStreamingService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartCallAnalyticsStreamTranscriptionHandler.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartCallAnalyticsStreamTranscriptionHandler.cpp index 1b270a34b38..c2bfa362161 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartCallAnalyticsStreamTranscriptionHandler.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartCallAnalyticsStreamTranscriptionHandler.cpp @@ -29,6 +29,12 @@ namespace Model StartCallAnalyticsStreamTranscriptionHandler::StartCallAnalyticsStreamTranscriptionHandler() : EventStreamHandler() { + m_onInitialResponse = [&](const StartCallAnalyticsStreamTranscriptionInitialResponse&) + { + AWS_LOGSTREAM_TRACE(STARTCALLANALYTICSSTREAMTRANSCRIPTION_HANDLER_CLASS_TAG, + "StartCallAnalyticsStreamTranscription initial response received."); + }; + m_onUtteranceEvent = [&](const UtteranceEvent&) { AWS_LOGSTREAM_TRACE(STARTCALLANALYTICSSTREAMTRANSCRIPTION_HANDLER_CLASS_TAG, "UtteranceEvent received."); @@ -93,6 +99,21 @@ namespace Model } switch (StartCallAnalyticsStreamTranscriptionEventMapper::GetStartCallAnalyticsStreamTranscriptionEventTypeForName(eventTypeHeaderIter->second.GetEventHeaderValueAsString())) { + + case StartCallAnalyticsStreamTranscriptionEventType::INITIAL_RESPONSE: + { + JsonValue json(GetEventPayloadAsString()); + if (!json.WasParseSuccessful()) + { + AWS_LOGSTREAM_WARN(STARTCALLANALYTICSSTREAMTRANSCRIPTION_HANDLER_CLASS_TAG, "Unable to generate a proper StartCallAnalyticsStreamTranscriptionInitialResponse object from the response in JSON format."); + break; + } + + StartCallAnalyticsStreamTranscriptionInitialResponse event(json.View()); + m_onInitialResponse(event); + break; + } + case StartCallAnalyticsStreamTranscriptionEventType::UTTERANCEEVENT: { JsonValue json(GetEventPayloadAsString()); @@ -209,13 +230,19 @@ namespace Model namespace StartCallAnalyticsStreamTranscriptionEventMapper { + static const int INITIAL_RESPONSE_HASH = Aws::Utils::HashingUtils::HashString("initial-response"); static const int UTTERANCEEVENT_HASH = Aws::Utils::HashingUtils::HashString("UtteranceEvent"); static const int CATEGORYEVENT_HASH = Aws::Utils::HashingUtils::HashString("CategoryEvent"); StartCallAnalyticsStreamTranscriptionEventType GetStartCallAnalyticsStreamTranscriptionEventTypeForName(const Aws::String& name) { int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); - if (hashCode == UTTERANCEEVENT_HASH) + + if (hashCode == INITIAL_RESPONSE_HASH) + { + return StartCallAnalyticsStreamTranscriptionEventType::INITIAL_RESPONSE; + } + else if (hashCode == UTTERANCEEVENT_HASH) { return StartCallAnalyticsStreamTranscriptionEventType::UTTERANCEEVENT; } @@ -230,6 +257,8 @@ namespace StartCallAnalyticsStreamTranscriptionEventMapper { switch (value) { + case StartCallAnalyticsStreamTranscriptionEventType::INITIAL_RESPONSE: + return "initial-response"; case StartCallAnalyticsStreamTranscriptionEventType::UTTERANCEEVENT: return "UtteranceEvent"; case StartCallAnalyticsStreamTranscriptionEventType::CATEGORYEVENT: diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartCallAnalyticsStreamTranscriptionInitialResponse.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartCallAnalyticsStreamTranscriptionInitialResponse.cpp new file mode 100644 index 00000000000..8814b318066 --- /dev/null +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartCallAnalyticsStreamTranscriptionInitialResponse.cpp @@ -0,0 +1,90 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace TranscribeStreamingService +{ +namespace Model +{ + +StartCallAnalyticsStreamTranscriptionInitialResponse::StartCallAnalyticsStreamTranscriptionInitialResponse() : + m_languageModelNameHasBeenSet(false), + m_requestIdHasBeenSet(false), + m_vocabularyFilterNameHasBeenSet(false), + m_mediaSampleRateHertz(0), + m_mediaSampleRateHertzHasBeenSet(false), + m_mediaEncoding(MediaEncoding::NOT_SET), + m_mediaEncodingHasBeenSet(false), + m_partialResultsStability(PartialResultsStability::NOT_SET), + m_partialResultsStabilityHasBeenSet(false), + m_enablePartialResultsStabilization(false), + m_enablePartialResultsStabilizationHasBeenSet(false), + m_languageCode(CallAnalyticsLanguageCode::NOT_SET), + m_languageCodeHasBeenSet(false), + m_vocabularyNameHasBeenSet(false), + m_contentRedactionType(ContentRedactionType::NOT_SET), + m_contentRedactionTypeHasBeenSet(false), + m_contentIdentificationType(ContentIdentificationType::NOT_SET), + m_contentIdentificationTypeHasBeenSet(false), + m_piiEntityTypesHasBeenSet(false), + m_vocabularyFilterMethod(VocabularyFilterMethod::NOT_SET), + m_vocabularyFilterMethodHasBeenSet(false), + m_sessionIdHasBeenSet(false) +{ +} + +StartCallAnalyticsStreamTranscriptionInitialResponse::StartCallAnalyticsStreamTranscriptionInitialResponse(JsonView jsonValue) : + m_languageModelNameHasBeenSet(false), + m_requestIdHasBeenSet(false), + m_vocabularyFilterNameHasBeenSet(false), + m_mediaSampleRateHertz(0), + m_mediaSampleRateHertzHasBeenSet(false), + m_mediaEncoding(MediaEncoding::NOT_SET), + m_mediaEncodingHasBeenSet(false), + m_partialResultsStability(PartialResultsStability::NOT_SET), + m_partialResultsStabilityHasBeenSet(false), + m_enablePartialResultsStabilization(false), + m_enablePartialResultsStabilizationHasBeenSet(false), + m_languageCode(CallAnalyticsLanguageCode::NOT_SET), + m_languageCodeHasBeenSet(false), + m_vocabularyNameHasBeenSet(false), + m_contentRedactionType(ContentRedactionType::NOT_SET), + m_contentRedactionTypeHasBeenSet(false), + m_contentIdentificationType(ContentIdentificationType::NOT_SET), + m_contentIdentificationTypeHasBeenSet(false), + m_piiEntityTypesHasBeenSet(false), + m_vocabularyFilterMethod(VocabularyFilterMethod::NOT_SET), + m_vocabularyFilterMethodHasBeenSet(false), + m_sessionIdHasBeenSet(false) +{ + *this = jsonValue; +} + +StartCallAnalyticsStreamTranscriptionInitialResponse& StartCallAnalyticsStreamTranscriptionInitialResponse::operator =(JsonView jsonValue) +{ + AWS_UNREFERENCED_PARAM(jsonValue); + return *this; +} + +JsonValue StartCallAnalyticsStreamTranscriptionInitialResponse::Jsonize() const +{ + JsonValue payload; + + return payload; +} + +} // namespace Model +} // namespace TranscribeStreamingService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartMedicalStreamTranscriptionHandler.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartMedicalStreamTranscriptionHandler.cpp index 07d58965bfd..10dd2dba653 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartMedicalStreamTranscriptionHandler.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartMedicalStreamTranscriptionHandler.cpp @@ -29,6 +29,12 @@ namespace Model StartMedicalStreamTranscriptionHandler::StartMedicalStreamTranscriptionHandler() : EventStreamHandler() { + m_onInitialResponse = [&](const StartMedicalStreamTranscriptionInitialResponse&) + { + AWS_LOGSTREAM_TRACE(STARTMEDICALSTREAMTRANSCRIPTION_HANDLER_CLASS_TAG, + "StartMedicalStreamTranscription initial response received."); + }; + m_onMedicalTranscriptEvent = [&](const MedicalTranscriptEvent&) { AWS_LOGSTREAM_TRACE(STARTMEDICALSTREAMTRANSCRIPTION_HANDLER_CLASS_TAG, "MedicalTranscriptEvent received."); @@ -88,6 +94,21 @@ namespace Model } switch (StartMedicalStreamTranscriptionEventMapper::GetStartMedicalStreamTranscriptionEventTypeForName(eventTypeHeaderIter->second.GetEventHeaderValueAsString())) { + + case StartMedicalStreamTranscriptionEventType::INITIAL_RESPONSE: + { + JsonValue json(GetEventPayloadAsString()); + if (!json.WasParseSuccessful()) + { + AWS_LOGSTREAM_WARN(STARTMEDICALSTREAMTRANSCRIPTION_HANDLER_CLASS_TAG, "Unable to generate a proper StartMedicalStreamTranscriptionInitialResponse object from the response in JSON format."); + break; + } + + StartMedicalStreamTranscriptionInitialResponse event(json.View()); + m_onInitialResponse(event); + break; + } + case StartMedicalStreamTranscriptionEventType::TRANSCRIPTEVENT: { JsonValue json(GetEventPayloadAsString()); @@ -192,12 +213,18 @@ namespace Model namespace StartMedicalStreamTranscriptionEventMapper { + static const int INITIAL_RESPONSE_HASH = Aws::Utils::HashingUtils::HashString("initial-response"); static const int TRANSCRIPTEVENT_HASH = Aws::Utils::HashingUtils::HashString("TranscriptEvent"); StartMedicalStreamTranscriptionEventType GetStartMedicalStreamTranscriptionEventTypeForName(const Aws::String& name) { int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); - if (hashCode == TRANSCRIPTEVENT_HASH) + + if (hashCode == INITIAL_RESPONSE_HASH) + { + return StartMedicalStreamTranscriptionEventType::INITIAL_RESPONSE; + } + else if (hashCode == TRANSCRIPTEVENT_HASH) { return StartMedicalStreamTranscriptionEventType::TRANSCRIPTEVENT; } @@ -208,6 +235,8 @@ namespace StartMedicalStreamTranscriptionEventMapper { switch (value) { + case StartMedicalStreamTranscriptionEventType::INITIAL_RESPONSE: + return "initial-response"; case StartMedicalStreamTranscriptionEventType::TRANSCRIPTEVENT: return "TranscriptEvent"; default: diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartMedicalStreamTranscriptionInitialResponse.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartMedicalStreamTranscriptionInitialResponse.cpp new file mode 100644 index 00000000000..42354a7e9b8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartMedicalStreamTranscriptionInitialResponse.cpp @@ -0,0 +1,88 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace TranscribeStreamingService +{ +namespace Model +{ + +StartMedicalStreamTranscriptionInitialResponse::StartMedicalStreamTranscriptionInitialResponse() : + m_specialty(Specialty::NOT_SET), + m_specialtyHasBeenSet(false), + m_languageCode(LanguageCode::NOT_SET), + m_languageCodeHasBeenSet(false), + m_type(Type::NOT_SET), + m_typeHasBeenSet(false), + m_vocabularyNameHasBeenSet(false), + m_requestIdHasBeenSet(false), + m_showSpeakerLabel(false), + m_showSpeakerLabelHasBeenSet(false), + m_contentIdentificationType(MedicalContentIdentificationType::NOT_SET), + m_contentIdentificationTypeHasBeenSet(false), + m_enableChannelIdentification(false), + m_enableChannelIdentificationHasBeenSet(false), + m_mediaSampleRateHertz(0), + m_mediaSampleRateHertzHasBeenSet(false), + m_numberOfChannels(0), + m_numberOfChannelsHasBeenSet(false), + m_mediaEncoding(MediaEncoding::NOT_SET), + m_mediaEncodingHasBeenSet(false), + m_sessionIdHasBeenSet(false) +{ +} + +StartMedicalStreamTranscriptionInitialResponse::StartMedicalStreamTranscriptionInitialResponse(JsonView jsonValue) : + m_specialty(Specialty::NOT_SET), + m_specialtyHasBeenSet(false), + m_languageCode(LanguageCode::NOT_SET), + m_languageCodeHasBeenSet(false), + m_type(Type::NOT_SET), + m_typeHasBeenSet(false), + m_vocabularyNameHasBeenSet(false), + m_requestIdHasBeenSet(false), + m_showSpeakerLabel(false), + m_showSpeakerLabelHasBeenSet(false), + m_contentIdentificationType(MedicalContentIdentificationType::NOT_SET), + m_contentIdentificationTypeHasBeenSet(false), + m_enableChannelIdentification(false), + m_enableChannelIdentificationHasBeenSet(false), + m_mediaSampleRateHertz(0), + m_mediaSampleRateHertzHasBeenSet(false), + m_numberOfChannels(0), + m_numberOfChannelsHasBeenSet(false), + m_mediaEncoding(MediaEncoding::NOT_SET), + m_mediaEncodingHasBeenSet(false), + m_sessionIdHasBeenSet(false) +{ + *this = jsonValue; +} + +StartMedicalStreamTranscriptionInitialResponse& StartMedicalStreamTranscriptionInitialResponse::operator =(JsonView jsonValue) +{ + AWS_UNREFERENCED_PARAM(jsonValue); + return *this; +} + +JsonValue StartMedicalStreamTranscriptionInitialResponse::Jsonize() const +{ + JsonValue payload; + + return payload; +} + +} // namespace Model +} // namespace TranscribeStreamingService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartStreamTranscriptionHandler.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartStreamTranscriptionHandler.cpp index a835df48578..c9a4dca7dcd 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartStreamTranscriptionHandler.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartStreamTranscriptionHandler.cpp @@ -29,6 +29,12 @@ namespace Model StartStreamTranscriptionHandler::StartStreamTranscriptionHandler() : EventStreamHandler() { + m_onInitialResponse = [&](const StartStreamTranscriptionInitialResponse&) + { + AWS_LOGSTREAM_TRACE(STARTSTREAMTRANSCRIPTION_HANDLER_CLASS_TAG, + "StartStreamTranscription initial response received."); + }; + m_onTranscriptEvent = [&](const TranscriptEvent&) { AWS_LOGSTREAM_TRACE(STARTSTREAMTRANSCRIPTION_HANDLER_CLASS_TAG, "TranscriptEvent received."); @@ -88,6 +94,21 @@ namespace Model } switch (StartStreamTranscriptionEventMapper::GetStartStreamTranscriptionEventTypeForName(eventTypeHeaderIter->second.GetEventHeaderValueAsString())) { + + case StartStreamTranscriptionEventType::INITIAL_RESPONSE: + { + JsonValue json(GetEventPayloadAsString()); + if (!json.WasParseSuccessful()) + { + AWS_LOGSTREAM_WARN(STARTSTREAMTRANSCRIPTION_HANDLER_CLASS_TAG, "Unable to generate a proper StartStreamTranscriptionInitialResponse object from the response in JSON format."); + break; + } + + StartStreamTranscriptionInitialResponse event(json.View()); + m_onInitialResponse(event); + break; + } + case StartStreamTranscriptionEventType::TRANSCRIPTEVENT: { JsonValue json(GetEventPayloadAsString()); @@ -192,12 +213,18 @@ namespace Model namespace StartStreamTranscriptionEventMapper { + static const int INITIAL_RESPONSE_HASH = Aws::Utils::HashingUtils::HashString("initial-response"); static const int TRANSCRIPTEVENT_HASH = Aws::Utils::HashingUtils::HashString("TranscriptEvent"); StartStreamTranscriptionEventType GetStartStreamTranscriptionEventTypeForName(const Aws::String& name) { int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); - if (hashCode == TRANSCRIPTEVENT_HASH) + + if (hashCode == INITIAL_RESPONSE_HASH) + { + return StartStreamTranscriptionEventType::INITIAL_RESPONSE; + } + else if (hashCode == TRANSCRIPTEVENT_HASH) { return StartStreamTranscriptionEventType::TRANSCRIPTEVENT; } @@ -208,6 +235,8 @@ namespace StartStreamTranscriptionEventMapper { switch (value) { + case StartStreamTranscriptionEventType::INITIAL_RESPONSE: + return "initial-response"; case StartStreamTranscriptionEventType::TRANSCRIPTEVENT: return "TranscriptEvent"; default: diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartStreamTranscriptionInitialResponse.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartStreamTranscriptionInitialResponse.cpp new file mode 100644 index 00000000000..9d67a1bec30 --- /dev/null +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartStreamTranscriptionInitialResponse.cpp @@ -0,0 +1,120 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace TranscribeStreamingService +{ +namespace Model +{ + +StartStreamTranscriptionInitialResponse::StartStreamTranscriptionInitialResponse() : + m_vocabularyNamesHasBeenSet(false), + m_identifyMultipleLanguages(false), + m_identifyMultipleLanguagesHasBeenSet(false), + m_languageModelNameHasBeenSet(false), + m_requestIdHasBeenSet(false), + m_vocabularyFilterNameHasBeenSet(false), + m_mediaSampleRateHertz(0), + m_mediaSampleRateHertzHasBeenSet(false), + m_identifyLanguage(false), + m_identifyLanguageHasBeenSet(false), + m_mediaEncoding(MediaEncoding::NOT_SET), + m_mediaEncodingHasBeenSet(false), + m_partialResultsStability(PartialResultsStability::NOT_SET), + m_partialResultsStabilityHasBeenSet(false), + m_languageOptionsHasBeenSet(false), + m_vocabularyFilterNamesHasBeenSet(false), + m_enablePartialResultsStabilization(false), + m_enablePartialResultsStabilizationHasBeenSet(false), + m_languageCode(LanguageCode::NOT_SET), + m_languageCodeHasBeenSet(false), + m_vocabularyNameHasBeenSet(false), + m_contentRedactionType(ContentRedactionType::NOT_SET), + m_contentRedactionTypeHasBeenSet(false), + m_showSpeakerLabel(false), + m_showSpeakerLabelHasBeenSet(false), + m_contentIdentificationType(ContentIdentificationType::NOT_SET), + m_contentIdentificationTypeHasBeenSet(false), + m_preferredLanguage(LanguageCode::NOT_SET), + m_preferredLanguageHasBeenSet(false), + m_piiEntityTypesHasBeenSet(false), + m_enableChannelIdentification(false), + m_enableChannelIdentificationHasBeenSet(false), + m_numberOfChannels(0), + m_numberOfChannelsHasBeenSet(false), + m_vocabularyFilterMethod(VocabularyFilterMethod::NOT_SET), + m_vocabularyFilterMethodHasBeenSet(false), + m_sessionIdHasBeenSet(false) +{ +} + +StartStreamTranscriptionInitialResponse::StartStreamTranscriptionInitialResponse(JsonView jsonValue) : + m_vocabularyNamesHasBeenSet(false), + m_identifyMultipleLanguages(false), + m_identifyMultipleLanguagesHasBeenSet(false), + m_languageModelNameHasBeenSet(false), + m_requestIdHasBeenSet(false), + m_vocabularyFilterNameHasBeenSet(false), + m_mediaSampleRateHertz(0), + m_mediaSampleRateHertzHasBeenSet(false), + m_identifyLanguage(false), + m_identifyLanguageHasBeenSet(false), + m_mediaEncoding(MediaEncoding::NOT_SET), + m_mediaEncodingHasBeenSet(false), + m_partialResultsStability(PartialResultsStability::NOT_SET), + m_partialResultsStabilityHasBeenSet(false), + m_languageOptionsHasBeenSet(false), + m_vocabularyFilterNamesHasBeenSet(false), + m_enablePartialResultsStabilization(false), + m_enablePartialResultsStabilizationHasBeenSet(false), + m_languageCode(LanguageCode::NOT_SET), + m_languageCodeHasBeenSet(false), + m_vocabularyNameHasBeenSet(false), + m_contentRedactionType(ContentRedactionType::NOT_SET), + m_contentRedactionTypeHasBeenSet(false), + m_showSpeakerLabel(false), + m_showSpeakerLabelHasBeenSet(false), + m_contentIdentificationType(ContentIdentificationType::NOT_SET), + m_contentIdentificationTypeHasBeenSet(false), + m_preferredLanguage(LanguageCode::NOT_SET), + m_preferredLanguageHasBeenSet(false), + m_piiEntityTypesHasBeenSet(false), + m_enableChannelIdentification(false), + m_enableChannelIdentificationHasBeenSet(false), + m_numberOfChannels(0), + m_numberOfChannelsHasBeenSet(false), + m_vocabularyFilterMethod(VocabularyFilterMethod::NOT_SET), + m_vocabularyFilterMethodHasBeenSet(false), + m_sessionIdHasBeenSet(false) +{ + *this = jsonValue; +} + +StartStreamTranscriptionInitialResponse& StartStreamTranscriptionInitialResponse::operator =(JsonView jsonValue) +{ + AWS_UNREFERENCED_PARAM(jsonValue); + return *this; +} + +JsonValue StartStreamTranscriptionInitialResponse::Jsonize() const +{ + JsonValue payload; + + return payload; +} + +} // namespace Model +} // namespace TranscribeStreamingService +} // namespace Aws diff --git a/tests/aws-cpp-sdk-logs-integration-tests/CMakeLists.txt b/tests/aws-cpp-sdk-logs-integration-tests/CMakeLists.txt index 55145905f2e..4ffecb7800e 100644 --- a/tests/aws-cpp-sdk-logs-integration-tests/CMakeLists.txt +++ b/tests/aws-cpp-sdk-logs-integration-tests/CMakeLists.txt @@ -1,6 +1,9 @@ add_project(aws-cpp-sdk-logs-integration-tests "Tests for the AWS CloudWatch Logs C++ SDK" aws-cpp-sdk-logs + aws-cpp-sdk-access-management + aws-cpp-sdk-iam + aws-cpp-sdk-cognito-identity testing-resources aws-cpp-sdk-core) diff --git a/tests/aws-cpp-sdk-logs-integration-tests/CloudWatchLogsTests.cpp b/tests/aws-cpp-sdk-logs-integration-tests/CloudWatchLogsTests.cpp index fdae5e601ce..8cab66ef3fc 100644 --- a/tests/aws-cpp-sdk-logs-integration-tests/CloudWatchLogsTests.cpp +++ b/tests/aws-cpp-sdk-logs-integration-tests/CloudWatchLogsTests.cpp @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -16,6 +17,11 @@ #include #include #include +#include +#include +#include +#include +#include #include #include @@ -40,6 +46,7 @@ namespace protected: Aws::UniquePtr m_client; Aws::String m_UUID; + Aws::String m_accountId; Aws::String BuildResourceName(const char *baseName) { @@ -54,6 +61,16 @@ namespace config.region = AWS_TEST_REGION; m_client = Aws::MakeUnique(ALLOCATION_TAG, config); CreateLogsGroup(BuildResourceName(BASE_CLOUD_WATCH_LOGS_GROUP)); + + auto accountId = Aws::Environment::GetEnv("CATAPULT_TEST_ACCOUNT"); + if(accountId.empty()) { + config.region = Aws::Region::US_EAST_1; + auto iamClient = Aws::MakeShared(ALLOCATION_TAG, config); + auto cognitoClient = Aws::MakeShared(ALLOCATION_TAG, config); + Aws::AccessManagement::AccessManagementClient accessManagementClient(iamClient, cognitoClient); + accountId = accessManagementClient.GetAccountId(); + } + m_accountId = accountId; } void TearDown() @@ -140,6 +157,52 @@ namespace } ASSERT_EQ(6u, eventsCount); } + + TEST_F(CloudWatchLogsOperationTest, StartLiveTailTest) + { + CreateLogStreamRequest createStreamRequest; + createStreamRequest.WithLogGroupName(BuildResourceName(BASE_CLOUD_WATCH_LOGS_GROUP)) + .WithLogStreamName(BuildResourceName(BASE_CLOUD_WATCH_LOGS_STREAM)); + auto createStreamOutcome = m_client->CreateLogStream(createStreamRequest); + AWS_ASSERT_SUCCESS(createStreamOutcome); + + StartLiveTailHandler handler; + + auto OnResponseCallback = []( + const CloudWatchLogsClient* /*unused*/, + const StartLiveTailRequest& /*unused*/, + const StartLiveTailOutcome& outcome, + const std::shared_ptr& /*unused*/) { + // Unfortunately the only way to end stream right now is to cancel + // it, so StartLiveTail api currently cannot end successfully. + ASSERT_EQ(outcome.IsSuccess(), false); + }; + + StartLiveTailRequest request; + + Aws::StringStream ss; + ss << "arn:aws:logs:" << AWS_TEST_REGION << ":" << m_accountId << ":log-group:" << BuildResourceName(BASE_CLOUD_WATCH_LOGS_GROUP); + request.SetLogGroupIdentifiers({ss.str()}); + request.SetLogStreamNames({BuildResourceName(BASE_CLOUD_WATCH_LOGS_STREAM)}); + request.SetLogEventFilterPattern("ERROR"); + request.SetEventStreamHandler(handler); + + std::atomic keep_going(true); + request.SetContinueRequestHandler([&keep_going](const Aws::Http::HttpRequest*) { + return keep_going.load(); + }); + + m_client->StartLiveTailAsync(request, OnResponseCallback); + + //let it run for a little bit + std::this_thread::sleep_for(std::chrono::seconds(6)); + + keep_going.store(false); + + //note: continue request handler takes a while to stop a request, so + //wait some time for request to stop before exiting the test + std::this_thread::sleep_for(std::chrono::seconds(30)); + } } diff --git a/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/generators/cpp/CppClientGenerator.java b/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/generators/cpp/CppClientGenerator.java index e6aa8077932..8af79844e2e 100644 --- a/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/generators/cpp/CppClientGenerator.java +++ b/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/generators/cpp/CppClientGenerator.java @@ -58,13 +58,11 @@ public SdkFileEntry[] generateSourceFiles(ServiceModel serviceModel) throws Exce //for c++, the way serialization works, we want to remove all required fields so we can do a value has been set //check on all fields. serviceModel.getShapes().values().stream().filter(hasMembers -> hasMembers.getMembers() != null).forEach(shape -> - shape.getMembers().values().stream().filter(shapeMember -> - shapeMember.isRequired()).forEach( member -> member.setRequired(false))); + shape.getMembers().values().stream().filter(ShapeMember::isRequired) + .forEach( member -> member.setRequired(false))); - getOperationsToRemove().stream().forEach(operation -> - { - serviceModel.getOperations().remove(operation); - }); + getOperationsToRemove().stream().forEach(operation -> serviceModel.getOperations().remove(operation)); + addEventStreamInitialResponse(serviceModel); addRequestIdToResults(serviceModel); List fileList = new ArrayList<>(); fileList.addAll(generateModelHeaderFiles(serviceModel)); @@ -125,6 +123,24 @@ public SdkFileEntry[] generateSourceFiles(ServiceModel serviceModel) throws Exce return fileList.toArray(retArray); } + protected void addEventStreamInitialResponse(final ServiceModel serviceModel) { + serviceModel.getOperations().entrySet().stream() + .filter(operation -> Objects.nonNull(operation.getValue().getResult())) + .filter(operation -> operation.getValue().getResult().getShape().hasEventStreamMembers()) + .map(operation -> Shape.builder() + .name(operation.getKey() + "InitialResponse") + .type("structure") + .isReferenced(true) + .event(true) + .eventPayloadType("structure") + .members( + operation.getValue().getResult().getShape().getMembers().entrySet().stream() + .filter(member -> !member.getValue().getShape().isEventStream()) + .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue))) + .build()) + .forEach(shape -> serviceModel.getShapes().put(shape.getName(), shape)); + } + protected void addRequestIdToResults(final ServiceModel serviceModel) { // generate a RequestId in a Result Shape requestId = new Shape(); @@ -255,7 +271,10 @@ protected SdkFileEntry generateEventStreamHandlerHeaderFile(ServiceModel service for (Map.Entry opEntry : serviceModel.getOperations().entrySet()) { String key = opEntry.getKey(); Operation op = opEntry.getValue(); - if (op.getRequest() != null && op.getRequest().getShape().getName() == shape.getName() && op.getResult() != null) { + + if (op.getRequest() != null && + op.getRequest().getShape().getName().equals(shape.getName()) && + op.getResult() != null) { if (op.getResult().getShape().hasEventStreamMembers()) { for (Map.Entry shapeMemberEntry : op.getResult().getShape().getMembers().entrySet()) { if (shapeMemberEntry.getValue().getShape().isEventStream()) { diff --git a/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/generators/cpp/JsonCppClientGenerator.java b/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/generators/cpp/JsonCppClientGenerator.java index e05b3c3e9f0..2a4f0d25f4a 100644 --- a/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/generators/cpp/JsonCppClientGenerator.java +++ b/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/generators/cpp/JsonCppClientGenerator.java @@ -14,9 +14,7 @@ import com.amazonaws.util.awsclientgenerator.domainmodels.codegeneration.cpp.CppViewHelper; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; import com.google.common.collect.Sets; -import org.apache.commons.lang3.StringUtils; import org.apache.velocity.Template; import org.apache.velocity.VelocityContext; @@ -26,8 +24,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Optional; -import java.util.Set;; +import java.util.Set; public class JsonCppClientGenerator extends CppClientGenerator { diff --git a/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/generators/cpp/RestXmlCppClientGenerator.java b/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/generators/cpp/RestXmlCppClientGenerator.java index 631dd245bbc..9296b2f2431 100644 --- a/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/generators/cpp/RestXmlCppClientGenerator.java +++ b/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/generators/cpp/RestXmlCppClientGenerator.java @@ -86,7 +86,9 @@ protected SdkFileEntry generateModelHeaderFile(ServiceModel serviceModel, Map.En // Will not generate source code if it's a shape of event, with empty member. if (shape.isStructure() && shape.isReferenced() && - !(shape.isEventStream() || (shape.isEvent() && shape.getMembers().isEmpty()) || (shape.isResult() && shape.hasEventStreamMembers()))) { + !(shape.isEventStream() || + (shape.isEvent() && shape.getMembers().isEmpty() && !shape.getName().endsWith("InitialResponse")) || + (shape.isResult() && shape.hasEventStreamMembers()))) { Template template = null; VelocityContext context = createContext(serviceModel); @@ -124,9 +126,9 @@ protected SdkFileEntry generateModelSourceFile(ServiceModel serviceModel, Map.En if (shape.isStructure() && shape.isReferenced() && !(shape.isEventStream() || - shape.hasBlobMembers() && shape.hasEventPayloadMembers() || - shape.isEvent() && shape.getMembers().isEmpty() || - shape.isResult() && shape.hasEventStreamMembers())) { + (shape.hasBlobMembers() && shape.hasEventPayloadMembers()) || + (shape.isEvent() && shape.getMembers().isEmpty() && !shape.getName().endsWith("InitialResponse")) || + (shape.isResult() && shape.hasEventStreamMembers()))) { Template template = null; VelocityContext context = createContext(serviceModel); diff --git a/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/generators/cpp/s3/S3RestXmlCppClientGenerator.java b/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/generators/cpp/s3/S3RestXmlCppClientGenerator.java index 5ceaa8f41f3..88e782d0696 100644 --- a/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/generators/cpp/s3/S3RestXmlCppClientGenerator.java +++ b/tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/generators/cpp/s3/S3RestXmlCppClientGenerator.java @@ -37,7 +37,6 @@ public class S3RestXmlCppClientGenerator extends RestXmlCppClientGenerator { private static Set opsThatDoNotSupportVirtualAddressing = new HashSet<>(); private static Set opsThatDoNotSupportArnEndpoint = new HashSet<>(); private static Set s3CrtEnabledOps = new HashSet<>(); // All other ops are in fact regular SDK calls - private static Set opsThatDoNotSupportFutureInS3CRT = new HashSet<>(); private static Set bucketLocationConstraints = new HashSet<>(); private Set functionsWithEmbeddedErrors = ImmutableSet.of( "CompleteMultipartUploadRequest", diff --git a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/RequestEventStreamHandlerHeader.vm b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/RequestEventStreamHandlerHeader.vm index 917b1a967a2..3c132ed0148 100644 --- a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/RequestEventStreamHandlerHeader.vm +++ b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/RequestEventStreamHandlerHeader.vm @@ -11,6 +11,7 @@ \#include \#include +\#include #foreach($eventMemberEntry in $eventStreamShape.members.entrySet()) #set($eventShape = $eventMemberEntry.value.shape) #if(!$eventShape.members.isEmpty() && !$eventShape.isException()) @@ -26,6 +27,7 @@ namespace Model { enum class ${operation.name}EventType { + INITIAL_RESPONSE, #foreach($eventMemberEntry in $eventStreamShape.members.entrySet()) #if(!$eventMemberEntry.value.shape.isException()) ${eventMemberEntry.key.toUpperCase()}, @@ -36,6 +38,7 @@ namespace Model class ${operation.name}Handler : public Aws::Utils::Event::EventStreamHandler { + typedef std::function ${operation.name}InitialResponseCallback; #foreach($eventMemberEntry in $eventStreamShape.members.entrySet()) #set($eventShape = $eventMemberEntry.value.shape) #if($eventShape.isException()) @@ -56,6 +59,7 @@ namespace Model ${exportMacro} virtual void OnEvent() override; + inline void SetInitialResponseCallback(const ${operation.name}InitialResponseCallback& callback) { m_onInitialResponse = callback; } #foreach($eventMemberEntry in $eventStreamShape.members.entrySet()) #if(!$eventMemberEntry.value.shape.isException()) #set($eventShapeName = $eventMemberEntry.value.shape.name) @@ -69,6 +73,7 @@ namespace Model ${exportMacro} void HandleErrorInMessage(); ${exportMacro} void MarshallError(const Aws::String& errorCode, const Aws::String& errorMessage); + ${operation.name}InitialResponseCallback m_onInitialResponse; #foreach($eventMemberEntry in $eventStreamShape.members.entrySet()) #set($eventShapeName = $eventMemberEntry.value.shape.name) #if(!$eventMemberEntry.value.shape.isException()) diff --git a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/json/JsonEventStreamHandlerSource.vm b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/json/JsonEventStreamHandlerSource.vm index 001d315e87a..c6904d34f27 100644 --- a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/json/JsonEventStreamHandlerSource.vm +++ b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/json/JsonEventStreamHandlerSource.vm @@ -29,6 +29,12 @@ namespace Model ${operation.name}Handler::${operation.name}Handler() : EventStreamHandler() { + m_onInitialResponse = [&](const ${operation.name}InitialResponse&) + { + AWS_LOGSTREAM_TRACE(${operation.name.toUpperCase()}_HANDLER_CLASS_TAG, + "${operation.name} initial response received."); + }; + #foreach($eventMemberEntry in $eventStreamShape.members.entrySet()) #set($eventShape = $eventMemberEntry.value.shape) #if($eventShape.isException()) @@ -102,6 +108,21 @@ namespace Model } switch (${operation.name}EventMapper::Get${operation.name}EventTypeForName(eventTypeHeaderIter->second.GetEventHeaderValueAsString())) { + + case ${operation.name}EventType::INITIAL_RESPONSE: + { + JsonValue json(GetEventPayloadAsString()); + if (!json.WasParseSuccessful()) + { + AWS_LOGSTREAM_WARN(${operation.name.toUpperCase()}_HANDLER_CLASS_TAG, "Unable to generate a proper ${operation.name}InitialResponse object from the response in JSON format."); + break; + } + + ${operation.name}InitialResponse event(json.View()); + m_onInitialResponse(event); + break; + } + #foreach($eventMemberEntry in $eventStreamShape.members.entrySet()) #set($eventShape = $eventMemberEntry.value.shape) #if($eventShape.isException()) @@ -229,6 +250,7 @@ namespace Model namespace ${operation.name}EventMapper { + static const int INITIAL_RESPONSE_HASH = Aws::Utils::HashingUtils::HashString("initial-response"); #foreach($eventMemberEntry in $eventStreamShape.members.entrySet()) #if(!$eventMemberEntry.value.shape.isException()) #set($memberKey = $eventMemberEntry.key) @@ -239,15 +261,18 @@ namespace ${operation.name}EventMapper ${operation.name}EventType Get${operation.name}EventTypeForName(const Aws::String& name) { int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); -#set($elseText = "") + + if (hashCode == INITIAL_RESPONSE_HASH) + { + return ${operation.name}EventType::INITIAL_RESPONSE; + } #foreach($eventMemberEntry in $eventStreamShape.members.entrySet()) #if(!$eventMemberEntry.value.shape.isException()) #set($memberKeyUpperCase = $eventMemberEntry.key.toUpperCase()) - ${elseText}if (hashCode == ${memberKeyUpperCase}_HASH) + else if (hashCode == ${memberKeyUpperCase}_HASH) { return ${operation.name}EventType::${memberKeyUpperCase}; } -#set($elseText = "else ") #end #end return ${operation.name}EventType::UNKNOWN; @@ -257,6 +282,8 @@ namespace ${operation.name}EventMapper { switch (value) { + case ${operation.name}EventType::INITIAL_RESPONSE: + return "initial-response"; #foreach($eventMemberEntry in $eventStreamShape.members.entrySet()) #if(!$eventMemberEntry.value.shape.isException()) #set($memberKey = $eventMemberEntry.key) diff --git a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/xml/XmlRequestEventStreamHandlerSource.vm b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/xml/XmlRequestEventStreamHandlerSource.vm index 48e704752fb..c6b0962b1ed 100644 --- a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/xml/XmlRequestEventStreamHandlerSource.vm +++ b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/xml/XmlRequestEventStreamHandlerSource.vm @@ -26,6 +26,12 @@ namespace Model ${operation.name}Handler::${operation.name}Handler() : EventStreamHandler() { + m_onInitialResponse = [&](const ${operation.name}InitialResponse&) + { + AWS_LOGSTREAM_TRACE(${operation.name.toUpperCase()}_HANDLER_CLASS_TAG, + "${operation.name} initial response received."); + }; + #foreach($eventMemberEntry in $eventStreamShape.members.entrySet()) #set($eventShape = $eventMemberEntry.value.shape) #if($eventShape.isException()) @@ -99,6 +105,19 @@ namespace Model } switch (${operation.name}EventMapper::Get${operation.name}EventTypeForName(eventTypeHeaderIter->second.GetEventHeaderValueAsString())) { + + case ${operation.name}EventType::INITIAL_RESPONSE: + { + auto xmlDoc = XmlDocument::CreateFromXmlString(GetEventPayloadAsString()); + if (!xmlDoc.WasParseSuccessful()) + { + AWS_LOGSTREAM_WARN(${operation.name.toUpperCase()}_HANDLER_CLASS_TAG, "Unable to generate a proper InitialResponse object from the response in XML format."); + break; + } + ${operation.name}InitialResponse event(xmlDoc.GetRootElement()); + m_onInitialResponse(event); + break; + } #foreach($eventMemberEntry in $eventStreamShape.members.entrySet()) #set($eventShape = $eventMemberEntry.value.shape) #if($eventShape.isException()) @@ -211,6 +230,7 @@ namespace Model namespace ${operation.name}EventMapper { + static const int INITIAL_RESPONSE_HASH = Aws::Utils::HashingUtils::HashString("initial-response"); #foreach($eventMemberEntry in $eventStreamShape.members.entrySet()) #if(!$eventMemberEntry.value.shape.isException()) #set($memberKey = $eventMemberEntry.key) @@ -221,15 +241,19 @@ namespace ${operation.name}EventMapper ${operation.name}EventType Get${operation.name}EventTypeForName(const Aws::String& name) { int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); -#set($elseText = "") + + if (hashCode == INITIAL_RESPONSE_HASH) + { + return ${operation.name}EventType::INITIAL_RESPONSE; + } + #foreach($eventMemberEntry in $eventStreamShape.members.entrySet()) #if(!$eventMemberEntry.value.shape.isException()) #set($memberKeyUpperCase = $eventMemberEntry.key.toUpperCase()) - ${elseText}if (hashCode == ${memberKeyUpperCase}_HASH) + else if (hashCode == ${memberKeyUpperCase}_HASH) { return ${operation.name}EventType::${memberKeyUpperCase}; } -#set($elseText = "else ") #end #end return ${operation.name}EventType::UNKNOWN; @@ -239,6 +263,8 @@ namespace ${operation.name}EventMapper { switch (value) { + case ${operation.name}EventType::INITIAL_RESPONSE: + return "initial-response"; #foreach($eventMemberEntry in $eventStreamShape.members.entrySet()) #if(!$eventMemberEntry.value.shape.isException()) #set($memberKey = $eventMemberEntry.key)