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/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/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 ECS
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_ECS_API FirelensConfiguration() = default;
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
70 inline const Aws::Map<Aws::String, Aws::String>& GetOptions() const { return m_options; }
71 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
72 template<typename OptionsT = Aws::Map<Aws::String, Aws::String>>
73 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
74 template<typename OptionsT = Aws::Map<Aws::String, Aws::String>>
75 FirelensConfiguration& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
76 template<typename OptionsKeyT = Aws::String, typename OptionsValueT = Aws::String>
77 FirelensConfiguration& AddOptions(OptionsKeyT&& key, OptionsValueT&& value) {
78 m_optionsHasBeenSet = true; m_options.emplace(std::forward<OptionsKeyT>(key), std::forward<OptionsValueT>(value)); return *this;
79 }
81 private:
82
84 bool m_typeHasBeenSet = false;
85
87 bool m_optionsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace ECS
92} // namespace Aws
FirelensConfiguration & AddOptions(OptionsKeyT &&key, OptionsValueT &&value)
FirelensConfiguration & WithOptions(OptionsT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API FirelensConfiguration()=default
const Aws::Map< Aws::String, Aws::String > & GetOptions() const
FirelensConfigurationType GetType() const
FirelensConfiguration & WithType(FirelensConfigurationType value)
void SetType(FirelensConfigurationType value)
AWS_ECS_API FirelensConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API FirelensConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue