AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Batch {
22namespace Model {
23
34 public:
35 AWS_BATCH_API FirelensConfiguration() = default;
38 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline FirelensConfigurationType GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 m_typeHasBeenSet = true;
49 m_type = value;
50 }
52 SetType(value);
53 return *this;
54 }
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) {
73 m_optionsHasBeenSet = true;
74 m_options = std::forward<OptionsT>(value);
75 }
76 template <typename OptionsT = Aws::Map<Aws::String, Aws::String>>
78 SetOptions(std::forward<OptionsT>(value));
79 return *this;
80 }
81 template <typename OptionsKeyT = Aws::String, typename OptionsValueT = Aws::String>
82 FirelensConfiguration& AddOptions(OptionsKeyT&& key, OptionsValueT&& value) {
83 m_optionsHasBeenSet = true;
84 m_options.emplace(std::forward<OptionsKeyT>(key), std::forward<OptionsValueT>(value));
85 return *this;
86 }
88 private:
90
92 bool m_typeHasBeenSet = false;
93 bool m_optionsHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace Batch
98} // 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