AWS SDK for C++  0.14.3
AWS SDK for C++
ExpressionStatus.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  ExpressionStatus& 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 
52  inline const Expression& GetOptions() const{ return m_options; }
53 
58  inline void SetOptions(const Expression& value) { m_optionsHasBeenSet = true; m_options = value; }
59 
64  inline void SetOptions(Expression&& value) { m_optionsHasBeenSet = true; m_options = value; }
65 
70  inline ExpressionStatus& WithOptions(const Expression& value) { SetOptions(value); return *this;}
71 
76  inline ExpressionStatus& WithOptions(Expression&& value) { SetOptions(value); return *this;}
77 
78 
79  inline const OptionStatus& GetStatus() const{ return m_status; }
80 
81 
82  inline void SetStatus(const OptionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
83 
84 
85  inline void SetStatus(OptionStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
86 
87 
88  inline ExpressionStatus& WithStatus(const OptionStatus& value) { SetStatus(value); return *this;}
89 
90 
91  inline ExpressionStatus& WithStatus(OptionStatus&& value) { SetStatus(value); return *this;}
92 
93  private:
94  Expression m_options;
95  bool m_optionsHasBeenSet;
96  OptionStatus m_status;
97  bool m_statusHasBeenSet;
98  };
99 
100 } // namespace Model
101 } // namespace CloudSearch
102 } // namespace Aws
ExpressionStatus & WithOptions(Expression &&value)
ExpressionStatus & WithStatus(OptionStatus &&value)
const OptionStatus & GetStatus() const
ExpressionStatus & WithStatus(const OptionStatus &value)
void SetOptions(const Expression &value)
ExpressionStatus & WithOptions(const Expression &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetStatus(const OptionStatus &value)
#define AWS_CLOUDSEARCH_API
JSON (JavaScript Object Notation).
const Expression & GetOptions() const