AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LogConfiguration.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace deadline
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_DEADLINE_API LogConfiguration() = default;
36 AWS_DEADLINE_API LogConfiguration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetLogDriver() const { return m_logDriver; }
46 inline bool LogDriverHasBeenSet() const { return m_logDriverHasBeenSet; }
47 template<typename LogDriverT = Aws::String>
48 void SetLogDriver(LogDriverT&& value) { m_logDriverHasBeenSet = true; m_logDriver = std::forward<LogDriverT>(value); }
49 template<typename LogDriverT = Aws::String>
50 LogConfiguration& WithLogDriver(LogDriverT&& value) { SetLogDriver(std::forward<LogDriverT>(value)); return *this;}
52
54
57 inline const Aws::Map<Aws::String, Aws::String>& GetOptions() const { return m_options; }
58 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
59 template<typename OptionsT = Aws::Map<Aws::String, Aws::String>>
60 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
61 template<typename OptionsT = Aws::Map<Aws::String, Aws::String>>
62 LogConfiguration& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
63 template<typename OptionsKeyT = Aws::String, typename OptionsValueT = Aws::String>
64 LogConfiguration& AddOptions(OptionsKeyT&& key, OptionsValueT&& value) {
65 m_optionsHasBeenSet = true; m_options.emplace(std::forward<OptionsKeyT>(key), std::forward<OptionsValueT>(value)); return *this;
66 }
68
70
73 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
74 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
75 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
76 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
77 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
78 LogConfiguration& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
79 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
80 LogConfiguration& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
81 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
82 }
84
86
89 inline const Aws::String& GetError() const { return m_error; }
90 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
91 template<typename ErrorT = Aws::String>
92 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
93 template<typename ErrorT = Aws::String>
94 LogConfiguration& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
96 private:
97
98 Aws::String m_logDriver;
99 bool m_logDriverHasBeenSet = false;
100
102 bool m_optionsHasBeenSet = false;
103
105 bool m_parametersHasBeenSet = false;
106
107 Aws::String m_error;
108 bool m_errorHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace deadline
113} // namespace Aws
LogConfiguration & WithParameters(ParametersT &&value)
AWS_DEADLINE_API LogConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API LogConfiguration()=default
const Aws::String & GetError() const
LogConfiguration & AddOptions(OptionsKeyT &&key, OptionsValueT &&value)
void SetParameters(ParametersT &&value)
LogConfiguration & WithLogDriver(LogDriverT &&value)
LogConfiguration & WithOptions(OptionsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetOptions() const
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
const Aws::String & GetLogDriver() const
LogConfiguration & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
LogConfiguration & WithError(ErrorT &&value)
AWS_DEADLINE_API LogConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue