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/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/eventbridge/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 EventBridge
26{
27namespace Model
28{
30 {
31 public:
32 AWS_EVENTBRIDGE_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
54 inline const Aws::Vector<PutEventsResultEntry>& GetEntries() const{ return m_entries; }
55 inline void SetEntries(const Aws::Vector<PutEventsResultEntry>& value) { m_entries = value; }
56 inline void SetEntries(Aws::Vector<PutEventsResultEntry>&& value) { m_entries = std::move(value); }
57 inline PutEventsResult& WithEntries(const Aws::Vector<PutEventsResultEntry>& value) { SetEntries(value); return *this;}
58 inline PutEventsResult& WithEntries(Aws::Vector<PutEventsResultEntry>&& value) { SetEntries(std::move(value)); return *this;}
59 inline PutEventsResult& AddEntries(const PutEventsResultEntry& value) { m_entries.push_back(value); return *this; }
60 inline PutEventsResult& AddEntries(PutEventsResultEntry&& value) { m_entries.push_back(std::move(value)); return *this; }
62
64
65 inline const Aws::String& GetRequestId() const{ return m_requestId; }
66 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
67 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
68 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
69 inline PutEventsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
70 inline PutEventsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
71 inline PutEventsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
73 private:
74
75 int m_failedEntryCount;
76
78
79 Aws::String m_requestId;
80 };
81
82} // namespace Model
83} // namespace EventBridge
84} // namespace Aws
PutEventsResult & WithEntries(const Aws::Vector< PutEventsResultEntry > &value)
AWS_EVENTBRIDGE_API PutEventsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRequestId(const Aws::String &value)
PutEventsResult & WithFailedEntryCount(int value)
PutEventsResult & AddEntries(PutEventsResultEntry &&value)
PutEventsResult & WithRequestId(Aws::String &&value)
PutEventsResult & AddEntries(const PutEventsResultEntry &value)
AWS_EVENTBRIDGE_API PutEventsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutEventsResult & WithEntries(Aws::Vector< PutEventsResultEntry > &&value)
const Aws::Vector< PutEventsResultEntry > & GetEntries() const
void SetEntries(const Aws::Vector< PutEventsResultEntry > &value)
PutEventsResult & WithRequestId(const char *value)
const Aws::String & GetRequestId() const
PutEventsResult & WithRequestId(const Aws::String &value)
void SetEntries(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