AWS SDK for C++  0.14.3
AWS SDK for C++
Hits.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace CloudSearchDomain
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  Hits();
42  Hits(const Aws::Utils::Json::JsonValue& jsonValue);
43  Hits& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline long long GetFound() const{ return m_found; }
50 
54  inline void SetFound(long long value) { m_foundHasBeenSet = true; m_found = value; }
55 
59  inline Hits& WithFound(long long value) { SetFound(value); return *this;}
60 
64  inline long long GetStart() const{ return m_start; }
65 
69  inline void SetStart(long long value) { m_startHasBeenSet = true; m_start = value; }
70 
74  inline Hits& WithStart(long long value) { SetStart(value); return *this;}
75 
80  inline const Aws::String& GetCursor() const{ return m_cursor; }
81 
86  inline void SetCursor(const Aws::String& value) { m_cursorHasBeenSet = true; m_cursor = value; }
87 
92  inline void SetCursor(Aws::String&& value) { m_cursorHasBeenSet = true; m_cursor = value; }
93 
98  inline void SetCursor(const char* value) { m_cursorHasBeenSet = true; m_cursor.assign(value); }
99 
104  inline Hits& WithCursor(const Aws::String& value) { SetCursor(value); return *this;}
105 
110  inline Hits& WithCursor(Aws::String&& value) { SetCursor(value); return *this;}
111 
116  inline Hits& WithCursor(const char* value) { SetCursor(value); return *this;}
117 
121  inline const Aws::Vector<Hit>& GetHit() const{ return m_hit; }
122 
126  inline void SetHit(const Aws::Vector<Hit>& value) { m_hitHasBeenSet = true; m_hit = value; }
127 
131  inline void SetHit(Aws::Vector<Hit>&& value) { m_hitHasBeenSet = true; m_hit = value; }
132 
136  inline Hits& WithHit(const Aws::Vector<Hit>& value) { SetHit(value); return *this;}
137 
141  inline Hits& WithHit(Aws::Vector<Hit>&& value) { SetHit(value); return *this;}
142 
146  inline Hits& AddHit(const Hit& value) { m_hitHasBeenSet = true; m_hit.push_back(value); return *this; }
147 
151  inline Hits& AddHit(Hit&& value) { m_hitHasBeenSet = true; m_hit.push_back(value); return *this; }
152 
153  private:
154  long long m_found;
155  bool m_foundHasBeenSet;
156  long long m_start;
157  bool m_startHasBeenSet;
158  Aws::String m_cursor;
159  bool m_cursorHasBeenSet;
160  Aws::Vector<Hit> m_hit;
161  bool m_hitHasBeenSet;
162  };
163 
164 } // namespace Model
165 } // namespace CloudSearchDomain
166 } // namespace Aws
Hits & AddHit(Hit &&value)
Definition: Hits.h:151
Hits & WithStart(long long value)
Definition: Hits.h:74
void SetHit(const Aws::Vector< Hit > &value)
Definition: Hits.h:126
Hits & WithFound(long long value)
Definition: Hits.h:59
const Aws::Vector< Hit > & GetHit() const
Definition: Hits.h:121
void SetStart(long long value)
Definition: Hits.h:69
Hits & WithHit(Aws::Vector< Hit > &&value)
Definition: Hits.h:141
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
long long GetStart() const
Definition: Hits.h:64
Hits & WithCursor(const Aws::String &value)
Definition: Hits.h:104
void SetCursor(const Aws::String &value)
Definition: Hits.h:86
void SetFound(long long value)
Definition: Hits.h:54
Hits & WithCursor(const char *value)
Definition: Hits.h:116
void SetHit(Aws::Vector< Hit > &&value)
Definition: Hits.h:131
long long GetFound() const
Definition: Hits.h:49
#define AWS_CLOUDSEARCHDOMAIN_API
void SetCursor(const char *value)
Definition: Hits.h:98
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetCursor() const
Definition: Hits.h:80
Hits & WithHit(const Aws::Vector< Hit > &value)
Definition: Hits.h:136
void SetCursor(Aws::String &&value)
Definition: Hits.h:92
Hits & AddHit(const Hit &value)
Definition: Hits.h:146
JSON (JavaScript Object Notation).
Hits & WithCursor(Aws::String &&value)
Definition: Hits.h:110