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>Provides the bot locale parameters required for exporting a bot
28    * locale.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BotLocaleExportSpecification">AWS
30    * API Reference</a></p>
31    */
32   class AWS_LEXMODELSV2_API BotLocaleExportSpecification
33   {
34   public:
35     BotLocaleExportSpecification();
36     BotLocaleExportSpecification(Aws::Utils::Json::JsonView jsonValue);
37     BotLocaleExportSpecification& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The identifier of the bot to create the locale for.</p>
43      */
GetBotId()44     inline const Aws::String& GetBotId() const{ return m_botId; }
45 
46     /**
47      * <p>The identifier of the bot to create the locale for.</p>
48      */
BotIdHasBeenSet()49     inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
50 
51     /**
52      * <p>The identifier of the bot to create the locale for.</p>
53      */
SetBotId(const Aws::String & value)54     inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; }
55 
56     /**
57      * <p>The identifier of the bot to create the locale for.</p>
58      */
SetBotId(Aws::String && value)59     inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); }
60 
61     /**
62      * <p>The identifier of the bot to create the locale for.</p>
63      */
SetBotId(const char * value)64     inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); }
65 
66     /**
67      * <p>The identifier of the bot to create the locale for.</p>
68      */
WithBotId(const Aws::String & value)69     inline BotLocaleExportSpecification& WithBotId(const Aws::String& value) { SetBotId(value); return *this;}
70 
71     /**
72      * <p>The identifier of the bot to create the locale for.</p>
73      */
WithBotId(Aws::String && value)74     inline BotLocaleExportSpecification& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;}
75 
76     /**
77      * <p>The identifier of the bot to create the locale for.</p>
78      */
WithBotId(const char * value)79     inline BotLocaleExportSpecification& WithBotId(const char* value) { SetBotId(value); return *this;}
80 
81 
82     /**
83      * <p>The version of the bot to export.</p>
84      */
GetBotVersion()85     inline const Aws::String& GetBotVersion() const{ return m_botVersion; }
86 
87     /**
88      * <p>The version of the bot to export.</p>
89      */
BotVersionHasBeenSet()90     inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
91 
92     /**
93      * <p>The version of the bot to export.</p>
94      */
SetBotVersion(const Aws::String & value)95     inline void SetBotVersion(const Aws::String& value) { m_botVersionHasBeenSet = true; m_botVersion = value; }
96 
97     /**
98      * <p>The version of the bot to export.</p>
99      */
SetBotVersion(Aws::String && value)100     inline void SetBotVersion(Aws::String&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::move(value); }
101 
102     /**
103      * <p>The version of the bot to export.</p>
104      */
SetBotVersion(const char * value)105     inline void SetBotVersion(const char* value) { m_botVersionHasBeenSet = true; m_botVersion.assign(value); }
106 
107     /**
108      * <p>The version of the bot to export.</p>
109      */
WithBotVersion(const Aws::String & value)110     inline BotLocaleExportSpecification& WithBotVersion(const Aws::String& value) { SetBotVersion(value); return *this;}
111 
112     /**
113      * <p>The version of the bot to export.</p>
114      */
WithBotVersion(Aws::String && value)115     inline BotLocaleExportSpecification& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;}
116 
117     /**
118      * <p>The version of the bot to export.</p>
119      */
WithBotVersion(const char * value)120     inline BotLocaleExportSpecification& WithBotVersion(const char* value) { SetBotVersion(value); return *this;}
121 
122 
123     /**
124      * <p>The identifier of the language and locale to export. The string must match
125      * one of the locales in the bot.</p>
126      */
GetLocaleId()127     inline const Aws::String& GetLocaleId() const{ return m_localeId; }
128 
129     /**
130      * <p>The identifier of the language and locale to export. The string must match
131      * one of the locales in the bot.</p>
132      */
LocaleIdHasBeenSet()133     inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
134 
135     /**
136      * <p>The identifier of the language and locale to export. The string must match
137      * one of the locales in the bot.</p>
138      */
SetLocaleId(const Aws::String & value)139     inline void SetLocaleId(const Aws::String& value) { m_localeIdHasBeenSet = true; m_localeId = value; }
140 
141     /**
142      * <p>The identifier of the language and locale to export. The string must match
143      * one of the locales in the bot.</p>
144      */
SetLocaleId(Aws::String && value)145     inline void SetLocaleId(Aws::String&& value) { m_localeIdHasBeenSet = true; m_localeId = std::move(value); }
146 
147     /**
148      * <p>The identifier of the language and locale to export. The string must match
149      * one of the locales in the bot.</p>
150      */
SetLocaleId(const char * value)151     inline void SetLocaleId(const char* value) { m_localeIdHasBeenSet = true; m_localeId.assign(value); }
152 
153     /**
154      * <p>The identifier of the language and locale to export. The string must match
155      * one of the locales in the bot.</p>
156      */
WithLocaleId(const Aws::String & value)157     inline BotLocaleExportSpecification& WithLocaleId(const Aws::String& value) { SetLocaleId(value); return *this;}
158 
159     /**
160      * <p>The identifier of the language and locale to export. The string must match
161      * one of the locales in the bot.</p>
162      */
WithLocaleId(Aws::String && value)163     inline BotLocaleExportSpecification& WithLocaleId(Aws::String&& value) { SetLocaleId(std::move(value)); return *this;}
164 
165     /**
166      * <p>The identifier of the language and locale to export. The string must match
167      * one of the locales in the bot.</p>
168      */
WithLocaleId(const char * value)169     inline BotLocaleExportSpecification& WithLocaleId(const char* value) { SetLocaleId(value); return *this;}
170 
171   private:
172 
173     Aws::String m_botId;
174     bool m_botIdHasBeenSet;
175 
176     Aws::String m_botVersion;
177     bool m_botVersionHasBeenSet;
178 
179     Aws::String m_localeId;
180     bool m_localeIdHasBeenSet;
181   };
182 
183 } // namespace Model
184 } // namespace LexModelsV2
185 } // namespace Aws
186