/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.iot.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Thing group indexing configuration. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ThingGroupIndexingConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** Thing group indexing mode. *
*/ private String thingGroupIndexingMode; /** ** Contains fields that are indexed and whose types are already known by the Fleet Indexing service. This is an * optional field. For more information, see Managed * fields in the Amazon Web Services IoT Core Developer Guide. *
*/ private java.util.List* A list of thing group fields to index. This list cannot contain any managed fields. Use the * GetIndexingConfiguration API to get a list of managed fields. *
** Contains custom field names and their data type. *
*/ private java.util.List* Thing group indexing mode. *
* * @param thingGroupIndexingMode * Thing group indexing mode. * @see ThingGroupIndexingMode */ public void setThingGroupIndexingMode(String thingGroupIndexingMode) { this.thingGroupIndexingMode = thingGroupIndexingMode; } /** ** Thing group indexing mode. *
* * @return Thing group indexing mode. * @see ThingGroupIndexingMode */ public String getThingGroupIndexingMode() { return this.thingGroupIndexingMode; } /** ** Thing group indexing mode. *
* * @param thingGroupIndexingMode * Thing group indexing mode. * @return Returns a reference to this object so that method calls can be chained together. * @see ThingGroupIndexingMode */ public ThingGroupIndexingConfiguration withThingGroupIndexingMode(String thingGroupIndexingMode) { setThingGroupIndexingMode(thingGroupIndexingMode); return this; } /** ** Thing group indexing mode. *
* * @param thingGroupIndexingMode * Thing group indexing mode. * @return Returns a reference to this object so that method calls can be chained together. * @see ThingGroupIndexingMode */ public ThingGroupIndexingConfiguration withThingGroupIndexingMode(ThingGroupIndexingMode thingGroupIndexingMode) { this.thingGroupIndexingMode = thingGroupIndexingMode.toString(); return this; } /** ** Contains fields that are indexed and whose types are already known by the Fleet Indexing service. This is an * optional field. For more information, see Managed * fields in the Amazon Web Services IoT Core Developer Guide. *
* * @return Contains fields that are indexed and whose types are already known by the Fleet Indexing service. This is * an optional field. For more information, see Managed fields in the Amazon Web Services IoT Core Developer Guide. */ public java.util.List* Contains fields that are indexed and whose types are already known by the Fleet Indexing service. This is an * optional field. For more information, see Managed * fields in the Amazon Web Services IoT Core Developer Guide. *
* * @param managedFields * Contains fields that are indexed and whose types are already known by the Fleet Indexing service. This is * an optional field. For more information, see Managed fields in the Amazon Web Services IoT Core Developer Guide. */ public void setManagedFields(java.util.Collection* Contains fields that are indexed and whose types are already known by the Fleet Indexing service. This is an * optional field. For more information, see Managed * fields in the Amazon Web Services IoT Core Developer Guide. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setManagedFields(java.util.Collection)} or {@link #withManagedFields(java.util.Collection)} if you want * to override the existing values. *
* * @param managedFields * Contains fields that are indexed and whose types are already known by the Fleet Indexing service. This is * an optional field. For more information, see Managed fields in the Amazon Web Services IoT Core Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public ThingGroupIndexingConfiguration withManagedFields(Field... managedFields) { if (this.managedFields == null) { setManagedFields(new java.util.ArrayList* Contains fields that are indexed and whose types are already known by the Fleet Indexing service. This is an * optional field. For more information, see Managed * fields in the Amazon Web Services IoT Core Developer Guide. *
* * @param managedFields * Contains fields that are indexed and whose types are already known by the Fleet Indexing service. This is * an optional field. For more information, see Managed fields in the Amazon Web Services IoT Core Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public ThingGroupIndexingConfiguration withManagedFields(java.util.Collection* A list of thing group fields to index. This list cannot contain any managed fields. Use the * GetIndexingConfiguration API to get a list of managed fields. *
** Contains custom field names and their data type. *
* * @return A list of thing group fields to index. This list cannot contain any managed fields. Use the * GetIndexingConfiguration API to get a list of managed fields. *
* Contains custom field names and their data type.
*/
public java.util.List
* A list of thing group fields to index. This list cannot contain any managed fields. Use the
* GetIndexingConfiguration API to get a list of managed fields.
*
* Contains custom field names and their data type.
*
* Contains custom field names and their data type.
*/
public void setCustomFields(java.util.Collection
* A list of thing group fields to index. This list cannot contain any managed fields. Use the
* GetIndexingConfiguration API to get a list of managed fields.
*
* Contains custom field names and their data type.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setCustomFields(java.util.Collection)} or {@link #withCustomFields(java.util.Collection)} if you want to
* override the existing values.
*
* Contains custom field names and their data type.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ThingGroupIndexingConfiguration withCustomFields(Field... customFields) {
if (this.customFields == null) {
setCustomFields(new java.util.ArrayList
* A list of thing group fields to index. This list cannot contain any managed fields. Use the
* GetIndexingConfiguration API to get a list of managed fields.
*
* Contains custom field names and their data type.
*
* Contains custom field names and their data type.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ThingGroupIndexingConfiguration withCustomFields(java.util.Collection