AWS SDK for C++  0.14.3
AWS SDK for C++
SuggestResult.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 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace CloudSearchDomain
33 {
34 namespace Model
35 {
40  {
41  public:
42  SuggestResult();
45 
51  inline const SuggestStatus& GetStatus() const{ return m_status; }
52 
58  inline void SetStatus(const SuggestStatus& value) { m_status = value; }
59 
65  inline void SetStatus(SuggestStatus&& value) { m_status = value; }
66 
72  inline SuggestResult& WithStatus(const SuggestStatus& value) { SetStatus(value); return *this;}
73 
79  inline SuggestResult& WithStatus(SuggestStatus&& value) { SetStatus(value); return *this;}
80 
84  inline const SuggestModel& GetSuggest() const{ return m_suggest; }
85 
89  inline void SetSuggest(const SuggestModel& value) { m_suggest = value; }
90 
94  inline void SetSuggest(SuggestModel&& value) { m_suggest = value; }
95 
99  inline SuggestResult& WithSuggest(const SuggestModel& value) { SetSuggest(value); return *this;}
100 
104  inline SuggestResult& WithSuggest(SuggestModel&& value) { SetSuggest(value); return *this;}
105 
106  private:
107  SuggestStatus m_status;
108  SuggestModel m_suggest;
109  };
110 
111 } // namespace Model
112 } // namespace CloudSearchDomain
113 } // namespace Aws
void SetSuggest(const SuggestModel &value)
Definition: SuggestResult.h:89
void SetStatus(SuggestStatus &&value)
Definition: SuggestResult.h:65
const SuggestModel & GetSuggest() const
Definition: SuggestResult.h:84
SuggestResult & WithSuggest(SuggestModel &&value)
void SetStatus(const SuggestStatus &value)
Definition: SuggestResult.h:58
SuggestResult & WithSuggest(const SuggestModel &value)
Definition: SuggestResult.h:99
#define AWS_CLOUDSEARCHDOMAIN_API
SuggestResult & WithStatus(const SuggestStatus &value)
Definition: SuggestResult.h:72
SuggestResult & WithStatus(SuggestStatus &&value)
Definition: SuggestResult.h:79
const SuggestStatus & GetStatus() const
Definition: SuggestResult.h:51
JSON (JavaScript Object Notation).