AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
BotAliasLocaleSettings.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/CodeHookSpecification.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LexModelsV2 {
20namespace Model {
21
30 public:
31 AWS_LEXMODELSV2_API BotAliasLocaleSettings() = default;
32 AWS_LEXMODELSV2_API BotAliasLocaleSettings(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline bool GetEnabled() const { return m_enabled; }
42 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
43 inline void SetEnabled(bool value) {
44 m_enabledHasBeenSet = true;
45 m_enabled = value;
46 }
47 inline BotAliasLocaleSettings& WithEnabled(bool value) {
48 SetEnabled(value);
49 return *this;
50 }
52
54
57 inline const CodeHookSpecification& GetCodeHookSpecification() const { return m_codeHookSpecification; }
58 inline bool CodeHookSpecificationHasBeenSet() const { return m_codeHookSpecificationHasBeenSet; }
59 template <typename CodeHookSpecificationT = CodeHookSpecification>
60 void SetCodeHookSpecification(CodeHookSpecificationT&& value) {
61 m_codeHookSpecificationHasBeenSet = true;
62 m_codeHookSpecification = std::forward<CodeHookSpecificationT>(value);
63 }
64 template <typename CodeHookSpecificationT = CodeHookSpecification>
65 BotAliasLocaleSettings& WithCodeHookSpecification(CodeHookSpecificationT&& value) {
66 SetCodeHookSpecification(std::forward<CodeHookSpecificationT>(value));
67 return *this;
68 }
70 private:
71 bool m_enabled{false};
72
73 CodeHookSpecification m_codeHookSpecification;
74 bool m_enabledHasBeenSet = false;
75 bool m_codeHookSpecificationHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace LexModelsV2
80} // namespace Aws
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
BotAliasLocaleSettings & WithCodeHookSpecification(CodeHookSpecificationT &&value)
void SetCodeHookSpecification(CodeHookSpecificationT &&value)
BotAliasLocaleSettings & WithEnabled(bool value)
AWS_LEXMODELSV2_API BotAliasLocaleSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API BotAliasLocaleSettings()=default
AWS_LEXMODELSV2_API BotAliasLocaleSettings(Aws::Utils::Json::JsonView jsonValue)
const CodeHookSpecification & GetCodeHookSpecification() const
Aws::Utils::Json::JsonValue JsonValue