AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RemoveTargetsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/eventbridge/EventBridge_EXPORTS.h>
10#include <aws/eventbridge/model/RemoveTargetsResultEntry.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace EventBridge {
24namespace Model {
26 public:
27 AWS_EVENTBRIDGE_API RemoveTargetsResult() = default;
30
32
35 inline int GetFailedEntryCount() const { return m_failedEntryCount; }
36 inline void SetFailedEntryCount(int value) {
37 m_failedEntryCountHasBeenSet = true;
38 m_failedEntryCount = value;
39 }
42 return *this;
43 }
45
47
50 inline const Aws::Vector<RemoveTargetsResultEntry>& GetFailedEntries() const { return m_failedEntries; }
51 template <typename FailedEntriesT = Aws::Vector<RemoveTargetsResultEntry>>
52 void SetFailedEntries(FailedEntriesT&& value) {
53 m_failedEntriesHasBeenSet = true;
54 m_failedEntries = std::forward<FailedEntriesT>(value);
55 }
56 template <typename FailedEntriesT = Aws::Vector<RemoveTargetsResultEntry>>
57 RemoveTargetsResult& WithFailedEntries(FailedEntriesT&& value) {
58 SetFailedEntries(std::forward<FailedEntriesT>(value));
59 return *this;
60 }
61 template <typename FailedEntriesT = RemoveTargetsResultEntry>
62 RemoveTargetsResult& AddFailedEntries(FailedEntriesT&& value) {
63 m_failedEntriesHasBeenSet = true;
64 m_failedEntries.emplace_back(std::forward<FailedEntriesT>(value));
65 return *this;
66 }
68
70
71 inline const Aws::String& GetRequestId() const { return m_requestId; }
72 template <typename RequestIdT = Aws::String>
73 void SetRequestId(RequestIdT&& value) {
74 m_requestIdHasBeenSet = true;
75 m_requestId = std::forward<RequestIdT>(value);
76 }
77 template <typename RequestIdT = Aws::String>
78 RemoveTargetsResult& WithRequestId(RequestIdT&& value) {
79 SetRequestId(std::forward<RequestIdT>(value));
80 return *this;
81 }
83 private:
84 int m_failedEntryCount{0};
85
87
88 Aws::String m_requestId;
89 bool m_failedEntryCountHasBeenSet = false;
90 bool m_failedEntriesHasBeenSet = false;
91 bool m_requestIdHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace EventBridge
96} // namespace Aws
RemoveTargetsResult & WithFailedEntries(FailedEntriesT &&value)
const Aws::Vector< RemoveTargetsResultEntry > & GetFailedEntries() const
AWS_EVENTBRIDGE_API RemoveTargetsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RemoveTargetsResult & AddFailedEntries(FailedEntriesT &&value)
AWS_EVENTBRIDGE_API RemoveTargetsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RemoveTargetsResult & WithFailedEntryCount(int value)
RemoveTargetsResult & WithRequestId(RequestIdT &&value)
AWS_EVENTBRIDGE_API RemoveTargetsResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue