/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Polly { namespace Model { class DescribeVoicesResult { public: AWS_POLLY_API DescribeVoicesResult(); AWS_POLLY_API DescribeVoicesResult(const Aws::AmazonWebServiceResult& result); AWS_POLLY_API DescribeVoicesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of voices with their properties.

*/ inline const Aws::Vector& GetVoices() const{ return m_voices; } /** *

A list of voices with their properties.

*/ inline void SetVoices(const Aws::Vector& value) { m_voices = value; } /** *

A list of voices with their properties.

*/ inline void SetVoices(Aws::Vector&& value) { m_voices = std::move(value); } /** *

A list of voices with their properties.

*/ inline DescribeVoicesResult& WithVoices(const Aws::Vector& value) { SetVoices(value); return *this;} /** *

A list of voices with their properties.

*/ inline DescribeVoicesResult& WithVoices(Aws::Vector&& value) { SetVoices(std::move(value)); return *this;} /** *

A list of voices with their properties.

*/ inline DescribeVoicesResult& AddVoices(const Voice& value) { m_voices.push_back(value); return *this; } /** *

A list of voices with their properties.

*/ inline DescribeVoicesResult& AddVoices(Voice&& value) { m_voices.push_back(std::move(value)); return *this; } /** *

The pagination token to use in the next request to continue the listing of * voices. NextToken is returned only if the response is * truncated.

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

The pagination token to use in the next request to continue the listing of * voices. NextToken is returned only if the response is * truncated.

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

The pagination token to use in the next request to continue the listing of * voices. NextToken is returned only if the response is * truncated.

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

The pagination token to use in the next request to continue the listing of * voices. NextToken is returned only if the response is * truncated.

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

The pagination token to use in the next request to continue the listing of * voices. NextToken is returned only if the response is * truncated.

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

The pagination token to use in the next request to continue the listing of * voices. NextToken is returned only if the response is * truncated.

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

The pagination token to use in the next request to continue the listing of * voices. NextToken is returned only if the response is * truncated.

*/ inline DescribeVoicesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeVoicesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeVoicesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeVoicesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_voices; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace Polly } // namespace Aws