AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CopyValue.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/CopyValueEntry.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
39 {
40 public:
41 AWS_CLOUDWATCHLOGS_API CopyValue() = default;
42 AWS_CLOUDWATCHLOGS_API CopyValue(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CLOUDWATCHLOGS_API CopyValue& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::Vector<CopyValueEntry>& GetEntries() const { return m_entries; }
53 inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
54 template<typename EntriesT = Aws::Vector<CopyValueEntry>>
55 void SetEntries(EntriesT&& value) { m_entriesHasBeenSet = true; m_entries = std::forward<EntriesT>(value); }
56 template<typename EntriesT = Aws::Vector<CopyValueEntry>>
57 CopyValue& WithEntries(EntriesT&& value) { SetEntries(std::forward<EntriesT>(value)); return *this;}
58 template<typename EntriesT = CopyValueEntry>
59 CopyValue& AddEntries(EntriesT&& value) { m_entriesHasBeenSet = true; m_entries.emplace_back(std::forward<EntriesT>(value)); return *this; }
61 private:
62
64 bool m_entriesHasBeenSet = false;
65 };
66
67} // namespace Model
68} // namespace CloudWatchLogs
69} // namespace Aws
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< CopyValueEntry > & GetEntries() const
Definition CopyValue.h:52
CopyValue & AddEntries(EntriesT &&value)
Definition CopyValue.h:59
AWS_CLOUDWATCHLOGS_API CopyValue()=default
AWS_CLOUDWATCHLOGS_API CopyValue & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEntries(EntriesT &&value)
Definition CopyValue.h:55
CopyValue & WithEntries(EntriesT &&value)
Definition CopyValue.h:57
AWS_CLOUDWATCHLOGS_API CopyValue(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue