AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ContextConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/qconnect/QConnect_EXPORTS.h>
9#include <aws/qconnect/model/ContextConfigurationEntry.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QConnect {
21namespace Model {
22
30 public:
31 AWS_QCONNECT_API ContextConfiguration() = default;
34 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<ContextConfigurationEntry>& GetEntries() const { return m_entries; }
42 inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
43 template <typename EntriesT = Aws::Vector<ContextConfigurationEntry>>
44 void SetEntries(EntriesT&& value) {
45 m_entriesHasBeenSet = true;
46 m_entries = std::forward<EntriesT>(value);
47 }
48 template <typename EntriesT = Aws::Vector<ContextConfigurationEntry>>
49 ContextConfiguration& WithEntries(EntriesT&& value) {
50 SetEntries(std::forward<EntriesT>(value));
51 return *this;
52 }
53 template <typename EntriesT = ContextConfigurationEntry>
54 ContextConfiguration& AddEntries(EntriesT&& value) {
55 m_entriesHasBeenSet = true;
56 m_entries.emplace_back(std::forward<EntriesT>(value));
57 return *this;
58 }
60
62
66 inline int GetMaxMergedContextCharacters() const { return m_maxMergedContextCharacters; }
67 inline bool MaxMergedContextCharactersHasBeenSet() const { return m_maxMergedContextCharactersHasBeenSet; }
68 inline void SetMaxMergedContextCharacters(int value) {
69 m_maxMergedContextCharactersHasBeenSet = true;
70 m_maxMergedContextCharacters = value;
71 }
74 return *this;
75 }
77 private:
79
80 int m_maxMergedContextCharacters{0};
81 bool m_entriesHasBeenSet = false;
82 bool m_maxMergedContextCharactersHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace QConnect
87} // namespace Aws
const Aws::Vector< ContextConfigurationEntry > & GetEntries() const
ContextConfiguration & WithEntries(EntriesT &&value)
AWS_QCONNECT_API ContextConfiguration()=default
AWS_QCONNECT_API ContextConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QCONNECT_API ContextConfiguration(Aws::Utils::Json::JsonView jsonValue)
ContextConfiguration & WithMaxMergedContextCharacters(int value)
ContextConfiguration & AddEntries(EntriesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue