AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Hits.h
1
6#pragma once
7#include <aws/cloudsearchdomain/CloudSearchDomain_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/cloudsearchdomain/model/Hit.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudSearchDomain
24{
25namespace Model
26{
27
34 class Hits
35 {
36 public:
37 AWS_CLOUDSEARCHDOMAIN_API Hits() = default;
38 AWS_CLOUDSEARCHDOMAIN_API Hits(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDSEARCHDOMAIN_API Hits& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDSEARCHDOMAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline long long GetFound() const { return m_found; }
48 inline bool FoundHasBeenSet() const { return m_foundHasBeenSet; }
49 inline void SetFound(long long value) { m_foundHasBeenSet = true; m_found = value; }
50 inline Hits& WithFound(long long value) { SetFound(value); return *this;}
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) { m_startHasBeenSet = true; m_start = value; }
60 inline Hits& WithStart(long long value) { SetStart(value); return *this;}
62
64
68 inline const Aws::String& GetCursor() const { return m_cursor; }
69 inline bool CursorHasBeenSet() const { return m_cursorHasBeenSet; }
70 template<typename CursorT = Aws::String>
71 void SetCursor(CursorT&& value) { m_cursorHasBeenSet = true; m_cursor = std::forward<CursorT>(value); }
72 template<typename CursorT = Aws::String>
73 Hits& WithCursor(CursorT&& value) { SetCursor(std::forward<CursorT>(value)); return *this;}
75
77
80 inline const Aws::Vector<Hit>& GetHit() const { return m_hit; }
81 inline bool HitHasBeenSet() const { return m_hitHasBeenSet; }
82 template<typename HitT = Aws::Vector<Hit>>
83 void SetHit(HitT&& value) { m_hitHasBeenSet = true; m_hit = std::forward<HitT>(value); }
84 template<typename HitT = Aws::Vector<Hit>>
85 Hits& WithHit(HitT&& value) { SetHit(std::forward<HitT>(value)); return *this;}
86 template<typename HitT = Hit>
87 Hits& AddHit(HitT&& value) { m_hitHasBeenSet = true; m_hit.emplace_back(std::forward<HitT>(value)); return *this; }
89 private:
90
91 long long m_found{0};
92 bool m_foundHasBeenSet = false;
93
94 long long m_start{0};
95 bool m_startHasBeenSet = false;
96
97 Aws::String m_cursor;
98 bool m_cursorHasBeenSet = false;
99
100 Aws::Vector<Hit> m_hit;
101 bool m_hitHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace CloudSearchDomain
106} // namespace Aws
AWS_CLOUDSEARCHDOMAIN_API Hits & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCursor(CursorT &&value)
Definition Hits.h:71
const Aws::String & GetCursor() const
Definition Hits.h:68
AWS_CLOUDSEARCHDOMAIN_API Hits()=default
Hits & WithFound(long long value)
Definition Hits.h:50
Hits & AddHit(HitT &&value)
Definition Hits.h:87
AWS_CLOUDSEARCHDOMAIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetHit(HitT &&value)
Definition Hits.h:83
Hits & WithCursor(CursorT &&value)
Definition Hits.h:73
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:60
const Aws::Vector< Hit > & GetHit() const
Definition Hits.h:80
void SetFound(long long value)
Definition Hits.h:49
long long GetFound() const
Definition Hits.h:47
long long GetStart() const
Definition Hits.h:57
Hits & WithHit(HitT &&value)
Definition Hits.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue