AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutEventsResult.h
1
6#pragma once
7#include <aws/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/events/model/PutEventsResultEntry.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CloudWatchEvents
26{
27namespace Model
28{
30 {
31 public:
32 AWS_CLOUDWATCHEVENTS_API PutEventsResult();
35
36
38
41 inline int GetFailedEntryCount() const{ return m_failedEntryCount; }
42 inline void SetFailedEntryCount(int value) { m_failedEntryCount = value; }
43 inline PutEventsResult& WithFailedEntryCount(int value) { SetFailedEntryCount(value); return *this;}
45
47
52 inline const Aws::Vector<PutEventsResultEntry>& GetEntries() const{ return m_entries; }
53 inline void SetEntries(const Aws::Vector<PutEventsResultEntry>& value) { m_entries = value; }
54 inline void SetEntries(Aws::Vector<PutEventsResultEntry>&& value) { m_entries = std::move(value); }
55 inline PutEventsResult& WithEntries(const Aws::Vector<PutEventsResultEntry>& value) { SetEntries(value); return *this;}
56 inline PutEventsResult& WithEntries(Aws::Vector<PutEventsResultEntry>&& value) { SetEntries(std::move(value)); return *this;}
57 inline PutEventsResult& AddEntries(const PutEventsResultEntry& value) { m_entries.push_back(value); return *this; }
58 inline PutEventsResult& AddEntries(PutEventsResultEntry&& value) { m_entries.push_back(std::move(value)); return *this; }
60
62
63 inline const Aws::String& GetRequestId() const{ return m_requestId; }
64 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
65 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
66 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
67 inline PutEventsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
68 inline PutEventsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
69 inline PutEventsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
71 private:
72
73 int m_failedEntryCount;
74
76
77 Aws::String m_requestId;
78 };
79
80} // namespace Model
81} // namespace CloudWatchEvents
82} // namespace Aws
PutEventsResult & WithRequestId(const char *value)
PutEventsResult & WithEntries(Aws::Vector< PutEventsResultEntry > &&value)
AWS_CLOUDWATCHEVENTS_API PutEventsResult()
PutEventsResult & AddEntries(const PutEventsResultEntry &value)
PutEventsResult & WithEntries(const Aws::Vector< PutEventsResultEntry > &value)
void SetRequestId(const Aws::String &value)
AWS_CLOUDWATCHEVENTS_API PutEventsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CLOUDWATCHEVENTS_API PutEventsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutEventsResult & WithFailedEntryCount(int value)
void SetEntries(Aws::Vector< PutEventsResultEntry > &&value)
PutEventsResult & AddEntries(PutEventsResultEntry &&value)
const Aws::Vector< PutEventsResultEntry > & GetEntries() const
PutEventsResult & WithRequestId(Aws::String &&value)
PutEventsResult & WithRequestId(const Aws::String &value)
void SetEntries(const Aws::Vector< PutEventsResultEntry > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue