AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
ListCommentsResult.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/ListCommentsItem.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 ListCommentsResult() = 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 ListCommentsResult& WithNextToken(NextTokenT&& value) {
44 SetNextToken(std::forward<NextTokenT>(value));
45 return *this;
46 }
48
50
54 inline const Aws::Vector<ListCommentsItem>& GetItems() const { return m_items; }
55 template <typename ItemsT = Aws::Vector<ListCommentsItem>>
56 void SetItems(ItemsT&& value) {
57 m_itemsHasBeenSet = true;
58 m_items = std::forward<ItemsT>(value);
59 }
60 template <typename ItemsT = Aws::Vector<ListCommentsItem>>
61 ListCommentsResult& WithItems(ItemsT&& value) {
62 SetItems(std::forward<ItemsT>(value));
63 return *this;
64 }
65 template <typename ItemsT = ListCommentsItem>
66 ListCommentsResult& AddItems(ItemsT&& value) {
67 m_itemsHasBeenSet = true;
68 m_items.emplace_back(std::forward<ItemsT>(value));
69 return *this;
70 }
72
74
77 inline int GetTotal() const { return m_total; }
78 inline void SetTotal(int value) {
79 m_totalHasBeenSet = true;
80 m_total = value;
81 }
82 inline ListCommentsResult& WithTotal(int value) {
83 SetTotal(value);
84 return *this;
85 }
87
89
90 inline const Aws::String& GetRequestId() const { return m_requestId; }
91 template <typename RequestIdT = Aws::String>
92 void SetRequestId(RequestIdT&& value) {
93 m_requestIdHasBeenSet = true;
94 m_requestId = std::forward<RequestIdT>(value);
95 }
96 template <typename RequestIdT = Aws::String>
97 ListCommentsResult& WithRequestId(RequestIdT&& value) {
98 SetRequestId(std::forward<RequestIdT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_nextToken;
104
106
107 int m_total{0};
108
109 Aws::String m_requestId;
110 bool m_nextTokenHasBeenSet = false;
111 bool m_itemsHasBeenSet = false;
112 bool m_totalHasBeenSet = false;
113 bool m_requestIdHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace SecurityIR
118} // namespace Aws
ListCommentsResult & WithItems(ItemsT &&value)
AWS_SECURITYIR_API ListCommentsResult()=default
AWS_SECURITYIR_API ListCommentsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListCommentsResult & WithTotal(int value)
ListCommentsResult & AddItems(ItemsT &&value)
AWS_SECURITYIR_API ListCommentsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< ListCommentsItem > & GetItems() const
ListCommentsResult & WithRequestId(RequestIdT &&value)
ListCommentsResult & WithNextToken(NextTokenT &&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