Class SqlStoredProcedureResource
java.lang.Object
com.azure.resourcemanager.cosmos.models.SqlStoredProcedureResource
- Direct Known Subclasses:
SqlStoredProcedureGetPropertiesResource
Cosmos DB SQL storedProcedure resource object.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SqlStoredProcedureResource class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Get the body property: Body of the Stored Procedure.id()Get the id property: Name of the Cosmos DB SQL storedProcedure.voidvalidate()Validates the instance.Set the body property: Body of the Stored Procedure.Set the id property: Name of the Cosmos DB SQL storedProcedure.
-
Constructor Details
-
SqlStoredProcedureResource
public SqlStoredProcedureResource()Creates an instance of SqlStoredProcedureResource class.
-
-
Method Details
-
id
Get the id property: Name of the Cosmos DB SQL storedProcedure.- Returns:
- the id value.
-
withId
Set the id property: Name of the Cosmos DB SQL storedProcedure.- Parameters:
id- the id value to set.- Returns:
- the SqlStoredProcedureResource object itself.
-
body
Get the body property: Body of the Stored Procedure.- Returns:
- the body value.
-
withBody
Set the body property: Body of the Stored Procedure.- Parameters:
body- the body value to set.- Returns:
- the SqlStoredProcedureResource object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-