AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RemoveTargetsResult.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/RemoveTargetsResultEntry.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 RemoveTargetsResult() = default;
35
36
38
41 inline int GetFailedEntryCount() const { return m_failedEntryCount; }
42 inline void SetFailedEntryCount(int value) { m_failedEntryCountHasBeenSet = true; m_failedEntryCount = value; }
43 inline RemoveTargetsResult& WithFailedEntryCount(int value) { SetFailedEntryCount(value); return *this;}
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) { m_failedEntriesHasBeenSet = true; m_failedEntries = std::forward<FailedEntriesT>(value); }
53 template<typename FailedEntriesT = Aws::Vector<RemoveTargetsResultEntry>>
54 RemoveTargetsResult& WithFailedEntries(FailedEntriesT&& value) { SetFailedEntries(std::forward<FailedEntriesT>(value)); return *this;}
55 template<typename FailedEntriesT = RemoveTargetsResultEntry>
56 RemoveTargetsResult& AddFailedEntries(FailedEntriesT&& value) { m_failedEntriesHasBeenSet = true; m_failedEntries.emplace_back(std::forward<FailedEntriesT>(value)); return *this; }
58
60
61 inline const Aws::String& GetRequestId() const { return m_requestId; }
62 template<typename RequestIdT = Aws::String>
63 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
64 template<typename RequestIdT = Aws::String>
65 RemoveTargetsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
67 private:
68
69 int m_failedEntryCount{0};
70 bool m_failedEntryCountHasBeenSet = false;
71
73 bool m_failedEntriesHasBeenSet = false;
74
75 Aws::String m_requestId;
76 bool m_requestIdHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace EventBridge
81} // 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