AWS SDK for C++  0.12.9
AWS SDK for C++
Expression.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 Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace CloudSearch
30 {
31 namespace Model
32 {
33 
40  {
41  public:
42  Expression();
43  Expression(const Aws::Utils::Xml::XmlNode& xmlNode);
44  Expression& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
49 
50  inline const Aws::String& GetExpressionName() const{ return m_expressionName; }
51 
52 
53  inline void SetExpressionName(const Aws::String& value) { m_expressionNameHasBeenSet = true; m_expressionName = value; }
54 
55 
56  inline void SetExpressionName(Aws::String&& value) { m_expressionNameHasBeenSet = true; m_expressionName = value; }
57 
58 
59  inline void SetExpressionName(const char* value) { m_expressionNameHasBeenSet = true; m_expressionName.assign(value); }
60 
61 
62  inline Expression& WithExpressionName(const Aws::String& value) { SetExpressionName(value); return *this;}
63 
64 
65  inline Expression& WithExpressionName(Aws::String&& value) { SetExpressionName(value); return *this;}
66 
67 
68  inline Expression& WithExpressionName(const char* value) { SetExpressionName(value); return *this;}
69 
70 
71  inline const Aws::String& GetExpressionValue() const{ return m_expressionValue; }
72 
73 
74  inline void SetExpressionValue(const Aws::String& value) { m_expressionValueHasBeenSet = true; m_expressionValue = value; }
75 
76 
77  inline void SetExpressionValue(Aws::String&& value) { m_expressionValueHasBeenSet = true; m_expressionValue = value; }
78 
79 
80  inline void SetExpressionValue(const char* value) { m_expressionValueHasBeenSet = true; m_expressionValue.assign(value); }
81 
82 
83  inline Expression& WithExpressionValue(const Aws::String& value) { SetExpressionValue(value); return *this;}
84 
85 
86  inline Expression& WithExpressionValue(Aws::String&& value) { SetExpressionValue(value); return *this;}
87 
88 
89  inline Expression& WithExpressionValue(const char* value) { SetExpressionValue(value); return *this;}
90 
91  private:
92  Aws::String m_expressionName;
93  bool m_expressionNameHasBeenSet;
94  Aws::String m_expressionValue;
95  bool m_expressionValueHasBeenSet;
96  };
97 
98 } // namespace Model
99 } // namespace CloudSearch
100 } // namespace Aws
void SetExpressionName(const char *value)
Definition: Expression.h:59
const Aws::String & GetExpressionName() const
Definition: Expression.h:50
Expression & WithExpressionName(const char *value)
Definition: Expression.h:68
void SetExpressionValue(const char *value)
Definition: Expression.h:80
Expression & WithExpressionName(Aws::String &&value)
Definition: Expression.h:65
Expression & WithExpressionName(const Aws::String &value)
Definition: Expression.h:62
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
Expression & WithExpressionValue(Aws::String &&value)
Definition: Expression.h:86
void SetExpressionName(Aws::String &&value)
Definition: Expression.h:56
#define AWS_CLOUDSEARCH_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetExpressionName(const Aws::String &value)
Definition: Expression.h:53
void SetExpressionValue(const Aws::String &value)
Definition: Expression.h:74
Expression & WithExpressionValue(const Aws::String &value)
Definition: Expression.h:83
Expression & WithExpressionValue(const char *value)
Definition: Expression.h:89
void SetExpressionValue(Aws::String &&value)
Definition: Expression.h:77
const Aws::String & GetExpressionValue() const
Definition: Expression.h:71
JSON (JavaScript Object Notation).