AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
LogConfiguration.h
Go to the documentation of this file.
1
6#pragma once
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ECS
26{
27namespace Model
28{
29
66 {
67 public:
72
73
96 inline const LogDriver& GetLogDriver() const{ return m_logDriver; }
97
120 inline bool LogDriverHasBeenSet() const { return m_logDriverHasBeenSet; }
121
144 inline void SetLogDriver(const LogDriver& value) { m_logDriverHasBeenSet = true; m_logDriver = value; }
145
168 inline void SetLogDriver(LogDriver&& value) { m_logDriverHasBeenSet = true; m_logDriver = std::move(value); }
169
192 inline LogConfiguration& WithLogDriver(const LogDriver& value) { SetLogDriver(value); return *this;}
193
216 inline LogConfiguration& WithLogDriver(LogDriver&& value) { SetLogDriver(std::move(value)); return *this;}
217
218
226 inline const Aws::Map<Aws::String, Aws::String>& GetOptions() const{ return m_options; }
227
235 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
236
244 inline void SetOptions(const Aws::Map<Aws::String, Aws::String>& value) { m_optionsHasBeenSet = true; m_options = value; }
245
253 inline void SetOptions(Aws::Map<Aws::String, Aws::String>&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
254
262 inline LogConfiguration& WithOptions(const Aws::Map<Aws::String, Aws::String>& value) { SetOptions(value); return *this;}
263
271 inline LogConfiguration& WithOptions(Aws::Map<Aws::String, Aws::String>&& value) { SetOptions(std::move(value)); return *this;}
272
280 inline LogConfiguration& AddOptions(const Aws::String& key, const Aws::String& value) { m_optionsHasBeenSet = true; m_options.emplace(key, value); return *this; }
281
289 inline LogConfiguration& AddOptions(Aws::String&& key, const Aws::String& value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), value); return *this; }
290
298 inline LogConfiguration& AddOptions(const Aws::String& key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options.emplace(key, std::move(value)); return *this; }
299
307 inline LogConfiguration& AddOptions(Aws::String&& key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), std::move(value)); return *this; }
308
316 inline LogConfiguration& AddOptions(const char* key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options.emplace(key, std::move(value)); return *this; }
317
325 inline LogConfiguration& AddOptions(Aws::String&& key, const char* value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), value); return *this; }
326
334 inline LogConfiguration& AddOptions(const char* key, const char* value) { m_optionsHasBeenSet = true; m_options.emplace(key, value); return *this; }
335
336
343 inline const Aws::Vector<Secret>& GetSecretOptions() const{ return m_secretOptions; }
344
351 inline bool SecretOptionsHasBeenSet() const { return m_secretOptionsHasBeenSet; }
352
359 inline void SetSecretOptions(const Aws::Vector<Secret>& value) { m_secretOptionsHasBeenSet = true; m_secretOptions = value; }
360
367 inline void SetSecretOptions(Aws::Vector<Secret>&& value) { m_secretOptionsHasBeenSet = true; m_secretOptions = std::move(value); }
368
375 inline LogConfiguration& WithSecretOptions(const Aws::Vector<Secret>& value) { SetSecretOptions(value); return *this;}
376
383 inline LogConfiguration& WithSecretOptions(Aws::Vector<Secret>&& value) { SetSecretOptions(std::move(value)); return *this;}
384
391 inline LogConfiguration& AddSecretOptions(const Secret& value) { m_secretOptionsHasBeenSet = true; m_secretOptions.push_back(value); return *this; }
392
399 inline LogConfiguration& AddSecretOptions(Secret&& value) { m_secretOptionsHasBeenSet = true; m_secretOptions.push_back(std::move(value)); return *this; }
400
401 private:
402
403 LogDriver m_logDriver;
404 bool m_logDriverHasBeenSet = false;
405
407 bool m_optionsHasBeenSet = false;
408
409 Aws::Vector<Secret> m_secretOptions;
410 bool m_secretOptionsHasBeenSet = false;
411 };
412
413} // namespace Model
414} // namespace ECS
415} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
LogConfiguration & WithLogDriver(const LogDriver &value)
LogConfiguration & WithLogDriver(LogDriver &&value)
AWS_ECS_API LogConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const LogDriver & GetLogDriver() const
void SetOptions(Aws::Map< Aws::String, Aws::String > &&value)
LogConfiguration & WithOptions(const Aws::Map< Aws::String, Aws::String > &value)
LogConfiguration & AddOptions(const char *key, Aws::String &&value)
LogConfiguration & AddOptions(Aws::String &&key, const Aws::String &value)
void SetLogDriver(const LogDriver &value)
AWS_ECS_API LogConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetSecretOptions(Aws::Vector< Secret > &&value)
LogConfiguration & AddOptions(Aws::String &&key, Aws::String &&value)
LogConfiguration & AddOptions(const char *key, const char *value)
LogConfiguration & AddSecretOptions(const Secret &value)
LogConfiguration & AddSecretOptions(Secret &&value)
const Aws::Vector< Secret > & GetSecretOptions() const
void SetSecretOptions(const Aws::Vector< Secret > &value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
LogConfiguration & WithSecretOptions(const Aws::Vector< Secret > &value)
LogConfiguration & AddOptions(const Aws::String &key, const Aws::String &value)
LogConfiguration & WithOptions(Aws::Map< Aws::String, Aws::String > &&value)
LogConfiguration & AddOptions(Aws::String &&key, const char *value)
void SetOptions(const Aws::Map< Aws::String, Aws::String > &value)
LogConfiguration & AddOptions(const Aws::String &key, Aws::String &&value)
LogConfiguration & WithSecretOptions(Aws::Vector< Secret > &&value)
const Aws::Map< Aws::String, Aws::String > & GetOptions() const
void SetLogDriver(LogDriver &&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
std::vector< T, Aws::Allocator< T > > Vector