SqlTriggerGetProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.fluent.models.SqlTriggerGetProperties

Implements

public final class SqlTriggerGetProperties
implements JsonSerializable<SqlTriggerGetProperties>

The properties of an Azure Cosmos DB trigger.

Constructor Summary

Constructor Description
SqlTriggerGetProperties()

Creates an instance of SqlTriggerGetProperties class.

Method Summary

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

Reads an instance of SqlTriggerGetProperties from the JsonReader.

SqlTriggerGetPropertiesResource resource()

Get the resource property: The resource property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SqlTriggerGetProperties withResource(SqlTriggerGetPropertiesResource resource)

Set the resource property: The resource property.

Methods inherited from java.lang.Object

Constructor Details

SqlTriggerGetProperties

public SqlTriggerGetProperties()

Creates an instance of SqlTriggerGetProperties class.

Method Details

fromJson

public static SqlTriggerGetProperties fromJson(JsonReader jsonReader)

Reads an instance of SqlTriggerGetProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

resource

public SqlTriggerGetPropertiesResource resource()

Get the resource property: The resource property.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResource

public SqlTriggerGetProperties withResource(SqlTriggerGetPropertiesResource resource)

Set the resource property: The resource property.

Parameters:

resource - the resource value to set.

Returns:

the SqlTriggerGetProperties object itself.

Applies to