AWS SDK for C++  1.9.159
AWS SDK for C++
LogConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
12 #include <aws/ecs/model/Secret.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace ECS
26 {
27 namespace Model
28 {
29 
66  {
67  public:
72 
73 
96  inline const LogDriver& GetLogDriver() const{ return m_logDriver; }
97 
120  inline bool LogDriverHasBeenSet() const { return m_logDriverHasBeenSet; }
121 
144  inline void SetLogDriver(const LogDriver& value) { m_logDriverHasBeenSet = true; m_logDriver = value; }
145 
168  inline void SetLogDriver(LogDriver&& value) { m_logDriverHasBeenSet = true; m_logDriver = std::move(value); }
169 
192  inline LogConfiguration& WithLogDriver(const LogDriver& value) { SetLogDriver(value); return *this;}
193 
216  inline LogConfiguration& WithLogDriver(LogDriver&& value) { SetLogDriver(std::move(value)); return *this;}
217 
218 
226  inline const Aws::Map<Aws::String, Aws::String>& GetOptions() const{ return m_options; }
227 
235  inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
236 
244  inline void SetOptions(const Aws::Map<Aws::String, Aws::String>& value) { m_optionsHasBeenSet = true; m_options = value; }
245 
253  inline void SetOptions(Aws::Map<Aws::String, Aws::String>&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
254 
262  inline LogConfiguration& WithOptions(const Aws::Map<Aws::String, Aws::String>& value) { SetOptions(value); return *this;}
263 
271  inline LogConfiguration& WithOptions(Aws::Map<Aws::String, Aws::String>&& value) { SetOptions(std::move(value)); return *this;}
272 
280  inline LogConfiguration& AddOptions(const Aws::String& key, const Aws::String& value) { m_optionsHasBeenSet = true; m_options.emplace(key, value); return *this; }
281 
289  inline LogConfiguration& AddOptions(Aws::String&& key, const Aws::String& value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), value); return *this; }
290 
298  inline LogConfiguration& AddOptions(const Aws::String& key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options.emplace(key, std::move(value)); return *this; }
299 
307  inline LogConfiguration& AddOptions(Aws::String&& key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), std::move(value)); return *this; }
308 
316  inline LogConfiguration& AddOptions(const char* key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options.emplace(key, std::move(value)); return *this; }
317 
325  inline LogConfiguration& AddOptions(Aws::String&& key, const char* value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), value); return *this; }
326 
334  inline LogConfiguration& AddOptions(const char* key, const char* value) { m_optionsHasBeenSet = true; m_options.emplace(key, value); return *this; }
335 
336 
343  inline const Aws::Vector<Secret>& GetSecretOptions() const{ return m_secretOptions; }
344 
351  inline bool SecretOptionsHasBeenSet() const { return m_secretOptionsHasBeenSet; }
352 
359  inline void SetSecretOptions(const Aws::Vector<Secret>& value) { m_secretOptionsHasBeenSet = true; m_secretOptions = value; }
360 
367  inline void SetSecretOptions(Aws::Vector<Secret>&& value) { m_secretOptionsHasBeenSet = true; m_secretOptions = std::move(value); }
368 
375  inline LogConfiguration& WithSecretOptions(const Aws::Vector<Secret>& value) { SetSecretOptions(value); return *this;}
376 
383  inline LogConfiguration& WithSecretOptions(Aws::Vector<Secret>&& value) { SetSecretOptions(std::move(value)); return *this;}
384 
391  inline LogConfiguration& AddSecretOptions(const Secret& value) { m_secretOptionsHasBeenSet = true; m_secretOptions.push_back(value); return *this; }
392 
399  inline LogConfiguration& AddSecretOptions(Secret&& value) { m_secretOptionsHasBeenSet = true; m_secretOptions.push_back(std::move(value)); return *this; }
400 
401  private:
402 
403  LogDriver m_logDriver;
404  bool m_logDriverHasBeenSet;
405 
407  bool m_optionsHasBeenSet;
408 
409  Aws::Vector<Secret> m_secretOptions;
410  bool m_secretOptionsHasBeenSet;
411  };
412 
413 } // namespace Model
414 } // namespace ECS
415 } // namespace Aws
Aws::ECS::Model::LogConfiguration::AddSecretOptions
LogConfiguration & AddSecretOptions(Secret &&value)
Definition: LogConfiguration.h:399
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::LogDriver
LogDriver
Definition: LogDriver.h:17
Aws::ECS::Model::Secret
Definition: Secret.h:41
LogDriver.h
Aws::ECS::Model::LogConfiguration::SetLogDriver
void SetLogDriver(const LogDriver &value)
Definition: LogConfiguration.h:144
Aws::ECS::Model::LogConfiguration::SetOptions
void SetOptions(const Aws::Map< Aws::String, Aws::String > &value)
Definition: LogConfiguration.h:244
Aws::ECS::Model::LogConfiguration::AddOptions
LogConfiguration & AddOptions(Aws::String &&key, const Aws::String &value)
Definition: LogConfiguration.h:289
Aws::ECS::Model::LogConfiguration::AddOptions
LogConfiguration & AddOptions(const char *key, Aws::String &&value)
Definition: LogConfiguration.h:316
Secret.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::LogConfiguration::AddSecretOptions
LogConfiguration & AddSecretOptions(const Secret &value)
Definition: LogConfiguration.h:391
Aws::ECS::Model::LogConfiguration::AddOptions
LogConfiguration & AddOptions(Aws::String &&key, Aws::String &&value)
Definition: LogConfiguration.h:307
Aws::ECS::Model::LogConfiguration::LogConfiguration
LogConfiguration()
Aws::ECS::Model::LogConfiguration::AddOptions
LogConfiguration & AddOptions(const Aws::String &key, Aws::String &&value)
Definition: LogConfiguration.h:298
Aws::ECS::Model::LogConfiguration::AddOptions
LogConfiguration & AddOptions(Aws::String &&key, const char *value)
Definition: LogConfiguration.h:325
Aws::ECS::Model::LogConfiguration::SetSecretOptions
void SetSecretOptions(Aws::Vector< Secret > &&value)
Definition: LogConfiguration.h:367
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::ECS::Model::LogConfiguration::operator=
LogConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::LogConfiguration::SecretOptionsHasBeenSet
bool SecretOptionsHasBeenSet() const
Definition: LogConfiguration.h:351
Aws::ECS::Model::LogConfiguration::SetLogDriver
void SetLogDriver(LogDriver &&value)
Definition: LogConfiguration.h:168
Aws::ECS::Model::LogConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::LogConfiguration::WithSecretOptions
LogConfiguration & WithSecretOptions(Aws::Vector< Secret > &&value)
Definition: LogConfiguration.h:383
Aws::ECS::Model::LogConfiguration::GetSecretOptions
const Aws::Vector< Secret > & GetSecretOptions() const
Definition: LogConfiguration.h:343
Aws::ECS::Model::LogConfiguration::SetSecretOptions
void SetSecretOptions(const Aws::Vector< Secret > &value)
Definition: LogConfiguration.h:359
Aws::ECS::Model::LogConfiguration
Definition: LogConfiguration.h:66
Aws::ECS::Model::LogConfiguration::LogDriverHasBeenSet
bool LogDriverHasBeenSet() const
Definition: LogConfiguration.h:120
Aws::ECS::Model::LogConfiguration::WithSecretOptions
LogConfiguration & WithSecretOptions(const Aws::Vector< Secret > &value)
Definition: LogConfiguration.h:375
Aws::ECS::Model::LogConfiguration::WithLogDriver
LogConfiguration & WithLogDriver(LogDriver &&value)
Definition: LogConfiguration.h:216
Aws::ECS::Model::LogConfiguration::OptionsHasBeenSet
bool OptionsHasBeenSet() const
Definition: LogConfiguration.h:235
Aws::ECS::Model::LogConfiguration::GetLogDriver
const LogDriver & GetLogDriver() const
Definition: LogConfiguration.h:96
Aws::ECS::Model::LogConfiguration::GetOptions
const Aws::Map< Aws::String, Aws::String > & GetOptions() const
Definition: LogConfiguration.h:226
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::LogConfiguration::AddOptions
LogConfiguration & AddOptions(const char *key, const char *value)
Definition: LogConfiguration.h:334
Aws::ECS::Model::LogConfiguration::AddOptions
LogConfiguration & AddOptions(const Aws::String &key, const Aws::String &value)
Definition: LogConfiguration.h:280
Aws::ECS::Model::LogConfiguration::WithOptions
LogConfiguration & WithOptions(Aws::Map< Aws::String, Aws::String > &&value)
Definition: LogConfiguration.h:271
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::LogConfiguration::WithLogDriver
LogConfiguration & WithLogDriver(const LogDriver &value)
Definition: LogConfiguration.h:192
Aws::ECS::Model::LogConfiguration::LogConfiguration
LogConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::LogConfiguration::WithOptions
LogConfiguration & WithOptions(const Aws::Map< Aws::String, Aws::String > &value)
Definition: LogConfiguration.h:262
AWSMap.h
ECS_EXPORTS.h
Aws::ECS::Model::LogConfiguration::SetOptions
void SetOptions(Aws::Map< Aws::String, Aws::String > &&value)
Definition: LogConfiguration.h:253
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19