AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LogConfiguration.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/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/batch/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 Batch
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_BATCH_API LogConfiguration() = default;
42 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
101 inline LogDriver GetLogDriver() const { return m_logDriver; }
102 inline bool LogDriverHasBeenSet() const { return m_logDriverHasBeenSet; }
103 inline void SetLogDriver(LogDriver value) { m_logDriverHasBeenSet = true; m_logDriver = value; }
104 inline LogConfiguration& WithLogDriver(LogDriver value) { SetLogDriver(value); return *this;}
106
108
115 inline const Aws::Map<Aws::String, Aws::String>& GetOptions() const { return m_options; }
116 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
117 template<typename OptionsT = Aws::Map<Aws::String, Aws::String>>
118 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
119 template<typename OptionsT = Aws::Map<Aws::String, Aws::String>>
120 LogConfiguration& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
121 template<typename OptionsKeyT = Aws::String, typename OptionsValueT = Aws::String>
122 LogConfiguration& AddOptions(OptionsKeyT&& key, OptionsValueT&& value) {
123 m_optionsHasBeenSet = true; m_options.emplace(std::forward<OptionsKeyT>(key), std::forward<OptionsValueT>(value)); return *this;
124 }
126
128
133 inline const Aws::Vector<Secret>& GetSecretOptions() const { return m_secretOptions; }
134 inline bool SecretOptionsHasBeenSet() const { return m_secretOptionsHasBeenSet; }
135 template<typename SecretOptionsT = Aws::Vector<Secret>>
136 void SetSecretOptions(SecretOptionsT&& value) { m_secretOptionsHasBeenSet = true; m_secretOptions = std::forward<SecretOptionsT>(value); }
137 template<typename SecretOptionsT = Aws::Vector<Secret>>
138 LogConfiguration& WithSecretOptions(SecretOptionsT&& value) { SetSecretOptions(std::forward<SecretOptionsT>(value)); return *this;}
139 template<typename SecretOptionsT = Secret>
140 LogConfiguration& AddSecretOptions(SecretOptionsT&& value) { m_secretOptionsHasBeenSet = true; m_secretOptions.emplace_back(std::forward<SecretOptionsT>(value)); return *this; }
142 private:
143
144 LogDriver m_logDriver{LogDriver::NOT_SET};
145 bool m_logDriverHasBeenSet = false;
146
148 bool m_optionsHasBeenSet = false;
149
150 Aws::Vector<Secret> m_secretOptions;
151 bool m_secretOptionsHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace Batch
156} // namespace Aws
LogConfiguration & AddOptions(OptionsKeyT &&key, OptionsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetOptions() const
void SetSecretOptions(SecretOptionsT &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BATCH_API LogConfiguration()=default
const Aws::Vector< Secret > & GetSecretOptions() const
LogConfiguration & WithSecretOptions(SecretOptionsT &&value)
LogConfiguration & AddSecretOptions(SecretOptionsT &&value)
LogConfiguration & WithLogDriver(LogDriver value)
AWS_BATCH_API LogConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API LogConfiguration(Aws::Utils::Json::JsonView jsonValue)
LogConfiguration & WithOptions(OptionsT &&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