AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLogDriver(const Aws::String& value) { m_logDriverHasBeenSet = true; m_logDriver = value; }
48 inline void SetLogDriver(Aws::String&& value) { m_logDriverHasBeenSet = true; m_logDriver = std::move(value); }
49 inline void SetLogDriver(const char* value) { m_logDriverHasBeenSet = true; m_logDriver.assign(value); }
50 inline LogConfiguration& WithLogDriver(const Aws::String& value) { SetLogDriver(value); return *this;}
51 inline LogConfiguration& WithLogDriver(Aws::String&& value) { SetLogDriver(std::move(value)); return *this;}
52 inline LogConfiguration& WithLogDriver(const char* value) { SetLogDriver(value); return *this;}
54
56
59 inline const Aws::Map<Aws::String, Aws::String>& GetOptions() const{ return m_options; }
60 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
61 inline void SetOptions(const Aws::Map<Aws::String, Aws::String>& value) { m_optionsHasBeenSet = true; m_options = value; }
62 inline void SetOptions(Aws::Map<Aws::String, Aws::String>&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
63 inline LogConfiguration& WithOptions(const Aws::Map<Aws::String, Aws::String>& value) { SetOptions(value); return *this;}
64 inline LogConfiguration& WithOptions(Aws::Map<Aws::String, Aws::String>&& value) { SetOptions(std::move(value)); return *this;}
65 inline LogConfiguration& AddOptions(const Aws::String& key, const Aws::String& value) { m_optionsHasBeenSet = true; m_options.emplace(key, value); return *this; }
66 inline LogConfiguration& AddOptions(Aws::String&& key, const Aws::String& value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), value); return *this; }
67 inline LogConfiguration& AddOptions(const Aws::String& key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options.emplace(key, std::move(value)); return *this; }
68 inline LogConfiguration& AddOptions(Aws::String&& key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), std::move(value)); return *this; }
69 inline LogConfiguration& AddOptions(const char* key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options.emplace(key, std::move(value)); return *this; }
70 inline LogConfiguration& AddOptions(Aws::String&& key, const char* value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), value); return *this; }
71 inline LogConfiguration& AddOptions(const char* key, const char* value) { m_optionsHasBeenSet = true; m_options.emplace(key, value); return *this; }
73
75
78 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
79 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
80 inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
81 inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
83 inline LogConfiguration& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
84 inline LogConfiguration& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
85 inline LogConfiguration& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
86 inline LogConfiguration& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
87 inline LogConfiguration& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
88 inline LogConfiguration& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
89 inline LogConfiguration& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
90 inline LogConfiguration& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
92
94
97 inline const Aws::String& GetError() const{ return m_error; }
98 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
99 inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; }
100 inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
101 inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); }
102 inline LogConfiguration& WithError(const Aws::String& value) { SetError(value); return *this;}
103 inline LogConfiguration& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;}
104 inline LogConfiguration& WithError(const char* value) { SetError(value); return *this;}
106 private:
107
108 Aws::String m_logDriver;
109 bool m_logDriverHasBeenSet = false;
110
112 bool m_optionsHasBeenSet = false;
113
115 bool m_parametersHasBeenSet = false;
116
117 Aws::String m_error;
118 bool m_errorHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace deadline
123} // namespace Aws
void SetLogDriver(Aws::String &&value)
LogConfiguration & WithError(const Aws::String &value)
LogConfiguration & AddOptions(const char *key, Aws::String &&value)
LogConfiguration & AddParameters(const Aws::String &key, const Aws::String &value)
LogConfiguration & AddOptions(Aws::String &&key, const char *value)
void SetLogDriver(const Aws::String &value)
AWS_DEADLINE_API LogConfiguration(Aws::Utils::Json::JsonView jsonValue)
LogConfiguration & AddOptions(const Aws::String &key, Aws::String &&value)
LogConfiguration & WithError(Aws::String &&value)
LogConfiguration & AddOptions(const Aws::String &key, const Aws::String &value)
void SetError(const Aws::String &value)
LogConfiguration & AddOptions(Aws::String &&key, Aws::String &&value)
LogConfiguration & AddParameters(Aws::String &&key, Aws::String &&value)
void SetOptions(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetError() const
LogConfiguration & AddParameters(const char *key, Aws::String &&value)
LogConfiguration & WithLogDriver(Aws::String &&value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
LogConfiguration & AddOptions(const char *key, const char *value)
LogConfiguration & AddParameters(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetOptions() const
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
LogConfiguration & AddOptions(Aws::String &&key, const Aws::String &value)
const Aws::String & GetLogDriver() const
LogConfiguration & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
LogConfiguration & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
LogConfiguration & WithError(const char *value)
LogConfiguration & AddParameters(Aws::String &&key, const Aws::String &value)
LogConfiguration & AddParameters(const Aws::String &key, Aws::String &&value)
LogConfiguration & WithLogDriver(const char *value)
LogConfiguration & WithLogDriver(const Aws::String &value)
LogConfiguration & WithOptions(const Aws::Map< Aws::String, Aws::String > &value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEADLINE_API LogConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
LogConfiguration & AddParameters(const char *key, const char *value)
LogConfiguration & WithOptions(Aws::Map< Aws::String, Aws::String > &&value)
void SetOptions(const Aws::Map< Aws::String, Aws::String > &value)
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