AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
LogConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/Deadline_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace deadline {
21namespace Model {
22
29 public:
30 AWS_DEADLINE_API LogConfiguration() = default;
31 AWS_DEADLINE_API LogConfiguration(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetLogDriver() const { return m_logDriver; }
40 inline bool LogDriverHasBeenSet() const { return m_logDriverHasBeenSet; }
41 template <typename LogDriverT = Aws::String>
42 void SetLogDriver(LogDriverT&& value) {
43 m_logDriverHasBeenSet = true;
44 m_logDriver = std::forward<LogDriverT>(value);
45 }
46 template <typename LogDriverT = Aws::String>
47 LogConfiguration& WithLogDriver(LogDriverT&& value) {
48 SetLogDriver(std::forward<LogDriverT>(value));
49 return *this;
50 }
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) {
61 m_optionsHasBeenSet = true;
62 m_options = std::forward<OptionsT>(value);
63 }
64 template <typename OptionsT = Aws::Map<Aws::String, Aws::String>>
65 LogConfiguration& WithOptions(OptionsT&& value) {
66 SetOptions(std::forward<OptionsT>(value));
67 return *this;
68 }
69 template <typename OptionsKeyT = Aws::String, typename OptionsValueT = Aws::String>
70 LogConfiguration& AddOptions(OptionsKeyT&& key, OptionsValueT&& value) {
71 m_optionsHasBeenSet = true;
72 m_options.emplace(std::forward<OptionsKeyT>(key), std::forward<OptionsValueT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
82 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
83 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
84 void SetParameters(ParametersT&& value) {
85 m_parametersHasBeenSet = true;
86 m_parameters = std::forward<ParametersT>(value);
87 }
88 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
89 LogConfiguration& WithParameters(ParametersT&& value) {
90 SetParameters(std::forward<ParametersT>(value));
91 return *this;
92 }
93 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
94 LogConfiguration& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
95 m_parametersHasBeenSet = true;
96 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetError() const { return m_error; }
106 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
107 template <typename ErrorT = Aws::String>
108 void SetError(ErrorT&& value) {
109 m_errorHasBeenSet = true;
110 m_error = std::forward<ErrorT>(value);
111 }
112 template <typename ErrorT = Aws::String>
113 LogConfiguration& WithError(ErrorT&& value) {
114 SetError(std::forward<ErrorT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_logDriver;
120
122
124
125 Aws::String m_error;
126 bool m_logDriverHasBeenSet = false;
127 bool m_optionsHasBeenSet = false;
128 bool m_parametersHasBeenSet = false;
129 bool m_errorHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace deadline
134} // 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