AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
GetMergeCasesStatusResult.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/model/MergeStatus.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace ConnectCases {
25namespace Model {
27 public:
28 AWS_CONNECTCASES_API GetMergeCasesStatusResult() = default;
31
33
36 inline MergeStatus GetStatus() const { return m_status; }
37 inline void SetStatus(MergeStatus value) {
38 m_statusHasBeenSet = true;
39 m_status = value;
40 }
42 SetStatus(value);
43 return *this;
44 }
46
48
51 inline const Aws::String& GetPrimaryCaseId() const { return m_primaryCaseId; }
52 template <typename PrimaryCaseIdT = Aws::String>
53 void SetPrimaryCaseId(PrimaryCaseIdT&& value) {
54 m_primaryCaseIdHasBeenSet = true;
55 m_primaryCaseId = std::forward<PrimaryCaseIdT>(value);
56 }
57 template <typename PrimaryCaseIdT = Aws::String>
59 SetPrimaryCaseId(std::forward<PrimaryCaseIdT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::Vector<Aws::String>& GetSecondaryCaseIds() const { return m_secondaryCaseIds; }
69 template <typename SecondaryCaseIdsT = Aws::Vector<Aws::String>>
70 void SetSecondaryCaseIds(SecondaryCaseIdsT&& value) {
71 m_secondaryCaseIdsHasBeenSet = true;
72 m_secondaryCaseIds = std::forward<SecondaryCaseIdsT>(value);
73 }
74 template <typename SecondaryCaseIdsT = Aws::Vector<Aws::String>>
75 GetMergeCasesStatusResult& WithSecondaryCaseIds(SecondaryCaseIdsT&& value) {
76 SetSecondaryCaseIds(std::forward<SecondaryCaseIdsT>(value));
77 return *this;
78 }
79 template <typename SecondaryCaseIdsT = Aws::String>
80 GetMergeCasesStatusResult& AddSecondaryCaseIds(SecondaryCaseIdsT&& value) {
81 m_secondaryCaseIdsHasBeenSet = true;
82 m_secondaryCaseIds.emplace_back(std::forward<SecondaryCaseIdsT>(value));
83 return *this;
84 }
86
88
89 inline const Aws::String& GetRequestId() const { return m_requestId; }
90 template <typename RequestIdT = Aws::String>
91 void SetRequestId(RequestIdT&& value) {
92 m_requestIdHasBeenSet = true;
93 m_requestId = std::forward<RequestIdT>(value);
94 }
95 template <typename RequestIdT = Aws::String>
97 SetRequestId(std::forward<RequestIdT>(value));
98 return *this;
99 }
101 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
102
103 private:
105
106 Aws::String m_primaryCaseId;
107
108 Aws::Vector<Aws::String> m_secondaryCaseIds;
109
110 Aws::String m_requestId;
111 Aws::Http::HttpResponseCode m_HttpResponseCode;
112 bool m_statusHasBeenSet = false;
113 bool m_primaryCaseIdHasBeenSet = false;
114 bool m_secondaryCaseIdsHasBeenSet = false;
115 bool m_requestIdHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace ConnectCases
120} // namespace Aws
GetMergeCasesStatusResult & WithStatus(MergeStatus value)
GetMergeCasesStatusResult & WithPrimaryCaseId(PrimaryCaseIdT &&value)
AWS_CONNECTCASES_API GetMergeCasesStatusResult()=default
GetMergeCasesStatusResult & AddSecondaryCaseIds(SecondaryCaseIdsT &&value)
AWS_CONNECTCASES_API GetMergeCasesStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CONNECTCASES_API GetMergeCasesStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMergeCasesStatusResult & WithSecondaryCaseIds(SecondaryCaseIdsT &&value)
const Aws::Vector< Aws::String > & GetSecondaryCaseIds() const
GetMergeCasesStatusResult & WithRequestId(RequestIdT &&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