AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LoggingConfiguration.h
1
6#pragma once
7#include <aws/states/SFN_EXPORTS.h>
8#include <aws/states/model/LogLevel.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/states/model/LogDestination.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SFN
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SFN_API LoggingConfiguration() = default;
41
42
44
47 inline LogLevel GetLevel() const { return m_level; }
48 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
49 inline void SetLevel(LogLevel value) { m_levelHasBeenSet = true; m_level = value; }
50 inline LoggingConfiguration& WithLevel(LogLevel value) { SetLevel(value); return *this;}
52
54
58 inline bool GetIncludeExecutionData() const { return m_includeExecutionData; }
59 inline bool IncludeExecutionDataHasBeenSet() const { return m_includeExecutionDataHasBeenSet; }
60 inline void SetIncludeExecutionData(bool value) { m_includeExecutionDataHasBeenSet = true; m_includeExecutionData = value; }
61 inline LoggingConfiguration& WithIncludeExecutionData(bool value) { SetIncludeExecutionData(value); return *this;}
63
65
70 inline const Aws::Vector<LogDestination>& GetDestinations() const { return m_destinations; }
71 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
72 template<typename DestinationsT = Aws::Vector<LogDestination>>
73 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
74 template<typename DestinationsT = Aws::Vector<LogDestination>>
75 LoggingConfiguration& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
76 template<typename DestinationsT = LogDestination>
77 LoggingConfiguration& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
79 private:
80
82 bool m_levelHasBeenSet = false;
83
84 bool m_includeExecutionData{false};
85 bool m_includeExecutionDataHasBeenSet = false;
86
87 Aws::Vector<LogDestination> m_destinations;
88 bool m_destinationsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace SFN
93} // 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