AWS SDK for C++  0.12.9
AWS SDK for C++
SuggestionMatch.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace CloudSearchDomain
29 {
30 namespace Model
31 {
32 
38  {
39  public:
42  SuggestionMatch& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
49  inline const Aws::String& GetSuggestion() const{ return m_suggestion; }
50 
55  inline void SetSuggestion(const Aws::String& value) { m_suggestionHasBeenSet = true; m_suggestion = value; }
56 
61  inline void SetSuggestion(Aws::String&& value) { m_suggestionHasBeenSet = true; m_suggestion = value; }
62 
67  inline void SetSuggestion(const char* value) { m_suggestionHasBeenSet = true; m_suggestion.assign(value); }
68 
73  inline SuggestionMatch& WithSuggestion(const Aws::String& value) { SetSuggestion(value); return *this;}
74 
79  inline SuggestionMatch& WithSuggestion(Aws::String&& value) { SetSuggestion(value); return *this;}
80 
85  inline SuggestionMatch& WithSuggestion(const char* value) { SetSuggestion(value); return *this;}
86 
90  inline long long GetScore() const{ return m_score; }
91 
95  inline void SetScore(long long value) { m_scoreHasBeenSet = true; m_score = value; }
96 
100  inline SuggestionMatch& WithScore(long long value) { SetScore(value); return *this;}
101 
105  inline const Aws::String& GetId() const{ return m_id; }
106 
110  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
111 
115  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
116 
120  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
121 
125  inline SuggestionMatch& WithId(const Aws::String& value) { SetId(value); return *this;}
126 
130  inline SuggestionMatch& WithId(Aws::String&& value) { SetId(value); return *this;}
131 
135  inline SuggestionMatch& WithId(const char* value) { SetId(value); return *this;}
136 
137  private:
138  Aws::String m_suggestion;
139  bool m_suggestionHasBeenSet;
140  long long m_score;
141  bool m_scoreHasBeenSet;
142  Aws::String m_id;
143  bool m_idHasBeenSet;
144  };
145 
146 } // namespace Model
147 } // namespace CloudSearchDomain
148 } // namespace Aws
SuggestionMatch & WithId(const char *value)
SuggestionMatch & WithId(const Aws::String &value)
SuggestionMatch & WithSuggestion(const Aws::String &value)
SuggestionMatch & WithScore(long long value)
void SetSuggestion(const Aws::String &value)
#define AWS_CLOUDSEARCHDOMAIN_API
SuggestionMatch & WithSuggestion(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SuggestionMatch & WithId(Aws::String &&value)
const Aws::String & GetSuggestion() const
JSON (JavaScript Object Notation).
SuggestionMatch & WithSuggestion(const char *value)