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/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/LogDriver.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ecs/model/Secret.h>
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
64 {
65 public:
66 AWS_ECS_API LogConfiguration();
70
71
73
94 inline const LogDriver& GetLogDriver() const{ return m_logDriver; }
95 inline bool LogDriverHasBeenSet() const { return m_logDriverHasBeenSet; }
96 inline void SetLogDriver(const LogDriver& value) { m_logDriverHasBeenSet = true; m_logDriver = value; }
97 inline void SetLogDriver(LogDriver&& value) { m_logDriverHasBeenSet = true; m_logDriver = std::move(value); }
98 inline LogConfiguration& WithLogDriver(const LogDriver& value) { SetLogDriver(value); return *this;}
99 inline LogConfiguration& WithLogDriver(LogDriver&& value) { SetLogDriver(std::move(value)); return *this;}
101
103
213 inline const Aws::Map<Aws::String, Aws::String>& GetOptions() const{ return m_options; }
214 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
215 inline void SetOptions(const Aws::Map<Aws::String, Aws::String>& value) { m_optionsHasBeenSet = true; m_options = value; }
216 inline void SetOptions(Aws::Map<Aws::String, Aws::String>&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
217 inline LogConfiguration& WithOptions(const Aws::Map<Aws::String, Aws::String>& value) { SetOptions(value); return *this;}
218 inline LogConfiguration& WithOptions(Aws::Map<Aws::String, Aws::String>&& value) { SetOptions(std::move(value)); return *this;}
219 inline LogConfiguration& AddOptions(const Aws::String& key, const Aws::String& value) { m_optionsHasBeenSet = true; m_options.emplace(key, value); return *this; }
220 inline LogConfiguration& AddOptions(Aws::String&& key, const Aws::String& value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), value); return *this; }
221 inline LogConfiguration& AddOptions(const Aws::String& key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options.emplace(key, std::move(value)); return *this; }
222 inline LogConfiguration& AddOptions(Aws::String&& key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), std::move(value)); return *this; }
223 inline LogConfiguration& AddOptions(const char* key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options.emplace(key, std::move(value)); return *this; }
224 inline LogConfiguration& AddOptions(Aws::String&& key, const char* value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), value); return *this; }
225 inline LogConfiguration& AddOptions(const char* key, const char* value) { m_optionsHasBeenSet = true; m_options.emplace(key, value); return *this; }
227
229
235 inline const Aws::Vector<Secret>& GetSecretOptions() const{ return m_secretOptions; }
236 inline bool SecretOptionsHasBeenSet() const { return m_secretOptionsHasBeenSet; }
237 inline void SetSecretOptions(const Aws::Vector<Secret>& value) { m_secretOptionsHasBeenSet = true; m_secretOptions = value; }
238 inline void SetSecretOptions(Aws::Vector<Secret>&& value) { m_secretOptionsHasBeenSet = true; m_secretOptions = std::move(value); }
239 inline LogConfiguration& WithSecretOptions(const Aws::Vector<Secret>& value) { SetSecretOptions(value); return *this;}
240 inline LogConfiguration& WithSecretOptions(Aws::Vector<Secret>&& value) { SetSecretOptions(std::move(value)); return *this;}
241 inline LogConfiguration& AddSecretOptions(const Secret& value) { m_secretOptionsHasBeenSet = true; m_secretOptions.push_back(value); return *this; }
242 inline LogConfiguration& AddSecretOptions(Secret&& value) { m_secretOptionsHasBeenSet = true; m_secretOptions.push_back(std::move(value)); return *this; }
244 private:
245
246 LogDriver m_logDriver;
247 bool m_logDriverHasBeenSet = false;
248
250 bool m_optionsHasBeenSet = false;
251
252 Aws::Vector<Secret> m_secretOptions;
253 bool m_secretOptionsHasBeenSet = false;
254 };
255
256} // namespace Model
257} // namespace ECS
258} // namespace Aws
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
Aws::Utils::Json::JsonValue JsonValue