AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FirelensConfiguration.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/FirelensConfigurationType.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Batch
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_BATCH_API FirelensConfiguration() = default;
43 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline FirelensConfigurationType GetType() const { return m_type; }
52 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
53 inline void SetType(FirelensConfigurationType value) { m_typeHasBeenSet = true; m_type = value; }
54 inline FirelensConfiguration& WithType(FirelensConfigurationType value) { SetType(value); return *this;}
56
58
69 inline const Aws::Map<Aws::String, Aws::String>& GetOptions() const { return m_options; }
70 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
71 template<typename OptionsT = Aws::Map<Aws::String, Aws::String>>
72 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
73 template<typename OptionsT = Aws::Map<Aws::String, Aws::String>>
74 FirelensConfiguration& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
75 template<typename OptionsKeyT = Aws::String, typename OptionsValueT = Aws::String>
76 FirelensConfiguration& AddOptions(OptionsKeyT&& key, OptionsValueT&& value) {
77 m_optionsHasBeenSet = true; m_options.emplace(std::forward<OptionsKeyT>(key), std::forward<OptionsValueT>(value)); return *this;
78 }
80 private:
81
83 bool m_typeHasBeenSet = false;
84
86 bool m_optionsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Batch
91} // namespace Aws
AWS_BATCH_API FirelensConfiguration()=default
FirelensConfigurationType GetType() const
const Aws::Map< Aws::String, Aws::String > & GetOptions() const
AWS_BATCH_API FirelensConfiguration(Aws::Utils::Json::JsonView jsonValue)
FirelensConfiguration & AddOptions(OptionsKeyT &&key, OptionsValueT &&value)
AWS_BATCH_API FirelensConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
FirelensConfiguration & WithType(FirelensConfigurationType value)
FirelensConfiguration & WithOptions(OptionsT &&value)
void SetType(FirelensConfigurationType value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue