AWS SDK for C++  1.9.104
AWS SDK for C++
LoggingConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace SFN
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const LogLevel& GetLevel() const{ return m_level; }
47 
51  inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
52 
56  inline void SetLevel(const LogLevel& value) { m_levelHasBeenSet = true; m_level = value; }
57 
61  inline void SetLevel(LogLevel&& value) { m_levelHasBeenSet = true; m_level = std::move(value); }
62 
66  inline LoggingConfiguration& WithLevel(const LogLevel& value) { SetLevel(value); return *this;}
67 
71  inline LoggingConfiguration& WithLevel(LogLevel&& value) { SetLevel(std::move(value)); return *this;}
72 
73 
78  inline bool GetIncludeExecutionData() const{ return m_includeExecutionData; }
79 
84  inline bool IncludeExecutionDataHasBeenSet() const { return m_includeExecutionDataHasBeenSet; }
85 
90  inline void SetIncludeExecutionData(bool value) { m_includeExecutionDataHasBeenSet = true; m_includeExecutionData = value; }
91 
96  inline LoggingConfiguration& WithIncludeExecutionData(bool value) { SetIncludeExecutionData(value); return *this;}
97 
98 
104  inline const Aws::Vector<LogDestination>& GetDestinations() const{ return m_destinations; }
105 
111  inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
112 
118  inline void SetDestinations(const Aws::Vector<LogDestination>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
119 
125  inline void SetDestinations(Aws::Vector<LogDestination>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
126 
132  inline LoggingConfiguration& WithDestinations(const Aws::Vector<LogDestination>& value) { SetDestinations(value); return *this;}
133 
139  inline LoggingConfiguration& WithDestinations(Aws::Vector<LogDestination>&& value) { SetDestinations(std::move(value)); return *this;}
140 
146  inline LoggingConfiguration& AddDestinations(const LogDestination& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
147 
153  inline LoggingConfiguration& AddDestinations(LogDestination&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
154 
155  private:
156 
157  LogLevel m_level;
158  bool m_levelHasBeenSet;
159 
160  bool m_includeExecutionData;
161  bool m_includeExecutionDataHasBeenSet;
162 
163  Aws::Vector<LogDestination> m_destinations;
164  bool m_destinationsHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace SFN
169 } // namespace Aws
Aws::SFN::Model::LoggingConfiguration::LoggingConfiguration
LoggingConfiguration()
Aws::SFN::Model::LoggingConfiguration::AddDestinations
LoggingConfiguration & AddDestinations(LogDestination &&value)
Definition: LoggingConfiguration.h:153
LogDestination.h
Aws::SFN::Model::LoggingConfiguration::WithLevel
LoggingConfiguration & WithLevel(const LogLevel &value)
Definition: LoggingConfiguration.h:66
Aws::SFN::Model::LoggingConfiguration::WithIncludeExecutionData
LoggingConfiguration & WithIncludeExecutionData(bool value)
Definition: LoggingConfiguration.h:96
Aws::SFN::Model::LoggingConfiguration::SetLevel
void SetLevel(LogLevel &&value)
Definition: LoggingConfiguration.h:61
Aws::SFN::Model::LoggingConfiguration::GetIncludeExecutionData
bool GetIncludeExecutionData() const
Definition: LoggingConfiguration.h:78
Aws::SFN::Model::LoggingConfiguration::DestinationsHasBeenSet
bool DestinationsHasBeenSet() const
Definition: LoggingConfiguration.h:111
Aws::SFN::Model::LogLevel
LogLevel
Definition: LogLevel.h:17
Aws::SFN::Model::LoggingConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_SFN_API
#define AWS_SFN_API
Definition: SFN_EXPORTS.h:28
SFN_EXPORTS.h
AWSVector.h
Aws::SFN::Model::LoggingConfiguration::GetDestinations
const Aws::Vector< LogDestination > & GetDestinations() const
Definition: LoggingConfiguration.h:104
Aws::SFN::Model::LoggingConfiguration::SetDestinations
void SetDestinations(Aws::Vector< LogDestination > &&value)
Definition: LoggingConfiguration.h:125
Aws::SFN::Model::LoggingConfiguration::WithLevel
LoggingConfiguration & WithLevel(LogLevel &&value)
Definition: LoggingConfiguration.h:71
Aws::SFN::Model::LoggingConfiguration::SetIncludeExecutionData
void SetIncludeExecutionData(bool value)
Definition: LoggingConfiguration.h:90
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
LogLevel.h
Aws::SFN::Model::LogDestination
Definition: LogDestination.h:32
Aws::SFN::Model::LoggingConfiguration::WithDestinations
LoggingConfiguration & WithDestinations(const Aws::Vector< LogDestination > &value)
Definition: LoggingConfiguration.h:132
Aws::SFN::Model::LoggingConfiguration::SetDestinations
void SetDestinations(const Aws::Vector< LogDestination > &value)
Definition: LoggingConfiguration.h:118
Aws::SFN::Model::LoggingConfiguration::LoggingConfiguration
LoggingConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::SFN::Model::LoggingConfiguration
Definition: LoggingConfiguration.h:35
Aws
Definition: AccessManagementClient.h:15
Aws::SFN::Model::LoggingConfiguration::WithDestinations
LoggingConfiguration & WithDestinations(Aws::Vector< LogDestination > &&value)
Definition: LoggingConfiguration.h:139
Aws::SFN::Model::LoggingConfiguration::SetLevel
void SetLevel(const LogLevel &value)
Definition: LoggingConfiguration.h:56
Aws::SFN::Model::LoggingConfiguration::LevelHasBeenSet
bool LevelHasBeenSet() const
Definition: LoggingConfiguration.h:51
Aws::SFN::Model::LoggingConfiguration::GetLevel
const LogLevel & GetLevel() const
Definition: LoggingConfiguration.h:46
Aws::SFN::Model::LoggingConfiguration::operator=
LoggingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SFN::Model::LoggingConfiguration::AddDestinations
LoggingConfiguration & AddDestinations(const LogDestination &value)
Definition: LoggingConfiguration.h:146
Aws::SFN::Model::LoggingConfiguration::IncludeExecutionDataHasBeenSet
bool IncludeExecutionDataHasBeenSet() const
Definition: LoggingConfiguration.h:84