AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AddKeys.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/logs/model/AddKeyEntry.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudWatchLogs
23{
24namespace Model
25{
26
35 class AddKeys
36 {
37 public:
38 AWS_CLOUDWATCHLOGS_API AddKeys() = default;
39 AWS_CLOUDWATCHLOGS_API AddKeys(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHLOGS_API AddKeys& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Vector<AddKeyEntry>& GetEntries() const { return m_entries; }
50 inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
51 template<typename EntriesT = Aws::Vector<AddKeyEntry>>
52 void SetEntries(EntriesT&& value) { m_entriesHasBeenSet = true; m_entries = std::forward<EntriesT>(value); }
53 template<typename EntriesT = Aws::Vector<AddKeyEntry>>
54 AddKeys& WithEntries(EntriesT&& value) { SetEntries(std::forward<EntriesT>(value)); return *this;}
55 template<typename EntriesT = AddKeyEntry>
56 AddKeys& AddEntries(EntriesT&& value) { m_entriesHasBeenSet = true; m_entries.emplace_back(std::forward<EntriesT>(value)); return *this; }
58 private:
59
61 bool m_entriesHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace CloudWatchLogs
66} // namespace Aws
AWS_CLOUDWATCHLOGS_API AddKeys()=default
AWS_CLOUDWATCHLOGS_API AddKeys & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AddKeyEntry > & GetEntries() const
Definition AddKeys.h:49
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHLOGS_API AddKeys(Aws::Utils::Json::JsonView jsonValue)
void SetEntries(EntriesT &&value)
Definition AddKeys.h:52
AddKeys & AddEntries(EntriesT &&value)
Definition AddKeys.h:56
AddKeys & WithEntries(EntriesT &&value)
Definition AddKeys.h:54
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue