AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ListCasesResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/security-ir/SecurityIR_EXPORTS.h>
10#include <aws/security-ir/model/ListCasesItem.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace SecurityIR {
24namespace Model {
26 public:
27 AWS_SECURITYIR_API ListCasesResult() = default;
30
32
36 inline const Aws::String& GetNextToken() const { return m_nextToken; }
37 template <typename NextTokenT = Aws::String>
38 void SetNextToken(NextTokenT&& value) {
39 m_nextTokenHasBeenSet = true;
40 m_nextToken = std::forward<NextTokenT>(value);
41 }
42 template <typename NextTokenT = Aws::String>
43 ListCasesResult& WithNextToken(NextTokenT&& value) {
44 SetNextToken(std::forward<NextTokenT>(value));
45 return *this;
46 }
48
50
55 inline const Aws::Vector<ListCasesItem>& GetItems() const { return m_items; }
56 template <typename ItemsT = Aws::Vector<ListCasesItem>>
57 void SetItems(ItemsT&& value) {
58 m_itemsHasBeenSet = true;
59 m_items = std::forward<ItemsT>(value);
60 }
61 template <typename ItemsT = Aws::Vector<ListCasesItem>>
62 ListCasesResult& WithItems(ItemsT&& value) {
63 SetItems(std::forward<ItemsT>(value));
64 return *this;
65 }
66 template <typename ItemsT = ListCasesItem>
67 ListCasesResult& AddItems(ItemsT&& value) {
68 m_itemsHasBeenSet = true;
69 m_items.emplace_back(std::forward<ItemsT>(value));
70 return *this;
71 }
73
75
78 inline long long GetTotal() const { return m_total; }
79 inline void SetTotal(long long value) {
80 m_totalHasBeenSet = true;
81 m_total = value;
82 }
83 inline ListCasesResult& WithTotal(long long value) {
84 SetTotal(value);
85 return *this;
86 }
88
90
91 inline const Aws::String& GetRequestId() const { return m_requestId; }
92 template <typename RequestIdT = Aws::String>
93 void SetRequestId(RequestIdT&& value) {
94 m_requestIdHasBeenSet = true;
95 m_requestId = std::forward<RequestIdT>(value);
96 }
97 template <typename RequestIdT = Aws::String>
98 ListCasesResult& WithRequestId(RequestIdT&& value) {
99 SetRequestId(std::forward<RequestIdT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_nextToken;
105
107
108 long long m_total{0};
109
110 Aws::String m_requestId;
111 bool m_nextTokenHasBeenSet = false;
112 bool m_itemsHasBeenSet = false;
113 bool m_totalHasBeenSet = false;
114 bool m_requestIdHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace SecurityIR
119} // 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_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