SqlStoredProcedureCreateUpdateProperties Class

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

Implements

public final class SqlStoredProcedureCreateUpdateProperties
implements JsonSerializable<SqlStoredProcedureCreateUpdateProperties>

Properties to create and update Azure Cosmos DB storedProcedure.

Constructor Summary

Constructor Description
SqlStoredProcedureCreateUpdateProperties()

Creates an instance of SqlStoredProcedureCreateUpdateProperties class.

Method Summary

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

Reads an instance of SqlStoredProcedureCreateUpdateProperties from the JsonReader.

CreateUpdateOptions options()

Get the options property: A key-value pair of options to be applied for the request.

SqlStoredProcedureResource resource()

Get the resource property: The standard JSON format of a storedProcedure.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SqlStoredProcedureCreateUpdateProperties withOptions(CreateUpdateOptions options)

Set the options property: A key-value pair of options to be applied for the request.

SqlStoredProcedureCreateUpdateProperties withResource(SqlStoredProcedureResource resource)

Set the resource property: The standard JSON format of a storedProcedure.

Methods inherited from java.lang.Object

Constructor Details

SqlStoredProcedureCreateUpdateProperties

public SqlStoredProcedureCreateUpdateProperties()

Creates an instance of SqlStoredProcedureCreateUpdateProperties class.

Method Details

fromJson

public static SqlStoredProcedureCreateUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of SqlStoredProcedureCreateUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

options

public CreateUpdateOptions options()

Get the options property: A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.

Returns:

the options value.

resource

public SqlStoredProcedureResource resource()

Get the resource property: The standard JSON format of a storedProcedure.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withOptions

public SqlStoredProcedureCreateUpdateProperties withOptions(CreateUpdateOptions options)

Set the options property: A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.

Parameters:

options - the options value to set.

Returns:

the SqlStoredProcedureCreateUpdateProperties object itself.

withResource

public SqlStoredProcedureCreateUpdateProperties withResource(SqlStoredProcedureResource resource)

Set the resource property: The standard JSON format of a storedProcedure.

Parameters:

resource - the resource value to set.

Returns:

the SqlStoredProcedureCreateUpdateProperties object itself.

Applies to