AWS SDK for C++  0.12.9
AWS SDK for C++
SuggestRequest.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
19 
20 namespace Aws
21 {
22 namespace Http
23 {
24  class URI;
25 } //namespace Http
26 namespace CloudSearchDomain
27 {
28 namespace Model
29 {
30 
35  {
36  public:
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
45  inline const Aws::String& GetQuery() const{ return m_query; }
46 
50  inline void SetQuery(const Aws::String& value) { m_queryHasBeenSet = true; m_query = value; }
51 
55  inline void SetQuery(Aws::String&& value) { m_queryHasBeenSet = true; m_query = value; }
56 
60  inline void SetQuery(const char* value) { m_queryHasBeenSet = true; m_query.assign(value); }
61 
65  inline SuggestRequest& WithQuery(const Aws::String& value) { SetQuery(value); return *this;}
66 
70  inline SuggestRequest& WithQuery(Aws::String&& value) { SetQuery(value); return *this;}
71 
75  inline SuggestRequest& WithQuery(const char* value) { SetQuery(value); return *this;}
76 
80  inline const Aws::String& GetSuggester() const{ return m_suggester; }
81 
85  inline void SetSuggester(const Aws::String& value) { m_suggesterHasBeenSet = true; m_suggester = value; }
86 
90  inline void SetSuggester(Aws::String&& value) { m_suggesterHasBeenSet = true; m_suggester = value; }
91 
95  inline void SetSuggester(const char* value) { m_suggesterHasBeenSet = true; m_suggester.assign(value); }
96 
100  inline SuggestRequest& WithSuggester(const Aws::String& value) { SetSuggester(value); return *this;}
101 
105  inline SuggestRequest& WithSuggester(Aws::String&& value) { SetSuggester(value); return *this;}
106 
110  inline SuggestRequest& WithSuggester(const char* value) { SetSuggester(value); return *this;}
111 
115  inline long long GetSize() const{ return m_size; }
116 
120  inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
121 
125  inline SuggestRequest& WithSize(long long value) { SetSize(value); return *this;}
126 
127  private:
128  Aws::String m_query;
129  bool m_queryHasBeenSet;
130  Aws::String m_suggester;
131  bool m_suggesterHasBeenSet;
132  long long m_size;
133  bool m_sizeHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace CloudSearchDomain
138 } // namespace Aws
SuggestRequest & WithQuery(Aws::String &&value)
SuggestRequest & WithSuggester(Aws::String &&value)
SuggestRequest & WithSuggester(const Aws::String &value)
const Aws::String & GetSuggester() const
void SetQuery(const Aws::String &value)
SuggestRequest & WithSuggester(const char *value)
SuggestRequest & WithSize(long long value)
#define AWS_CLOUDSEARCHDOMAIN_API
SuggestRequest & WithQuery(const Aws::String &value)
SuggestRequest & WithQuery(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetSuggester(const Aws::String &value)
JSON (JavaScript Object Notation).