/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Options for a field that contains an array of 64-bit signed integers. Present
* if IndexFieldType
specifies the field is of type
* int-array
. All options are enabled by default.See
* Also:
AWS
* API Reference
A list of source fields to map to the field.
*/ inline const Aws::String& GetSourceFields() const{ return m_sourceFields; } /** *A list of source fields to map to the field.
*/ inline bool SourceFieldsHasBeenSet() const { return m_sourceFieldsHasBeenSet; } /** *A list of source fields to map to the field.
*/ inline void SetSourceFields(const Aws::String& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = value; } /** *A list of source fields to map to the field.
*/ inline void SetSourceFields(Aws::String&& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = std::move(value); } /** *A list of source fields to map to the field.
*/ inline void SetSourceFields(const char* value) { m_sourceFieldsHasBeenSet = true; m_sourceFields.assign(value); } /** *A list of source fields to map to the field.
*/ inline IntArrayOptions& WithSourceFields(const Aws::String& value) { SetSourceFields(value); return *this;} /** *A list of source fields to map to the field.
*/ inline IntArrayOptions& WithSourceFields(Aws::String&& value) { SetSourceFields(std::move(value)); return *this;} /** *A list of source fields to map to the field.
*/ inline IntArrayOptions& WithSourceFields(const char* value) { SetSourceFields(value); return *this;} /** *Whether facet information can be returned for the field.
*/ inline bool GetFacetEnabled() const{ return m_facetEnabled; } /** *Whether facet information can be returned for the field.
*/ inline bool FacetEnabledHasBeenSet() const { return m_facetEnabledHasBeenSet; } /** *Whether facet information can be returned for the field.
*/ inline void SetFacetEnabled(bool value) { m_facetEnabledHasBeenSet = true; m_facetEnabled = value; } /** *Whether facet information can be returned for the field.
*/ inline IntArrayOptions& WithFacetEnabled(bool value) { SetFacetEnabled(value); return *this;} /** *Whether the contents of the field are searchable.
*/ inline bool GetSearchEnabled() const{ return m_searchEnabled; } /** *Whether the contents of the field are searchable.
*/ inline bool SearchEnabledHasBeenSet() const { return m_searchEnabledHasBeenSet; } /** *Whether the contents of the field are searchable.
*/ inline void SetSearchEnabled(bool value) { m_searchEnabledHasBeenSet = true; m_searchEnabled = value; } /** *Whether the contents of the field are searchable.
*/ inline IntArrayOptions& WithSearchEnabled(bool value) { SetSearchEnabled(value); return *this;} /** *Whether the contents of the field can be returned in the search results.
*/ inline bool GetReturnEnabled() const{ return m_returnEnabled; } /** *Whether the contents of the field can be returned in the search results.
*/ inline bool ReturnEnabledHasBeenSet() const { return m_returnEnabledHasBeenSet; } /** *Whether the contents of the field can be returned in the search results.
*/ inline void SetReturnEnabled(bool value) { m_returnEnabledHasBeenSet = true; m_returnEnabled = value; } /** *Whether the contents of the field can be returned in the search results.
*/ inline IntArrayOptions& WithReturnEnabled(bool value) { SetReturnEnabled(value); return *this;} private: long long m_defaultValue; bool m_defaultValueHasBeenSet = false; Aws::String m_sourceFields; bool m_sourceFieldsHasBeenSet = false; bool m_facetEnabled; bool m_facetEnabledHasBeenSet = false; bool m_searchEnabled; bool m_searchEnabledHasBeenSet = false; bool m_returnEnabled; bool m_returnEnabledHasBeenSet = false; }; } // namespace Model } // namespace CloudSearch } // namespace Aws