AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
70
71
73
94 inline LogDriver GetLogDriver() const { return m_logDriver; }
95 inline bool LogDriverHasBeenSet() const { return m_logDriverHasBeenSet; }
96 inline void SetLogDriver(LogDriver value) { m_logDriverHasBeenSet = true; m_logDriver = value; }
97 inline LogConfiguration& WithLogDriver(LogDriver value) { SetLogDriver(value); return *this;}
99
101
228 inline const Aws::Map<Aws::String, Aws::String>& GetOptions() const { return m_options; }
229 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
230 template<typename OptionsT = Aws::Map<Aws::String, Aws::String>>
231 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
232 template<typename OptionsT = Aws::Map<Aws::String, Aws::String>>
233 LogConfiguration& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
234 template<typename OptionsKeyT = Aws::String, typename OptionsValueT = Aws::String>
235 LogConfiguration& AddOptions(OptionsKeyT&& key, OptionsValueT&& value) {
236 m_optionsHasBeenSet = true; m_options.emplace(std::forward<OptionsKeyT>(key), std::forward<OptionsValueT>(value)); return *this;
237 }
239
241
247 inline const Aws::Vector<Secret>& GetSecretOptions() const { return m_secretOptions; }
248 inline bool SecretOptionsHasBeenSet() const { return m_secretOptionsHasBeenSet; }
249 template<typename SecretOptionsT = Aws::Vector<Secret>>
250 void SetSecretOptions(SecretOptionsT&& value) { m_secretOptionsHasBeenSet = true; m_secretOptions = std::forward<SecretOptionsT>(value); }
251 template<typename SecretOptionsT = Aws::Vector<Secret>>
252 LogConfiguration& WithSecretOptions(SecretOptionsT&& value) { SetSecretOptions(std::forward<SecretOptionsT>(value)); return *this;}
253 template<typename SecretOptionsT = Secret>
254 LogConfiguration& AddSecretOptions(SecretOptionsT&& value) { m_secretOptionsHasBeenSet = true; m_secretOptions.emplace_back(std::forward<SecretOptionsT>(value)); return *this; }
256 private:
257
258 LogDriver m_logDriver{LogDriver::NOT_SET};
259 bool m_logDriverHasBeenSet = false;
260
262 bool m_optionsHasBeenSet = false;
263
264 Aws::Vector<Secret> m_secretOptions;
265 bool m_secretOptionsHasBeenSet = false;
266 };
267
268} // namespace Model
269} // namespace ECS
270} // namespace Aws
LogConfiguration & AddOptions(OptionsKeyT &&key, OptionsValueT &&value)
AWS_ECS_API LogConfiguration()=default
AWS_ECS_API LogConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API LogConfiguration(Aws::Utils::Json::JsonView jsonValue)
LogConfiguration & WithSecretOptions(SecretOptionsT &&value)
const Aws::Vector< Secret > & GetSecretOptions() const
LogConfiguration & AddSecretOptions(SecretOptionsT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
LogConfiguration & WithLogDriver(LogDriver value)
LogConfiguration & WithOptions(OptionsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetOptions() const
void SetSecretOptions(SecretOptionsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue