IndexerResyncBody Class

  • java.lang.Object
    • com.azure.search.documents.indexes.models.IndexerResyncBody

Implements

public final class IndexerResyncBody
implements JsonSerializable<IndexerResyncBody>

Request body for resync indexer operation.

Constructor Summary

Constructor Description
IndexerResyncBody()

Creates an instance of IndexerResyncBody class.

Method Summary

Modifier and Type Method and Description
static IndexerResyncBody fromJson(JsonReader jsonReader)

Reads an instance of IndexerResyncBody from the JsonReader.

List<IndexerResyncOption> getOptions()

Get the options property: Re-sync options that have been pre-defined from data source.

IndexerResyncBody setOptions(IndexerResyncOption[] options)

Set the options property: Re-sync options that have been pre-defined from data source.

IndexerResyncBody setOptions(List<IndexerResyncOption> options)

Set the options property: Re-sync options that have been pre-defined from data source.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

IndexerResyncBody

public IndexerResyncBody()

Creates an instance of IndexerResyncBody class.

Method Details

fromJson

public static IndexerResyncBody fromJson(JsonReader jsonReader)

Reads an instance of IndexerResyncBody from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of IndexerResyncBody if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the IndexerResyncBody.

getOptions

public List<IndexerResyncOption> getOptions()

Get the options property: Re-sync options that have been pre-defined from data source.

Returns:

the options value.

setOptions

public IndexerResyncBody setOptions(IndexerResyncOption[] options)

Set the options property: Re-sync options that have been pre-defined from data source.

Parameters:

options - the options value to set.

Returns:

the IndexerResyncBody object itself.

setOptions

public IndexerResyncBody setOptions(List<IndexerResyncOption> options)

Set the options property: Re-sync options that have been pre-defined from data source.

Parameters:

options - the options value to set.

Returns:

the IndexerResyncBody object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to