AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/batch/model/Secret.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Batch {
24namespace Model {
25
33 public:
34 AWS_BATCH_API LogConfiguration() = default;
37 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
95 inline LogDriver GetLogDriver() const { return m_logDriver; }
96 inline bool LogDriverHasBeenSet() const { return m_logDriverHasBeenSet; }
97 inline void SetLogDriver(LogDriver value) {
98 m_logDriverHasBeenSet = true;
99 m_logDriver = value;
100 }
102 SetLogDriver(value);
103 return *this;
104 }
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) {
119 m_optionsHasBeenSet = true;
120 m_options = std::forward<OptionsT>(value);
121 }
122 template <typename OptionsT = Aws::Map<Aws::String, Aws::String>>
123 LogConfiguration& WithOptions(OptionsT&& value) {
124 SetOptions(std::forward<OptionsT>(value));
125 return *this;
126 }
127 template <typename OptionsKeyT = Aws::String, typename OptionsValueT = Aws::String>
128 LogConfiguration& AddOptions(OptionsKeyT&& key, OptionsValueT&& value) {
129 m_optionsHasBeenSet = true;
130 m_options.emplace(std::forward<OptionsKeyT>(key), std::forward<OptionsValueT>(value));
131 return *this;
132 }
134
136
141 inline const Aws::Vector<Secret>& GetSecretOptions() const { return m_secretOptions; }
142 inline bool SecretOptionsHasBeenSet() const { return m_secretOptionsHasBeenSet; }
143 template <typename SecretOptionsT = Aws::Vector<Secret>>
144 void SetSecretOptions(SecretOptionsT&& value) {
145 m_secretOptionsHasBeenSet = true;
146 m_secretOptions = std::forward<SecretOptionsT>(value);
147 }
148 template <typename SecretOptionsT = Aws::Vector<Secret>>
149 LogConfiguration& WithSecretOptions(SecretOptionsT&& value) {
150 SetSecretOptions(std::forward<SecretOptionsT>(value));
151 return *this;
152 }
153 template <typename SecretOptionsT = Secret>
154 LogConfiguration& AddSecretOptions(SecretOptionsT&& value) {
155 m_secretOptionsHasBeenSet = true;
156 m_secretOptions.emplace_back(std::forward<SecretOptionsT>(value));
157 return *this;
158 }
160 private:
161 LogDriver m_logDriver{LogDriver::NOT_SET};
162
164
165 Aws::Vector<Secret> m_secretOptions;
166 bool m_logDriverHasBeenSet = false;
167 bool m_optionsHasBeenSet = false;
168 bool m_secretOptionsHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace Batch
173} // 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