AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexModelsV2
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_LEXMODELSV2_API BotAliasLocaleSettings() = default;
37 AWS_LEXMODELSV2_API BotAliasLocaleSettings(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline bool GetEnabled() const { return m_enabled; }
48 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
49 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
50 inline BotAliasLocaleSettings& WithEnabled(bool value) { SetEnabled(value); return *this;}
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) { m_codeHookSpecificationHasBeenSet = true; m_codeHookSpecification = std::forward<CodeHookSpecificationT>(value); }
61 template<typename CodeHookSpecificationT = CodeHookSpecification>
62 BotAliasLocaleSettings& WithCodeHookSpecification(CodeHookSpecificationT&& value) { SetCodeHookSpecification(std::forward<CodeHookSpecificationT>(value)); return *this;}
64 private:
65
66 bool m_enabled{false};
67 bool m_enabledHasBeenSet = false;
68
69 CodeHookSpecification m_codeHookSpecification;
70 bool m_codeHookSpecificationHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace LexModelsV2
75} // 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