AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
ListCasesResult.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/security-ir/SecurityIR_EXPORTS.h>
11#include <aws/security-ir/model/ListCasesItem.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 SecurityIR {
25namespace Model {
27 public:
28 AWS_SECURITYIR_API ListCasesResult() = default;
31
33
37 inline const Aws::String& GetNextToken() const { return m_nextToken; }
38 template <typename NextTokenT = Aws::String>
39 void SetNextToken(NextTokenT&& value) {
40 m_nextTokenHasBeenSet = true;
41 m_nextToken = std::forward<NextTokenT>(value);
42 }
43 template <typename NextTokenT = Aws::String>
44 ListCasesResult& WithNextToken(NextTokenT&& value) {
45 SetNextToken(std::forward<NextTokenT>(value));
46 return *this;
47 }
49
51
56 inline const Aws::Vector<ListCasesItem>& GetItems() const { return m_items; }
57 template <typename ItemsT = Aws::Vector<ListCasesItem>>
58 void SetItems(ItemsT&& value) {
59 m_itemsHasBeenSet = true;
60 m_items = std::forward<ItemsT>(value);
61 }
62 template <typename ItemsT = Aws::Vector<ListCasesItem>>
63 ListCasesResult& WithItems(ItemsT&& value) {
64 SetItems(std::forward<ItemsT>(value));
65 return *this;
66 }
67 template <typename ItemsT = ListCasesItem>
68 ListCasesResult& AddItems(ItemsT&& value) {
69 m_itemsHasBeenSet = true;
70 m_items.emplace_back(std::forward<ItemsT>(value));
71 return *this;
72 }
74
76
79 inline long long GetTotal() const { return m_total; }
80 inline void SetTotal(long long value) {
81 m_totalHasBeenSet = true;
82 m_total = value;
83 }
84 inline ListCasesResult& WithTotal(long long value) {
85 SetTotal(value);
86 return *this;
87 }
89
91
92 inline const Aws::String& GetRequestId() const { return m_requestId; }
93 template <typename RequestIdT = Aws::String>
94 void SetRequestId(RequestIdT&& value) {
95 m_requestIdHasBeenSet = true;
96 m_requestId = std::forward<RequestIdT>(value);
97 }
98 template <typename RequestIdT = Aws::String>
99 ListCasesResult& WithRequestId(RequestIdT&& value) {
100 SetRequestId(std::forward<RequestIdT>(value));
101 return *this;
102 }
104 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
105
106 private:
107 Aws::String m_nextToken;
108
110
111 long long m_total{0};
112
113 Aws::String m_requestId;
114 Aws::Http::HttpResponseCode m_HttpResponseCode;
115 bool m_nextTokenHasBeenSet = false;
116 bool m_itemsHasBeenSet = false;
117 bool m_totalHasBeenSet = false;
118 bool m_requestIdHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace SecurityIR
123} // namespace Aws
ListCasesResult & AddItems(ItemsT &&value)
ListCasesResult & WithNextToken(NextTokenT &&value)
ListCasesResult & WithRequestId(RequestIdT &&value)
AWS_SECURITYIR_API ListCasesResult()=default
AWS_SECURITYIR_API ListCasesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_SECURITYIR_API ListCasesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListCasesResult & WithTotal(long long value)
const Aws::Vector< ListCasesItem > & GetItems() const
const Aws::String & GetNextToken() const
const Aws::String & GetRequestId() const
ListCasesResult & WithItems(ItemsT &&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