AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DialogCodeHookInvocationSetting.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lexv2-models/model/PostDialogCodeHookInvocationSpecification.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LexModelsV2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LEXMODELSV2_API DialogCodeHookInvocationSetting() = default;
39 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline bool GetEnableCodeHookInvocation() const { return m_enableCodeHookInvocation; }
47 inline bool EnableCodeHookInvocationHasBeenSet() const { return m_enableCodeHookInvocationHasBeenSet; }
48 inline void SetEnableCodeHookInvocation(bool value) { m_enableCodeHookInvocationHasBeenSet = true; m_enableCodeHookInvocation = value; }
51
53
57 inline bool GetActive() const { return m_active; }
58 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
59 inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
60 inline DialogCodeHookInvocationSetting& WithActive(bool value) { SetActive(value); return *this;}
62
64
68 inline const Aws::String& GetInvocationLabel() const { return m_invocationLabel; }
69 inline bool InvocationLabelHasBeenSet() const { return m_invocationLabelHasBeenSet; }
70 template<typename InvocationLabelT = Aws::String>
71 void SetInvocationLabel(InvocationLabelT&& value) { m_invocationLabelHasBeenSet = true; m_invocationLabel = std::forward<InvocationLabelT>(value); }
72 template<typename InvocationLabelT = Aws::String>
73 DialogCodeHookInvocationSetting& WithInvocationLabel(InvocationLabelT&& value) { SetInvocationLabel(std::forward<InvocationLabelT>(value)); return *this;}
75
77
81 inline const PostDialogCodeHookInvocationSpecification& GetPostCodeHookSpecification() const { return m_postCodeHookSpecification; }
82 inline bool PostCodeHookSpecificationHasBeenSet() const { return m_postCodeHookSpecificationHasBeenSet; }
83 template<typename PostCodeHookSpecificationT = PostDialogCodeHookInvocationSpecification>
84 void SetPostCodeHookSpecification(PostCodeHookSpecificationT&& value) { m_postCodeHookSpecificationHasBeenSet = true; m_postCodeHookSpecification = std::forward<PostCodeHookSpecificationT>(value); }
85 template<typename PostCodeHookSpecificationT = PostDialogCodeHookInvocationSpecification>
86 DialogCodeHookInvocationSetting& WithPostCodeHookSpecification(PostCodeHookSpecificationT&& value) { SetPostCodeHookSpecification(std::forward<PostCodeHookSpecificationT>(value)); return *this;}
88 private:
89
90 bool m_enableCodeHookInvocation{false};
91 bool m_enableCodeHookInvocationHasBeenSet = false;
92
93 bool m_active{false};
94 bool m_activeHasBeenSet = false;
95
96 Aws::String m_invocationLabel;
97 bool m_invocationLabelHasBeenSet = false;
98
99 PostDialogCodeHookInvocationSpecification m_postCodeHookSpecification;
100 bool m_postCodeHookSpecificationHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace LexModelsV2
105} // namespace Aws
AWS_LEXMODELSV2_API DialogCodeHookInvocationSetting()=default
AWS_LEXMODELSV2_API DialogCodeHookInvocationSetting(Aws::Utils::Json::JsonView jsonValue)
const PostDialogCodeHookInvocationSpecification & GetPostCodeHookSpecification() const
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
DialogCodeHookInvocationSetting & WithInvocationLabel(InvocationLabelT &&value)
DialogCodeHookInvocationSetting & WithEnableCodeHookInvocation(bool value)
DialogCodeHookInvocationSetting & WithPostCodeHookSpecification(PostCodeHookSpecificationT &&value)
AWS_LEXMODELSV2_API DialogCodeHookInvocationSetting & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue