SqlStoredProcedureResource Class

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

Implements

public class SqlStoredProcedureResource
implements JsonSerializable<SqlStoredProcedureResource>

Cosmos DB SQL storedProcedure resource object.

Constructor Summary

Constructor Description
SqlStoredProcedureResource()

Creates an instance of SqlStoredProcedureResource class.

Method Summary

Modifier and Type Method and Description
String body()

Get the body property: Body of the Stored Procedure.

static SqlStoredProcedureResource fromJson(JsonReader jsonReader)

Reads an instance of SqlStoredProcedureResource from the JsonReader.

String id()

Get the id property: Name of the Cosmos DB SQL storedProcedure.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SqlStoredProcedureResource withBody(String body)

Set the body property: Body of the Stored Procedure.

SqlStoredProcedureResource withId(String id)

Set the id property: Name of the Cosmos DB SQL storedProcedure.

Methods inherited from java.lang.Object

Constructor Details

SqlStoredProcedureResource

public SqlStoredProcedureResource()

Creates an instance of SqlStoredProcedureResource class.

Method Details

body

public String body()

Get the body property: Body of the Stored Procedure.

Returns:

the body value.

fromJson

public static SqlStoredProcedureResource fromJson(JsonReader jsonReader)

Reads an instance of SqlStoredProcedureResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Name of the Cosmos DB SQL storedProcedure.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBody

public SqlStoredProcedureResource withBody(String body)

Set the body property: Body of the Stored Procedure.

Parameters:

body - the body value to set.

Returns:

the SqlStoredProcedureResource object itself.

withId

public SqlStoredProcedureResource withId(String id)

Set the id property: Name of the Cosmos DB SQL storedProcedure.

Parameters:

id - the id value to set.

Returns:

the SqlStoredProcedureResource object itself.

Applies to