AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ComponentConfig.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PrometheusService {
21namespace Model {
22
29 public:
30 AWS_PROMETHEUSSERVICE_API ComponentConfig() = default;
31 AWS_PROMETHEUSSERVICE_API ComponentConfig(Aws::Utils::Json::JsonView jsonValue);
32 AWS_PROMETHEUSSERVICE_API ComponentConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Map<Aws::String, Aws::String>& GetOptions() const { return m_options; }
40 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
41 template <typename OptionsT = Aws::Map<Aws::String, Aws::String>>
42 void SetOptions(OptionsT&& value) {
43 m_optionsHasBeenSet = true;
44 m_options = std::forward<OptionsT>(value);
45 }
46 template <typename OptionsT = Aws::Map<Aws::String, Aws::String>>
47 ComponentConfig& WithOptions(OptionsT&& value) {
48 SetOptions(std::forward<OptionsT>(value));
49 return *this;
50 }
51 template <typename OptionsKeyT = Aws::String, typename OptionsValueT = Aws::String>
52 ComponentConfig& AddOptions(OptionsKeyT&& key, OptionsValueT&& value) {
53 m_optionsHasBeenSet = true;
54 m_options.emplace(std::forward<OptionsKeyT>(key), std::forward<OptionsValueT>(value));
55 return *this;
56 }
58 private:
60 bool m_optionsHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace PrometheusService
65} // namespace Aws
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PROMETHEUSSERVICE_API ComponentConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ComponentConfig & WithOptions(OptionsT &&value)
AWS_PROMETHEUSSERVICE_API ComponentConfig(Aws::Utils::Json::JsonView jsonValue)
ComponentConfig & AddOptions(OptionsKeyT &&key, OptionsValueT &&value)
AWS_PROMETHEUSSERVICE_API ComponentConfig()=default
const Aws::Map< Aws::String, Aws::String > & GetOptions() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue