AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCursor(const Aws::String& value) { m_cursorHasBeenSet = true; m_cursor = value; }
71 inline void SetCursor(Aws::String&& value) { m_cursorHasBeenSet = true; m_cursor = std::move(value); }
72 inline void SetCursor(const char* value) { m_cursorHasBeenSet = true; m_cursor.assign(value); }
73 inline Hits& WithCursor(const Aws::String& value) { SetCursor(value); return *this;}
74 inline Hits& WithCursor(Aws::String&& value) { SetCursor(std::move(value)); return *this;}
75 inline Hits& WithCursor(const char* value) { SetCursor(value); return *this;}
77
79
82 inline const Aws::Vector<Hit>& GetHit() const{ return m_hit; }
83 inline bool HitHasBeenSet() const { return m_hitHasBeenSet; }
84 inline void SetHit(const Aws::Vector<Hit>& value) { m_hitHasBeenSet = true; m_hit = value; }
85 inline void SetHit(Aws::Vector<Hit>&& value) { m_hitHasBeenSet = true; m_hit = std::move(value); }
86 inline Hits& WithHit(const Aws::Vector<Hit>& value) { SetHit(value); return *this;}
87 inline Hits& WithHit(Aws::Vector<Hit>&& value) { SetHit(std::move(value)); return *this;}
88 inline Hits& AddHit(const Hit& value) { m_hitHasBeenSet = true; m_hit.push_back(value); return *this; }
89 inline Hits& AddHit(Hit&& value) { m_hitHasBeenSet = true; m_hit.push_back(std::move(value)); return *this; }
91 private:
92
93 long long m_found;
94 bool m_foundHasBeenSet = false;
95
96 long long m_start;
97 bool m_startHasBeenSet = false;
98
99 Aws::String m_cursor;
100 bool m_cursorHasBeenSet = false;
101
102 Aws::Vector<Hit> m_hit;
103 bool m_hitHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace CloudSearchDomain
108} // namespace Aws
AWS_CLOUDSEARCHDOMAIN_API Hits & operator=(Aws::Utils::Json::JsonView jsonValue)
Hits & WithCursor(const char *value)
Definition Hits.h:75
Hits & WithHit(Aws::Vector< Hit > &&value)
Definition Hits.h:87
const Aws::String & GetCursor() const
Definition Hits.h:68
Hits & WithFound(long long value)
Definition Hits.h:50
void SetHit(Aws::Vector< Hit > &&value)
Definition Hits.h:85
Hits & AddHit(Hit &&value)
Definition Hits.h:89
void SetCursor(const char *value)
Definition Hits.h:72
Hits & AddHit(const Hit &value)
Definition Hits.h:88
AWS_CLOUDSEARCHDOMAIN_API Aws::Utils::Json::JsonValue Jsonize() const
Hits & WithHit(const Aws::Vector< Hit > &value)
Definition Hits.h:86
AWS_CLOUDSEARCHDOMAIN_API Hits(Aws::Utils::Json::JsonView jsonValue)
void SetCursor(const Aws::String &value)
Definition Hits.h:70
void SetStart(long long value)
Definition Hits.h:59
Hits & WithCursor(const Aws::String &value)
Definition Hits.h:73
void SetCursor(Aws::String &&value)
Definition Hits.h:71
Hits & WithStart(long long value)
Definition Hits.h:60
const Aws::Vector< Hit > & GetHit() const
Definition Hits.h:82
void SetHit(const Aws::Vector< Hit > &value)
Definition Hits.h:84
Hits & WithCursor(Aws::String &&value)
Definition Hits.h:74
void SetFound(long long value)
Definition Hits.h:49
AWS_CLOUDSEARCHDOMAIN_API Hits()
long long GetFound() const
Definition Hits.h:47
long long GetStart() const
Definition Hits.h:57
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue