1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17   class JsonValue;
18   class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace LexModelsV2
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>Defines settings for using an Amazon Polly voice to communicate with a
28    * user.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/VoiceSettings">AWS
30    * API Reference</a></p>
31    */
32   class AWS_LEXMODELSV2_API VoiceSettings
33   {
34   public:
35     VoiceSettings();
36     VoiceSettings(Aws::Utils::Json::JsonView jsonValue);
37     VoiceSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The identifier of the Amazon Polly voice to use.</p>
43      */
GetVoiceId()44     inline const Aws::String& GetVoiceId() const{ return m_voiceId; }
45 
46     /**
47      * <p>The identifier of the Amazon Polly voice to use.</p>
48      */
VoiceIdHasBeenSet()49     inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
50 
51     /**
52      * <p>The identifier of the Amazon Polly voice to use.</p>
53      */
SetVoiceId(const Aws::String & value)54     inline void SetVoiceId(const Aws::String& value) { m_voiceIdHasBeenSet = true; m_voiceId = value; }
55 
56     /**
57      * <p>The identifier of the Amazon Polly voice to use.</p>
58      */
SetVoiceId(Aws::String && value)59     inline void SetVoiceId(Aws::String&& value) { m_voiceIdHasBeenSet = true; m_voiceId = std::move(value); }
60 
61     /**
62      * <p>The identifier of the Amazon Polly voice to use.</p>
63      */
SetVoiceId(const char * value)64     inline void SetVoiceId(const char* value) { m_voiceIdHasBeenSet = true; m_voiceId.assign(value); }
65 
66     /**
67      * <p>The identifier of the Amazon Polly voice to use.</p>
68      */
WithVoiceId(const Aws::String & value)69     inline VoiceSettings& WithVoiceId(const Aws::String& value) { SetVoiceId(value); return *this;}
70 
71     /**
72      * <p>The identifier of the Amazon Polly voice to use.</p>
73      */
WithVoiceId(Aws::String && value)74     inline VoiceSettings& WithVoiceId(Aws::String&& value) { SetVoiceId(std::move(value)); return *this;}
75 
76     /**
77      * <p>The identifier of the Amazon Polly voice to use.</p>
78      */
WithVoiceId(const char * value)79     inline VoiceSettings& WithVoiceId(const char* value) { SetVoiceId(value); return *this;}
80 
81   private:
82 
83     Aws::String m_voiceId;
84     bool m_voiceIdHasBeenSet;
85   };
86 
87 } // namespace Model
88 } // namespace LexModelsV2
89 } // namespace Aws
90