AWS SDK for C++  0.12.9
AWS SDK for C++
LiteralArrayOptions.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:
44  LiteralArrayOptions& 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 
52  inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
53 
57  inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
58 
62  inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
63 
67  inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
68 
72  inline LiteralArrayOptions& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
73 
77  inline LiteralArrayOptions& WithDefaultValue(Aws::String&& value) { SetDefaultValue(value); return *this;}
78 
82  inline LiteralArrayOptions& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
83 
87  inline const Aws::String& GetSourceFields() const{ return m_sourceFields; }
88 
92  inline void SetSourceFields(const Aws::String& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = value; }
93 
97  inline void SetSourceFields(Aws::String&& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = value; }
98 
102  inline void SetSourceFields(const char* value) { m_sourceFieldsHasBeenSet = true; m_sourceFields.assign(value); }
103 
107  inline LiteralArrayOptions& WithSourceFields(const Aws::String& value) { SetSourceFields(value); return *this;}
108 
112  inline LiteralArrayOptions& WithSourceFields(Aws::String&& value) { SetSourceFields(value); return *this;}
113 
117  inline LiteralArrayOptions& WithSourceFields(const char* value) { SetSourceFields(value); return *this;}
118 
122  inline bool GetFacetEnabled() const{ return m_facetEnabled; }
123 
127  inline void SetFacetEnabled(bool value) { m_facetEnabledHasBeenSet = true; m_facetEnabled = value; }
128 
132  inline LiteralArrayOptions& WithFacetEnabled(bool value) { SetFacetEnabled(value); return *this;}
133 
137  inline bool GetSearchEnabled() const{ return m_searchEnabled; }
138 
142  inline void SetSearchEnabled(bool value) { m_searchEnabledHasBeenSet = true; m_searchEnabled = value; }
143 
147  inline LiteralArrayOptions& WithSearchEnabled(bool value) { SetSearchEnabled(value); return *this;}
148 
152  inline bool GetReturnEnabled() const{ return m_returnEnabled; }
153 
157  inline void SetReturnEnabled(bool value) { m_returnEnabledHasBeenSet = true; m_returnEnabled = value; }
158 
162  inline LiteralArrayOptions& WithReturnEnabled(bool value) { SetReturnEnabled(value); return *this;}
163 
164  private:
165  Aws::String m_defaultValue;
166  bool m_defaultValueHasBeenSet;
167  Aws::String m_sourceFields;
168  bool m_sourceFieldsHasBeenSet;
169  bool m_facetEnabled;
170  bool m_facetEnabledHasBeenSet;
171  bool m_searchEnabled;
172  bool m_searchEnabledHasBeenSet;
173  bool m_returnEnabled;
174  bool m_returnEnabledHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace CloudSearch
179 } // namespace Aws
LiteralArrayOptions & WithDefaultValue(const char *value)
void SetDefaultValue(const Aws::String &value)
LiteralArrayOptions & WithSourceFields(const Aws::String &value)
LiteralArrayOptions & WithSourceFields(Aws::String &&value)
LiteralArrayOptions & WithFacetEnabled(bool value)
LiteralArrayOptions & WithSourceFields(const char *value)
LiteralArrayOptions & WithReturnEnabled(bool value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
LiteralArrayOptions & WithDefaultValue(const Aws::String &value)
#define AWS_CLOUDSEARCH_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetSourceFields(const Aws::String &value)
LiteralArrayOptions & WithSearchEnabled(bool value)
LiteralArrayOptions & WithDefaultValue(Aws::String &&value)
JSON (JavaScript Object Notation).