AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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