AWS SDK for C++

AWS SDK for C++ Version 1.11.848

Loading...
Searching...
No Matches
TreatmentOverrides.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_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 AppConfig {
21namespace Model {
22
30 public:
31 AWS_APPCONFIG_API TreatmentOverrides() = default;
32 AWS_APPCONFIG_API TreatmentOverrides(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Map<Aws::String, Aws::String>& GetInline() const { return m_inline; }
42 inline bool InlineHasBeenSet() const { return m_inlineHasBeenSet; }
43 template <typename InlineT = Aws::Map<Aws::String, Aws::String>>
44 void SetInline(InlineT&& value) {
45 m_inlineHasBeenSet = true;
46 m_inline = std::forward<InlineT>(value);
47 }
48 template <typename InlineT = Aws::Map<Aws::String, Aws::String>>
49 TreatmentOverrides& WithInline(InlineT&& value) {
50 SetInline(std::forward<InlineT>(value));
51 return *this;
52 }
53 template <typename InlineKeyT = Aws::String, typename InlineValueT = Aws::String>
54 TreatmentOverrides& AddInline(InlineKeyT&& key, InlineValueT&& value) {
55 m_inlineHasBeenSet = true;
56 m_inline.emplace(std::forward<InlineKeyT>(key), std::forward<InlineValueT>(value));
57 return *this;
58 }
60 private:
62 bool m_inlineHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace AppConfig
67} // namespace Aws
TreatmentOverrides & WithInline(InlineT &&value)
AWS_APPCONFIG_API TreatmentOverrides & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPCONFIG_API TreatmentOverrides()=default
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
TreatmentOverrides & AddInline(InlineKeyT &&key, InlineValueT &&value)
AWS_APPCONFIG_API TreatmentOverrides(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetInline() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue