/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Polly { namespace Model { /** */ class PutLexiconRequest : public PollyRequest { public: AWS_POLLY_API PutLexiconRequest(); // 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 "PutLexicon"; } AWS_POLLY_API Aws::String SerializePayload() const override; /** *

Name of the lexicon. The name must follow the regular express format * [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric string up * to 20 characters long.

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

Name of the lexicon. The name must follow the regular express format * [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric string up * to 20 characters long.

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

Name of the lexicon. The name must follow the regular express format * [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric string up * to 20 characters long.

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

Name of the lexicon. The name must follow the regular express format * [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric string up * to 20 characters long.

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

Name of the lexicon. The name must follow the regular express format * [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric string up * to 20 characters long.

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

Name of the lexicon. The name must follow the regular express format * [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric string up * to 20 characters long.

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

Name of the lexicon. The name must follow the regular express format * [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric string up * to 20 characters long.

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

Name of the lexicon. The name must follow the regular express format * [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric string up * to 20 characters long.

*/ inline PutLexiconRequest& WithName(const char* value) { SetName(value); return *this;} /** *

Content of the PLS lexicon as string data.

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

Content of the PLS lexicon as string data.

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

Content of the PLS lexicon as string data.

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

Content of the PLS lexicon as string data.

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

Content of the PLS lexicon as string data.

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

Content of the PLS lexicon as string data.

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

Content of the PLS lexicon as string data.

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

Content of the PLS lexicon as string data.

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