AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
TextLogSetting.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/TextLogDestination.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
29 public:
30 AWS_LEXMODELSV2_API TextLogSetting() = default;
31 AWS_LEXMODELSV2_API TextLogSetting(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LEXMODELSV2_API TextLogSetting& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline bool GetEnabled() const { return m_enabled; }
40 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
41 inline void SetEnabled(bool value) {
42 m_enabledHasBeenSet = true;
43 m_enabled = value;
44 }
45 inline TextLogSetting& WithEnabled(bool value) {
46 SetEnabled(value);
47 return *this;
48 }
50
52
53 inline const TextLogDestination& GetDestination() const { return m_destination; }
54 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
55 template <typename DestinationT = TextLogDestination>
56 void SetDestination(DestinationT&& value) {
57 m_destinationHasBeenSet = true;
58 m_destination = std::forward<DestinationT>(value);
59 }
60 template <typename DestinationT = TextLogDestination>
61 TextLogSetting& WithDestination(DestinationT&& value) {
62 SetDestination(std::forward<DestinationT>(value));
63 return *this;
64 }
66
68
71 inline bool GetSelectiveLoggingEnabled() const { return m_selectiveLoggingEnabled; }
72 inline bool SelectiveLoggingEnabledHasBeenSet() const { return m_selectiveLoggingEnabledHasBeenSet; }
73 inline void SetSelectiveLoggingEnabled(bool value) {
74 m_selectiveLoggingEnabledHasBeenSet = true;
75 m_selectiveLoggingEnabled = value;
76 }
79 return *this;
80 }
82 private:
83 bool m_enabled{false};
84
85 TextLogDestination m_destination;
86
87 bool m_selectiveLoggingEnabled{false};
88 bool m_enabledHasBeenSet = false;
89 bool m_destinationHasBeenSet = false;
90 bool m_selectiveLoggingEnabledHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace LexModelsV2
95} // namespace Aws
TextLogSetting & WithSelectiveLoggingEnabled(bool value)
AWS_LEXMODELSV2_API TextLogSetting()=default
AWS_LEXMODELSV2_API TextLogSetting(Aws::Utils::Json::JsonView jsonValue)
const TextLogDestination & GetDestination() const
TextLogSetting & WithDestination(DestinationT &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDestination(DestinationT &&value)
TextLogSetting & WithEnabled(bool value)
AWS_LEXMODELSV2_API TextLogSetting & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue