AWS SDK for C++

AWS SDK for C++ Version 1.11.747

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