AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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