AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
LoggingConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/states/SFN_EXPORTS.h>
9#include <aws/states/model/LogDestination.h>
10#include <aws/states/model/LogLevel.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SFN {
22namespace Model {
23
31 public:
32 AWS_SFN_API LoggingConfiguration() = default;
36
38
41 inline LogLevel GetLevel() const { return m_level; }
42 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
43 inline void SetLevel(LogLevel value) {
44 m_levelHasBeenSet = true;
45 m_level = value;
46 }
48 SetLevel(value);
49 return *this;
50 }
52
54
58 inline bool GetIncludeExecutionData() const { return m_includeExecutionData; }
59 inline bool IncludeExecutionDataHasBeenSet() const { return m_includeExecutionDataHasBeenSet; }
60 inline void SetIncludeExecutionData(bool value) {
61 m_includeExecutionDataHasBeenSet = true;
62 m_includeExecutionData = value;
63 }
66 return *this;
67 }
69
71
76 inline const Aws::Vector<LogDestination>& GetDestinations() const { return m_destinations; }
77 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
78 template <typename DestinationsT = Aws::Vector<LogDestination>>
79 void SetDestinations(DestinationsT&& value) {
80 m_destinationsHasBeenSet = true;
81 m_destinations = std::forward<DestinationsT>(value);
82 }
83 template <typename DestinationsT = Aws::Vector<LogDestination>>
84 LoggingConfiguration& WithDestinations(DestinationsT&& value) {
85 SetDestinations(std::forward<DestinationsT>(value));
86 return *this;
87 }
88 template <typename DestinationsT = LogDestination>
89 LoggingConfiguration& AddDestinations(DestinationsT&& value) {
90 m_destinationsHasBeenSet = true;
91 m_destinations.emplace_back(std::forward<DestinationsT>(value));
92 return *this;
93 }
95 private:
97
98 bool m_includeExecutionData{false};
99
100 Aws::Vector<LogDestination> m_destinations;
101 bool m_levelHasBeenSet = false;
102 bool m_includeExecutionDataHasBeenSet = false;
103 bool m_destinationsHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace SFN
108} // namespace Aws
AWS_SFN_API LoggingConfiguration()=default
LoggingConfiguration & WithIncludeExecutionData(bool value)
AWS_SFN_API LoggingConfiguration(Aws::Utils::Json::JsonView jsonValue)
LoggingConfiguration & WithLevel(LogLevel value)
const Aws::Vector< LogDestination > & GetDestinations() const
AWS_SFN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SFN_API LoggingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
LoggingConfiguration & AddDestinations(DestinationsT &&value)
LoggingConfiguration & WithDestinations(DestinationsT &&value)
void SetDestinations(DestinationsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue