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>Specifies the default value to use when a user doesn't provide a value for a
28    * slot.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/SlotDefaultValue">AWS
30    * API Reference</a></p>
31    */
32   class AWS_LEXMODELSV2_API SlotDefaultValue
33   {
34   public:
35     SlotDefaultValue();
36     SlotDefaultValue(Aws::Utils::Json::JsonView jsonValue);
37     SlotDefaultValue& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The default value to use when a user doesn't provide a value for a slot.</p>
43      */
GetDefaultValue()44     inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
45 
46     /**
47      * <p>The default value to use when a user doesn't provide a value for a slot.</p>
48      */
DefaultValueHasBeenSet()49     inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
50 
51     /**
52      * <p>The default value to use when a user doesn't provide a value for a slot.</p>
53      */
SetDefaultValue(const Aws::String & value)54     inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
55 
56     /**
57      * <p>The default value to use when a user doesn't provide a value for a slot.</p>
58      */
SetDefaultValue(Aws::String && value)59     inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
60 
61     /**
62      * <p>The default value to use when a user doesn't provide a value for a slot.</p>
63      */
SetDefaultValue(const char * value)64     inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
65 
66     /**
67      * <p>The default value to use when a user doesn't provide a value for a slot.</p>
68      */
WithDefaultValue(const Aws::String & value)69     inline SlotDefaultValue& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
70 
71     /**
72      * <p>The default value to use when a user doesn't provide a value for a slot.</p>
73      */
WithDefaultValue(Aws::String && value)74     inline SlotDefaultValue& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
75 
76     /**
77      * <p>The default value to use when a user doesn't provide a value for a slot.</p>
78      */
WithDefaultValue(const char * value)79     inline SlotDefaultValue& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
80 
81   private:
82 
83     Aws::String m_defaultValue;
84     bool m_defaultValueHasBeenSet;
85   };
86 
87 } // namespace Model
88 } // namespace LexModelsV2
89 } // namespace Aws
90