AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
BatchGetCaseRuleResult.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/model/CaseRuleError.h>
9#include <aws/connectcases/model/GetCaseRuleResponse.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.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 ConnectCases {
26namespace Model {
28 public:
29 AWS_CONNECTCASES_API BatchGetCaseRuleResult() = default;
32
34
37 inline const Aws::Vector<GetCaseRuleResponse>& GetCaseRules() const { return m_caseRules; }
38 template <typename CaseRulesT = Aws::Vector<GetCaseRuleResponse>>
39 void SetCaseRules(CaseRulesT&& value) {
40 m_caseRulesHasBeenSet = true;
41 m_caseRules = std::forward<CaseRulesT>(value);
42 }
43 template <typename CaseRulesT = Aws::Vector<GetCaseRuleResponse>>
45 SetCaseRules(std::forward<CaseRulesT>(value));
46 return *this;
47 }
48 template <typename CaseRulesT = GetCaseRuleResponse>
49 BatchGetCaseRuleResult& AddCaseRules(CaseRulesT&& value) {
50 m_caseRulesHasBeenSet = true;
51 m_caseRules.emplace_back(std::forward<CaseRulesT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<CaseRuleError>& GetErrors() const { return m_errors; }
61 template <typename ErrorsT = Aws::Vector<CaseRuleError>>
62 void SetErrors(ErrorsT&& value) {
63 m_errorsHasBeenSet = true;
64 m_errors = std::forward<ErrorsT>(value);
65 }
66 template <typename ErrorsT = Aws::Vector<CaseRuleError>>
68 SetErrors(std::forward<ErrorsT>(value));
69 return *this;
70 }
71 template <typename ErrorsT = CaseRuleError>
73 m_errorsHasBeenSet = true;
74 m_errors.emplace_back(std::forward<ErrorsT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::Vector<Aws::String>& GetUnprocessedCaseRules() const { return m_unprocessedCaseRules; }
84 template <typename UnprocessedCaseRulesT = Aws::Vector<Aws::String>>
85 void SetUnprocessedCaseRules(UnprocessedCaseRulesT&& value) {
86 m_unprocessedCaseRulesHasBeenSet = true;
87 m_unprocessedCaseRules = std::forward<UnprocessedCaseRulesT>(value);
88 }
89 template <typename UnprocessedCaseRulesT = Aws::Vector<Aws::String>>
90 BatchGetCaseRuleResult& WithUnprocessedCaseRules(UnprocessedCaseRulesT&& value) {
91 SetUnprocessedCaseRules(std::forward<UnprocessedCaseRulesT>(value));
92 return *this;
93 }
94 template <typename UnprocessedCaseRulesT = Aws::String>
95 BatchGetCaseRuleResult& AddUnprocessedCaseRules(UnprocessedCaseRulesT&& value) {
96 m_unprocessedCaseRulesHasBeenSet = true;
97 m_unprocessedCaseRules.emplace_back(std::forward<UnprocessedCaseRulesT>(value));
98 return *this;
99 }
101
103
104 inline const Aws::String& GetRequestId() const { return m_requestId; }
105 template <typename RequestIdT = Aws::String>
106 void SetRequestId(RequestIdT&& value) {
107 m_requestIdHasBeenSet = true;
108 m_requestId = std::forward<RequestIdT>(value);
109 }
110 template <typename RequestIdT = Aws::String>
112 SetRequestId(std::forward<RequestIdT>(value));
113 return *this;
114 }
116 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
117
118 private:
120
122
123 Aws::Vector<Aws::String> m_unprocessedCaseRules;
124
125 Aws::String m_requestId;
126 Aws::Http::HttpResponseCode m_HttpResponseCode;
127 bool m_caseRulesHasBeenSet = false;
128 bool m_errorsHasBeenSet = false;
129 bool m_unprocessedCaseRulesHasBeenSet = false;
130 bool m_requestIdHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace ConnectCases
135} // namespace Aws
const Aws::Vector< CaseRuleError > & GetErrors() const
BatchGetCaseRuleResult & WithUnprocessedCaseRules(UnprocessedCaseRulesT &&value)
BatchGetCaseRuleResult & WithErrors(ErrorsT &&value)
BatchGetCaseRuleResult & WithCaseRules(CaseRulesT &&value)
BatchGetCaseRuleResult & AddUnprocessedCaseRules(UnprocessedCaseRulesT &&value)
BatchGetCaseRuleResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Aws::String > & GetUnprocessedCaseRules() const
BatchGetCaseRuleResult & AddCaseRules(CaseRulesT &&value)
BatchGetCaseRuleResult & AddErrors(ErrorsT &&value)
const Aws::Vector< GetCaseRuleResponse > & GetCaseRules() const
AWS_CONNECTCASES_API BatchGetCaseRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CONNECTCASES_API BatchGetCaseRuleResult()=default
AWS_CONNECTCASES_API BatchGetCaseRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetUnprocessedCaseRules(UnprocessedCaseRulesT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue