/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace Polly { namespace Model { /** */ class DescribeVoicesRequest : public PollyRequest { public: AWS_POLLY_API DescribeVoicesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DescribeVoices"; } AWS_POLLY_API Aws::String SerializePayload() const override; AWS_POLLY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

Specifies the engine (standard or neural) used by * Amazon Polly when processing input text for speech synthesis.

*/ inline const Engine& GetEngine() const{ return m_engine; } /** *

Specifies the engine (standard or neural) used by * Amazon Polly when processing input text for speech synthesis.

*/ inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; } /** *

Specifies the engine (standard or neural) used by * Amazon Polly when processing input text for speech synthesis.

*/ inline void SetEngine(const Engine& value) { m_engineHasBeenSet = true; m_engine = value; } /** *

Specifies the engine (standard or neural) used by * Amazon Polly when processing input text for speech synthesis.

*/ inline void SetEngine(Engine&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); } /** *

Specifies the engine (standard or neural) used by * Amazon Polly when processing input text for speech synthesis.

*/ inline DescribeVoicesRequest& WithEngine(const Engine& value) { SetEngine(value); return *this;} /** *

Specifies the engine (standard or neural) used by * Amazon Polly when processing input text for speech synthesis.

*/ inline DescribeVoicesRequest& WithEngine(Engine&& value) { SetEngine(std::move(value)); return *this;} /** *

The language identification tag (ISO 639 code for the language name-ISO 3166 * country code) for filtering the list of voices returned. If you don't specify * this optional parameter, all available voices are returned.

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

The language identification tag (ISO 639 code for the language name-ISO 3166 * country code) for filtering the list of voices returned. If you don't specify * this optional parameter, all available voices are returned.

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

The language identification tag (ISO 639 code for the language name-ISO 3166 * country code) for filtering the list of voices returned. If you don't specify * this optional parameter, all available voices are returned.

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

The language identification tag (ISO 639 code for the language name-ISO 3166 * country code) for filtering the list of voices returned. If you don't specify * this optional parameter, all available voices are returned.

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

The language identification tag (ISO 639 code for the language name-ISO 3166 * country code) for filtering the list of voices returned. If you don't specify * this optional parameter, all available voices are returned.

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

The language identification tag (ISO 639 code for the language name-ISO 3166 * country code) for filtering the list of voices returned. If you don't specify * this optional parameter, all available voices are returned.

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

Boolean value indicating whether to return any bilingual voices that use the * specified language as an additional language. For instance, if you request all * languages that use US English (es-US), and there is an Italian voice that speaks * both Italian (it-IT) and US English, that voice will be included if you specify * yes but not if you specify no.

*/ inline bool GetIncludeAdditionalLanguageCodes() const{ return m_includeAdditionalLanguageCodes; } /** *

Boolean value indicating whether to return any bilingual voices that use the * specified language as an additional language. For instance, if you request all * languages that use US English (es-US), and there is an Italian voice that speaks * both Italian (it-IT) and US English, that voice will be included if you specify * yes but not if you specify no.

*/ inline bool IncludeAdditionalLanguageCodesHasBeenSet() const { return m_includeAdditionalLanguageCodesHasBeenSet; } /** *

Boolean value indicating whether to return any bilingual voices that use the * specified language as an additional language. For instance, if you request all * languages that use US English (es-US), and there is an Italian voice that speaks * both Italian (it-IT) and US English, that voice will be included if you specify * yes but not if you specify no.

*/ inline void SetIncludeAdditionalLanguageCodes(bool value) { m_includeAdditionalLanguageCodesHasBeenSet = true; m_includeAdditionalLanguageCodes = value; } /** *

Boolean value indicating whether to return any bilingual voices that use the * specified language as an additional language. For instance, if you request all * languages that use US English (es-US), and there is an Italian voice that speaks * both Italian (it-IT) and US English, that voice will be included if you specify * yes but not if you specify no.

*/ inline DescribeVoicesRequest& WithIncludeAdditionalLanguageCodes(bool value) { SetIncludeAdditionalLanguageCodes(value); return *this;} /** *

An opaque pagination token returned from the previous * DescribeVoices operation. If present, this indicates where to * continue the listing.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

An opaque pagination token returned from the previous * DescribeVoices operation. If present, this indicates where to * continue the listing.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

An opaque pagination token returned from the previous * DescribeVoices operation. If present, this indicates where to * continue the listing.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

An opaque pagination token returned from the previous * DescribeVoices operation. If present, this indicates where to * continue the listing.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

An opaque pagination token returned from the previous * DescribeVoices operation. If present, this indicates where to * continue the listing.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

An opaque pagination token returned from the previous * DescribeVoices operation. If present, this indicates where to * continue the listing.

*/ inline DescribeVoicesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

An opaque pagination token returned from the previous * DescribeVoices operation. If present, this indicates where to * continue the listing.

*/ inline DescribeVoicesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

An opaque pagination token returned from the previous * DescribeVoices operation. If present, this indicates where to * continue the listing.

*/ inline DescribeVoicesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Engine m_engine; bool m_engineHasBeenSet = false; LanguageCode m_languageCode; bool m_languageCodeHasBeenSet = false; bool m_includeAdditionalLanguageCodes; bool m_includeAdditionalLanguageCodesHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace Polly } // namespace Aws