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/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();
42 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
96 inline const LogDriver& GetLogDriver() const{ return m_logDriver; }
97 inline bool LogDriverHasBeenSet() const { return m_logDriverHasBeenSet; }
98 inline void SetLogDriver(const LogDriver& value) { m_logDriverHasBeenSet = true; m_logDriver = value; }
99 inline void SetLogDriver(LogDriver&& value) { m_logDriverHasBeenSet = true; m_logDriver = std::move(value); }
100 inline LogConfiguration& WithLogDriver(const LogDriver& value) { SetLogDriver(value); return *this;}
101 inline LogConfiguration& WithLogDriver(LogDriver&& value) { SetLogDriver(std::move(value)); return *this;}
103
105
112 inline const Aws::Map<Aws::String, Aws::String>& GetOptions() const{ return m_options; }
113 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
114 inline void SetOptions(const Aws::Map<Aws::String, Aws::String>& value) { m_optionsHasBeenSet = true; m_options = value; }
115 inline void SetOptions(Aws::Map<Aws::String, Aws::String>&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
116 inline LogConfiguration& WithOptions(const Aws::Map<Aws::String, Aws::String>& value) { SetOptions(value); return *this;}
117 inline LogConfiguration& WithOptions(Aws::Map<Aws::String, Aws::String>&& value) { SetOptions(std::move(value)); return *this;}
118 inline LogConfiguration& AddOptions(const Aws::String& key, const Aws::String& value) { m_optionsHasBeenSet = true; m_options.emplace(key, value); return *this; }
119 inline LogConfiguration& AddOptions(Aws::String&& key, const Aws::String& value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), value); return *this; }
120 inline LogConfiguration& AddOptions(const Aws::String& key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options.emplace(key, std::move(value)); return *this; }
121 inline LogConfiguration& AddOptions(Aws::String&& key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), std::move(value)); return *this; }
122 inline LogConfiguration& AddOptions(const char* key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options.emplace(key, std::move(value)); return *this; }
123 inline LogConfiguration& AddOptions(Aws::String&& key, const char* value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), value); return *this; }
124 inline LogConfiguration& AddOptions(const char* key, const char* value) { m_optionsHasBeenSet = true; m_options.emplace(key, value); return *this; }
126
128
133 inline const Aws::Vector<Secret>& GetSecretOptions() const{ return m_secretOptions; }
134 inline bool SecretOptionsHasBeenSet() const { return m_secretOptionsHasBeenSet; }
135 inline void SetSecretOptions(const Aws::Vector<Secret>& value) { m_secretOptionsHasBeenSet = true; m_secretOptions = value; }
136 inline void SetSecretOptions(Aws::Vector<Secret>&& value) { m_secretOptionsHasBeenSet = true; m_secretOptions = std::move(value); }
137 inline LogConfiguration& WithSecretOptions(const Aws::Vector<Secret>& value) { SetSecretOptions(value); return *this;}
138 inline LogConfiguration& WithSecretOptions(Aws::Vector<Secret>&& value) { SetSecretOptions(std::move(value)); return *this;}
139 inline LogConfiguration& AddSecretOptions(const Secret& value) { m_secretOptionsHasBeenSet = true; m_secretOptions.push_back(value); return *this; }
140 inline LogConfiguration& AddSecretOptions(Secret&& value) { m_secretOptionsHasBeenSet = true; m_secretOptions.push_back(std::move(value)); return *this; }
142 private:
143
144 LogDriver m_logDriver;
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
const LogDriver & GetLogDriver() const
void SetSecretOptions(Aws::Vector< Secret > &&value)
LogConfiguration & WithOptions(const Aws::Map< Aws::String, Aws::String > &value)
LogConfiguration & AddSecretOptions(Secret &&value)
const Aws::Map< Aws::String, Aws::String > & GetOptions() const
LogConfiguration & AddOptions(Aws::String &&key, const Aws::String &value)
void SetLogDriver(LogDriver &&value)
void SetLogDriver(const LogDriver &value)
LogConfiguration & WithLogDriver(LogDriver &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
LogConfiguration & AddOptions(const Aws::String &key, const Aws::String &value)
LogConfiguration & AddOptions(const char *key, const char *value)
const Aws::Vector< Secret > & GetSecretOptions() const
LogConfiguration & AddOptions(const Aws::String &key, Aws::String &&value)
void SetSecretOptions(const Aws::Vector< Secret > &value)
LogConfiguration & WithSecretOptions(const Aws::Vector< Secret > &value)
void SetOptions(const Aws::Map< Aws::String, Aws::String > &value)
AWS_BATCH_API LogConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
LogConfiguration & AddOptions(Aws::String &&key, Aws::String &&value)
LogConfiguration & AddOptions(const char *key, Aws::String &&value)
LogConfiguration & WithLogDriver(const LogDriver &value)
LogConfiguration & WithOptions(Aws::Map< Aws::String, Aws::String > &&value)
LogConfiguration & AddOptions(Aws::String &&key, const char *value)
void SetOptions(Aws::Map< Aws::String, Aws::String > &&value)
AWS_BATCH_API LogConfiguration(Aws::Utils::Json::JsonView jsonValue)
LogConfiguration & AddSecretOptions(const Secret &value)
LogConfiguration & WithSecretOptions(Aws::Vector< Secret > &&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