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 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Json
14 {
15   class JsonValue;
16   class JsonView;
17 } // namespace Json
18 } // namespace Utils
19 namespace LexModelsV2
20 {
21 namespace Model
22 {
23 
24   /**
25    * <p>Settings that determine the Lambda function that Amazon Lex uses for
26    * processing user responses.</p><p><h3>See Also:</h3>   <a
27    * href="http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DialogCodeHookSettings">AWS
28    * API Reference</a></p>
29    */
30   class AWS_LEXMODELSV2_API DialogCodeHookSettings
31   {
32   public:
33     DialogCodeHookSettings();
34     DialogCodeHookSettings(Aws::Utils::Json::JsonView jsonValue);
35     DialogCodeHookSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
36     Aws::Utils::Json::JsonValue Jsonize() const;
37 
38 
39     /**
40      * <p>Enables the dialog code hook so that it processes user requests.</p>
41      */
GetEnabled()42     inline bool GetEnabled() const{ return m_enabled; }
43 
44     /**
45      * <p>Enables the dialog code hook so that it processes user requests.</p>
46      */
EnabledHasBeenSet()47     inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
48 
49     /**
50      * <p>Enables the dialog code hook so that it processes user requests.</p>
51      */
SetEnabled(bool value)52     inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
53 
54     /**
55      * <p>Enables the dialog code hook so that it processes user requests.</p>
56      */
WithEnabled(bool value)57     inline DialogCodeHookSettings& WithEnabled(bool value) { SetEnabled(value); return *this;}
58 
59   private:
60 
61     bool m_enabled;
62     bool m_enabledHasBeenSet;
63   };
64 
65 } // namespace Model
66 } // namespace LexModelsV2
67 } // namespace Aws
68