AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
Hits.h
1
6#pragma once
7#include <aws/cloudsearchdomain/CloudSearchDomain_EXPORTS.h>
8#include <aws/cloudsearchdomain/model/Hit.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudSearchDomain {
22namespace Model {
23
30class Hits {
31 public:
32 AWS_CLOUDSEARCHDOMAIN_API Hits() = default;
33 AWS_CLOUDSEARCHDOMAIN_API Hits(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDSEARCHDOMAIN_API Hits& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDSEARCHDOMAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline long long GetFound() const { return m_found; }
42 inline bool FoundHasBeenSet() const { return m_foundHasBeenSet; }
43 inline void SetFound(long long value) {
44 m_foundHasBeenSet = true;
45 m_found = value;
46 }
47 inline Hits& WithFound(long long value) {
48 SetFound(value);
49 return *this;
50 }
52
54
57 inline long long GetStart() const { return m_start; }
58 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
59 inline void SetStart(long long value) {
60 m_startHasBeenSet = true;
61 m_start = value;
62 }
63 inline Hits& WithStart(long long value) {
64 SetStart(value);
65 return *this;
66 }
68
70
74 inline const Aws::String& GetCursor() const { return m_cursor; }
75 inline bool CursorHasBeenSet() const { return m_cursorHasBeenSet; }
76 template <typename CursorT = Aws::String>
77 void SetCursor(CursorT&& value) {
78 m_cursorHasBeenSet = true;
79 m_cursor = std::forward<CursorT>(value);
80 }
81 template <typename CursorT = Aws::String>
82 Hits& WithCursor(CursorT&& value) {
83 SetCursor(std::forward<CursorT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Vector<Hit>& GetHit() const { return m_hit; }
93 inline bool HitHasBeenSet() const { return m_hitHasBeenSet; }
94 template <typename HitT = Aws::Vector<Hit>>
95 void SetHit(HitT&& value) {
96 m_hitHasBeenSet = true;
97 m_hit = std::forward<HitT>(value);
98 }
99 template <typename HitT = Aws::Vector<Hit>>
100 Hits& WithHit(HitT&& value) {
101 SetHit(std::forward<HitT>(value));
102 return *this;
103 }
104 template <typename HitT = Hit>
105 Hits& AddHit(HitT&& value) {
106 m_hitHasBeenSet = true;
107 m_hit.emplace_back(std::forward<HitT>(value));
108 return *this;
109 }
111 private:
112 long long m_found{0};
113
114 long long m_start{0};
115
116 Aws::String m_cursor;
117
118 Aws::Vector<Hit> m_hit;
119 bool m_foundHasBeenSet = false;
120 bool m_startHasBeenSet = false;
121 bool m_cursorHasBeenSet = false;
122 bool m_hitHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace CloudSearchDomain
127} // namespace Aws
AWS_CLOUDSEARCHDOMAIN_API Hits & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCursor(CursorT &&value)
Definition Hits.h:77
const Aws::String & GetCursor() const
Definition Hits.h:74
AWS_CLOUDSEARCHDOMAIN_API Hits()=default
Hits & WithFound(long long value)
Definition Hits.h:47
Hits & AddHit(HitT &&value)
Definition Hits.h:105
AWS_CLOUDSEARCHDOMAIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetHit(HitT &&value)
Definition Hits.h:95
Hits & WithCursor(CursorT &&value)
Definition Hits.h:82
AWS_CLOUDSEARCHDOMAIN_API Hits(Aws::Utils::Json::JsonView jsonValue)
void SetStart(long long value)
Definition Hits.h:59
Hits & WithStart(long long value)
Definition Hits.h:63
const Aws::Vector< Hit > & GetHit() const
Definition Hits.h:92
void SetFound(long long value)
Definition Hits.h:43
long long GetFound() const
Definition Hits.h:41
long long GetStart() const
Definition Hits.h:57
Hits & WithHit(HitT &&value)
Definition Hits.h:100
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue