AWS SDK for C++  0.14.3
AWS SDK for C++
SuggesterStatus.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 Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace CloudSearch
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  SuggesterStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
48 
49  inline const Suggester& GetOptions() const{ return m_options; }
50 
51 
52  inline void SetOptions(const Suggester& value) { m_optionsHasBeenSet = true; m_options = value; }
53 
54 
55  inline void SetOptions(Suggester&& value) { m_optionsHasBeenSet = true; m_options = value; }
56 
57 
58  inline SuggesterStatus& WithOptions(const Suggester& value) { SetOptions(value); return *this;}
59 
60 
61  inline SuggesterStatus& WithOptions(Suggester&& value) { SetOptions(value); return *this;}
62 
63 
64  inline const OptionStatus& GetStatus() const{ return m_status; }
65 
66 
67  inline void SetStatus(const OptionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
68 
69 
70  inline void SetStatus(OptionStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
71 
72 
73  inline SuggesterStatus& WithStatus(const OptionStatus& value) { SetStatus(value); return *this;}
74 
75 
76  inline SuggesterStatus& WithStatus(OptionStatus&& value) { SetStatus(value); return *this;}
77 
78  private:
79  Suggester m_options;
80  bool m_optionsHasBeenSet;
81  OptionStatus m_status;
82  bool m_statusHasBeenSet;
83  };
84 
85 } // namespace Model
86 } // namespace CloudSearch
87 } // namespace Aws
const OptionStatus & GetStatus() const
SuggesterStatus & WithOptions(const Suggester &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const Suggester & GetOptions() const
SuggesterStatus & WithOptions(Suggester &&value)
#define AWS_CLOUDSEARCH_API
void SetStatus(OptionStatus &&value)
SuggesterStatus & WithStatus(OptionStatus &&value)
void SetStatus(const OptionStatus &value)
void SetOptions(const Suggester &value)
SuggesterStatus & WithStatus(const OptionStatus &value)
JSON (JavaScript Object Notation).