Partager via


ExcludedPath Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.ExcludedPath

Implements

public final class ExcludedPath
implements JsonSerializable<ExcludedPath>

The ExcludedPath model.

Constructor Summary

Constructor Description
ExcludedPath()

Creates an instance of ExcludedPath class.

Method Summary

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

Reads an instance of ExcludedPath from the JsonReader.

String path()

Get the path property: The path for which the indexing behavior applies to.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ExcludedPath withPath(String path)

Set the path property: The path for which the indexing behavior applies to.

Methods inherited from java.lang.Object

Constructor Details

ExcludedPath

public ExcludedPath()

Creates an instance of ExcludedPath class.

Method Details

fromJson

public static ExcludedPath fromJson(JsonReader jsonReader)

Reads an instance of ExcludedPath from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ExcludedPath 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 ExcludedPath.

path

public String path()

Get the path property: The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*).

Returns:

the path value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPath

public ExcludedPath withPath(String path)

Set the path property: The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*).

Parameters:

path - the path value to set.

Returns:

the ExcludedPath object itself.

Applies to