/** * 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 Polly { namespace Model { /** *

Provides lexicon name and lexicon content in string format. For more * information, see Pronunciation Lexicon * Specification (PLS) Version 1.0.

See Also:

AWS API * Reference

*/ class Lexicon { public: AWS_POLLY_API Lexicon(); AWS_POLLY_API Lexicon(Aws::Utils::Json::JsonView jsonValue); AWS_POLLY_API Lexicon& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Lexicon content in string format. The content of a lexicon must be in PLS * format.

*/ inline const Aws::String& GetContent() const{ return m_content; } /** *

Lexicon content in string format. The content of a lexicon must be in PLS * format.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

Lexicon content in string format. The content of a lexicon must be in PLS * format.

*/ inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; } /** *

Lexicon content in string format. The content of a lexicon must be in PLS * format.

*/ inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

Lexicon content in string format. The content of a lexicon must be in PLS * format.

*/ inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); } /** *

Lexicon content in string format. The content of a lexicon must be in PLS * format.

*/ inline Lexicon& WithContent(const Aws::String& value) { SetContent(value); return *this;} /** *

Lexicon content in string format. The content of a lexicon must be in PLS * format.

*/ inline Lexicon& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;} /** *

Lexicon content in string format. The content of a lexicon must be in PLS * format.

*/ inline Lexicon& WithContent(const char* value) { SetContent(value); return *this;} /** *

Name of the lexicon.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

Name of the lexicon.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

Name of the lexicon.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

Name of the lexicon.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

Name of the lexicon.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

Name of the lexicon.

*/ inline Lexicon& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

Name of the lexicon.

*/ inline Lexicon& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

Name of the lexicon.

*/ inline Lexicon& WithName(const char* value) { SetName(value); return *this;} private: Aws::String m_content; bool m_contentHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace Polly } // namespace Aws