AWS SDK for C++  0.14.3
AWS SDK for C++
TextArrayOptions.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 
41  {
42  public:
45  TextArrayOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46 
47  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48  void OutputToStream(Aws::OStream& oStream, const char* location) const;
49 
53  inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
54 
58  inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
59 
63  inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
64 
68  inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
69 
73  inline TextArrayOptions& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
74 
78  inline TextArrayOptions& WithDefaultValue(Aws::String&& value) { SetDefaultValue(value); return *this;}
79 
83  inline TextArrayOptions& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
84 
88  inline const Aws::String& GetSourceFields() const{ return m_sourceFields; }
89 
93  inline void SetSourceFields(const Aws::String& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = value; }
94 
98  inline void SetSourceFields(Aws::String&& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = value; }
99 
103  inline void SetSourceFields(const char* value) { m_sourceFieldsHasBeenSet = true; m_sourceFields.assign(value); }
104 
108  inline TextArrayOptions& WithSourceFields(const Aws::String& value) { SetSourceFields(value); return *this;}
109 
113  inline TextArrayOptions& WithSourceFields(Aws::String&& value) { SetSourceFields(value); return *this;}
114 
118  inline TextArrayOptions& WithSourceFields(const char* value) { SetSourceFields(value); return *this;}
119 
123  inline bool GetReturnEnabled() const{ return m_returnEnabled; }
124 
128  inline void SetReturnEnabled(bool value) { m_returnEnabledHasBeenSet = true; m_returnEnabled = value; }
129 
133  inline TextArrayOptions& WithReturnEnabled(bool value) { SetReturnEnabled(value); return *this;}
134 
138  inline bool GetHighlightEnabled() const{ return m_highlightEnabled; }
139 
143  inline void SetHighlightEnabled(bool value) { m_highlightEnabledHasBeenSet = true; m_highlightEnabled = value; }
144 
148  inline TextArrayOptions& WithHighlightEnabled(bool value) { SetHighlightEnabled(value); return *this;}
149 
153  inline const Aws::String& GetAnalysisScheme() const{ return m_analysisScheme; }
154 
158  inline void SetAnalysisScheme(const Aws::String& value) { m_analysisSchemeHasBeenSet = true; m_analysisScheme = value; }
159 
163  inline void SetAnalysisScheme(Aws::String&& value) { m_analysisSchemeHasBeenSet = true; m_analysisScheme = value; }
164 
168  inline void SetAnalysisScheme(const char* value) { m_analysisSchemeHasBeenSet = true; m_analysisScheme.assign(value); }
169 
173  inline TextArrayOptions& WithAnalysisScheme(const Aws::String& value) { SetAnalysisScheme(value); return *this;}
174 
178  inline TextArrayOptions& WithAnalysisScheme(Aws::String&& value) { SetAnalysisScheme(value); return *this;}
179 
183  inline TextArrayOptions& WithAnalysisScheme(const char* value) { SetAnalysisScheme(value); return *this;}
184 
185  private:
186  Aws::String m_defaultValue;
187  bool m_defaultValueHasBeenSet;
188  Aws::String m_sourceFields;
189  bool m_sourceFieldsHasBeenSet;
190  bool m_returnEnabled;
191  bool m_returnEnabledHasBeenSet;
192  bool m_highlightEnabled;
193  bool m_highlightEnabledHasBeenSet;
194  Aws::String m_analysisScheme;
195  bool m_analysisSchemeHasBeenSet;
196  };
197 
198 } // namespace Model
199 } // namespace CloudSearch
200 } // namespace Aws
const Aws::String & GetDefaultValue() const
void SetSourceFields(Aws::String &&value)
const Aws::String & GetAnalysisScheme() const
TextArrayOptions & WithDefaultValue(Aws::String &&value)
void SetAnalysisScheme(const Aws::String &value)
TextArrayOptions & WithAnalysisScheme(Aws::String &&value)
void SetDefaultValue(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const Aws::String & GetSourceFields() const
TextArrayOptions & WithSourceFields(const char *value)
TextArrayOptions & WithHighlightEnabled(bool value)
TextArrayOptions & WithDefaultValue(const char *value)
TextArrayOptions & WithAnalysisScheme(const char *value)
void SetSourceFields(const Aws::String &value)
TextArrayOptions & WithDefaultValue(const Aws::String &value)
void SetDefaultValue(Aws::String &&value)
TextArrayOptions & WithSourceFields(Aws::String &&value)
TextArrayOptions & WithSourceFields(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 SetAnalysisScheme(Aws::String &&value)
TextArrayOptions & WithReturnEnabled(bool value)
TextArrayOptions & WithAnalysisScheme(const Aws::String &value)
JSON (JavaScript Object Notation).