AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DialogCodeHookInvocationSetting.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
9#include <aws/lexv2-models/model/PostDialogCodeHookInvocationSpecification.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LexModelsV2 {
21namespace Model {
22
30 public:
31 AWS_LEXMODELSV2_API DialogCodeHookInvocationSetting() = default;
34 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline bool GetEnableCodeHookInvocation() const { return m_enableCodeHookInvocation; }
41 inline bool EnableCodeHookInvocationHasBeenSet() const { return m_enableCodeHookInvocationHasBeenSet; }
42 inline void SetEnableCodeHookInvocation(bool value) {
43 m_enableCodeHookInvocationHasBeenSet = true;
44 m_enableCodeHookInvocation = value;
45 }
48 return *this;
49 }
51
53
57 inline bool GetActive() const { return m_active; }
58 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
59 inline void SetActive(bool value) {
60 m_activeHasBeenSet = true;
61 m_active = value;
62 }
64 SetActive(value);
65 return *this;
66 }
68
70
74 inline const Aws::String& GetInvocationLabel() const { return m_invocationLabel; }
75 inline bool InvocationLabelHasBeenSet() const { return m_invocationLabelHasBeenSet; }
76 template <typename InvocationLabelT = Aws::String>
77 void SetInvocationLabel(InvocationLabelT&& value) {
78 m_invocationLabelHasBeenSet = true;
79 m_invocationLabel = std::forward<InvocationLabelT>(value);
80 }
81 template <typename InvocationLabelT = Aws::String>
83 SetInvocationLabel(std::forward<InvocationLabelT>(value));
84 return *this;
85 }
87
89
93 inline const PostDialogCodeHookInvocationSpecification& GetPostCodeHookSpecification() const { return m_postCodeHookSpecification; }
94 inline bool PostCodeHookSpecificationHasBeenSet() const { return m_postCodeHookSpecificationHasBeenSet; }
95 template <typename PostCodeHookSpecificationT = PostDialogCodeHookInvocationSpecification>
96 void SetPostCodeHookSpecification(PostCodeHookSpecificationT&& value) {
97 m_postCodeHookSpecificationHasBeenSet = true;
98 m_postCodeHookSpecification = std::forward<PostCodeHookSpecificationT>(value);
99 }
100 template <typename PostCodeHookSpecificationT = PostDialogCodeHookInvocationSpecification>
102 SetPostCodeHookSpecification(std::forward<PostCodeHookSpecificationT>(value));
103 return *this;
104 }
106 private:
107 bool m_enableCodeHookInvocation{false};
108
109 bool m_active{false};
110
111 Aws::String m_invocationLabel;
112
113 PostDialogCodeHookInvocationSpecification m_postCodeHookSpecification;
114 bool m_enableCodeHookInvocationHasBeenSet = false;
115 bool m_activeHasBeenSet = false;
116 bool m_invocationLabelHasBeenSet = false;
117 bool m_postCodeHookSpecificationHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace LexModelsV2
122} // 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