AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
Expression.h
1
6#pragma once
7#include <aws/cloudsearch/CloudSearch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace CloudSearch {
20namespace Model {
21
30 public:
31 AWS_CLOUDSEARCH_API Expression() = default;
32 AWS_CLOUDSEARCH_API Expression(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_CLOUDSEARCH_API Expression& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
40 inline const Aws::String& GetExpressionName() const { return m_expressionName; }
41 inline bool ExpressionNameHasBeenSet() const { return m_expressionNameHasBeenSet; }
42 template <typename ExpressionNameT = Aws::String>
43 void SetExpressionName(ExpressionNameT&& value) {
44 m_expressionNameHasBeenSet = true;
45 m_expressionName = std::forward<ExpressionNameT>(value);
46 }
47 template <typename ExpressionNameT = Aws::String>
48 Expression& WithExpressionName(ExpressionNameT&& value) {
49 SetExpressionName(std::forward<ExpressionNameT>(value));
50 return *this;
51 }
53
55
56 inline const Aws::String& GetExpressionValue() const { return m_expressionValue; }
57 inline bool ExpressionValueHasBeenSet() const { return m_expressionValueHasBeenSet; }
58 template <typename ExpressionValueT = Aws::String>
59 void SetExpressionValue(ExpressionValueT&& value) {
60 m_expressionValueHasBeenSet = true;
61 m_expressionValue = std::forward<ExpressionValueT>(value);
62 }
63 template <typename ExpressionValueT = Aws::String>
64 Expression& WithExpressionValue(ExpressionValueT&& value) {
65 SetExpressionValue(std::forward<ExpressionValueT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_expressionName;
71
72 Aws::String m_expressionValue;
73 bool m_expressionNameHasBeenSet = false;
74 bool m_expressionValueHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace CloudSearch
79} // namespace Aws
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetExpressionValue(ExpressionValueT &&value)
Definition Expression.h:59
AWS_CLOUDSEARCH_API Expression(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDSEARCH_API Expression & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetExpressionName(ExpressionNameT &&value)
Definition Expression.h:43
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetExpressionName() const
Definition Expression.h:40
Expression & WithExpressionName(ExpressionNameT &&value)
Definition Expression.h:48
const Aws::String & GetExpressionValue() const
Definition Expression.h:56
AWS_CLOUDSEARCH_API Expression()=default
Expression & WithExpressionValue(ExpressionValueT &&value)
Definition Expression.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream