AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
BatchUpdateRecommendationStatusResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
11#include <aws/resiliencehub/model/BatchUpdateRecommendationStatusFailedEntry.h>
12#include <aws/resiliencehub/model/BatchUpdateRecommendationStatusSuccessfulEntry.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace ResilienceHub {
26namespace Model {
28 public:
29 AWS_RESILIENCEHUB_API BatchUpdateRecommendationStatusResult() = default;
33
35
44 inline const Aws::String& GetAppArn() const { return m_appArn; }
45 template <typename AppArnT = Aws::String>
46 void SetAppArn(AppArnT&& value) {
47 m_appArnHasBeenSet = true;
48 m_appArn = std::forward<AppArnT>(value);
49 }
50 template <typename AppArnT = Aws::String>
52 SetAppArn(std::forward<AppArnT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Vector<BatchUpdateRecommendationStatusFailedEntry>& GetFailedEntries() const { return m_failedEntries; }
63 template <typename FailedEntriesT = Aws::Vector<BatchUpdateRecommendationStatusFailedEntry>>
64 void SetFailedEntries(FailedEntriesT&& value) {
65 m_failedEntriesHasBeenSet = true;
66 m_failedEntries = std::forward<FailedEntriesT>(value);
67 }
68 template <typename FailedEntriesT = Aws::Vector<BatchUpdateRecommendationStatusFailedEntry>>
70 SetFailedEntries(std::forward<FailedEntriesT>(value));
71 return *this;
72 }
73 template <typename FailedEntriesT = BatchUpdateRecommendationStatusFailedEntry>
75 m_failedEntriesHasBeenSet = true;
76 m_failedEntries.emplace_back(std::forward<FailedEntriesT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Vector<BatchUpdateRecommendationStatusSuccessfulEntry>& GetSuccessfulEntries() const { return m_successfulEntries; }
86 template <typename SuccessfulEntriesT = Aws::Vector<BatchUpdateRecommendationStatusSuccessfulEntry>>
87 void SetSuccessfulEntries(SuccessfulEntriesT&& value) {
88 m_successfulEntriesHasBeenSet = true;
89 m_successfulEntries = std::forward<SuccessfulEntriesT>(value);
90 }
91 template <typename SuccessfulEntriesT = Aws::Vector<BatchUpdateRecommendationStatusSuccessfulEntry>>
93 SetSuccessfulEntries(std::forward<SuccessfulEntriesT>(value));
94 return *this;
95 }
96 template <typename SuccessfulEntriesT = BatchUpdateRecommendationStatusSuccessfulEntry>
98 m_successfulEntriesHasBeenSet = true;
99 m_successfulEntries.emplace_back(std::forward<SuccessfulEntriesT>(value));
100 return *this;
101 }
103
105
106 inline const Aws::String& GetRequestId() const { return m_requestId; }
107 template <typename RequestIdT = Aws::String>
108 void SetRequestId(RequestIdT&& value) {
109 m_requestIdHasBeenSet = true;
110 m_requestId = std::forward<RequestIdT>(value);
111 }
112 template <typename RequestIdT = Aws::String>
114 SetRequestId(std::forward<RequestIdT>(value));
115 return *this;
116 }
118 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
119
120 private:
121 Aws::String m_appArn;
122
124
126
127 Aws::String m_requestId;
128 Aws::Http::HttpResponseCode m_HttpResponseCode;
129 bool m_appArnHasBeenSet = false;
130 bool m_failedEntriesHasBeenSet = false;
131 bool m_successfulEntriesHasBeenSet = false;
132 bool m_requestIdHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace ResilienceHub
137} // namespace Aws
AWS_RESILIENCEHUB_API BatchUpdateRecommendationStatusResult()=default
const Aws::Vector< BatchUpdateRecommendationStatusSuccessfulEntry > & GetSuccessfulEntries() const
BatchUpdateRecommendationStatusResult & AddSuccessfulEntries(SuccessfulEntriesT &&value)
AWS_RESILIENCEHUB_API BatchUpdateRecommendationStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< BatchUpdateRecommendationStatusFailedEntry > & GetFailedEntries() const
BatchUpdateRecommendationStatusResult & WithSuccessfulEntries(SuccessfulEntriesT &&value)
BatchUpdateRecommendationStatusResult & AddFailedEntries(FailedEntriesT &&value)
BatchUpdateRecommendationStatusResult & WithRequestId(RequestIdT &&value)
BatchUpdateRecommendationStatusResult & WithFailedEntries(FailedEntriesT &&value)
AWS_RESILIENCEHUB_API BatchUpdateRecommendationStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue