/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Translate { namespace Model { class ListLanguagesResult { public: AWS_TRANSLATE_API ListLanguagesResult(); AWS_TRANSLATE_API ListLanguagesResult(const Aws::AmazonWebServiceResult& result); AWS_TRANSLATE_API ListLanguagesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The list of supported languages.

*/ inline const Aws::Vector& GetLanguages() const{ return m_languages; } /** *

The list of supported languages.

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

The list of supported languages.

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

The list of supported languages.

*/ inline ListLanguagesResult& WithLanguages(const Aws::Vector& value) { SetLanguages(value); return *this;} /** *

The list of supported languages.

*/ inline ListLanguagesResult& WithLanguages(Aws::Vector&& value) { SetLanguages(std::move(value)); return *this;} /** *

The list of supported languages.

*/ inline ListLanguagesResult& AddLanguages(const Language& value) { m_languages.push_back(value); return *this; } /** *

The list of supported languages.

*/ inline ListLanguagesResult& AddLanguages(Language&& value) { m_languages.push_back(std::move(value)); return *this; } /** *

The language code passed in with the request.

*/ inline const DisplayLanguageCode& GetDisplayLanguageCode() const{ return m_displayLanguageCode; } /** *

The language code passed in with the request.

*/ inline void SetDisplayLanguageCode(const DisplayLanguageCode& value) { m_displayLanguageCode = value; } /** *

The language code passed in with the request.

*/ inline void SetDisplayLanguageCode(DisplayLanguageCode&& value) { m_displayLanguageCode = std::move(value); } /** *

The language code passed in with the request.

*/ inline ListLanguagesResult& WithDisplayLanguageCode(const DisplayLanguageCode& value) { SetDisplayLanguageCode(value); return *this;} /** *

The language code passed in with the request.

*/ inline ListLanguagesResult& WithDisplayLanguageCode(DisplayLanguageCode&& value) { SetDisplayLanguageCode(std::move(value)); return *this;} /** *

If the response does not include all remaining results, use the NextToken in * the next request to fetch the next group of supported languages.

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

If the response does not include all remaining results, use the NextToken in * the next request to fetch the next group of supported languages.

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

If the response does not include all remaining results, use the NextToken in * the next request to fetch the next group of supported languages.

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

If the response does not include all remaining results, use the NextToken in * the next request to fetch the next group of supported languages.

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

If the response does not include all remaining results, use the NextToken in * the next request to fetch the next group of supported languages.

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

If the response does not include all remaining results, use the NextToken in * the next request to fetch the next group of supported languages.

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

If the response does not include all remaining results, use the NextToken in * the next request to fetch the next group of supported languages.

*/ inline ListLanguagesResult& 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 ListLanguagesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListLanguagesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListLanguagesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_languages; DisplayLanguageCode m_displayLanguageCode; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace Translate } // namespace Aws