Class RequestContext
java.lang.Object
com.azure.resourcemanager.costmanagement.fluent.models.RequestContext
The context of the Cost Details request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the requestBody property: The request payload body provided in Cost Details call.Get the requestScope property: The request scope of the request.voidvalidate()Validates the instance.Set the requestBody property: The request payload body provided in Cost Details call.withRequestScope(String requestScope) Set the requestScope property: The request scope of the request.
-
Constructor Details
-
RequestContext
public RequestContext()Creates an instance of RequestContext class.
-
-
Method Details
-
requestScope
Get the requestScope property: The request scope of the request.- Returns:
- the requestScope value.
-
withRequestScope
Set the requestScope property: The request scope of the request.- Parameters:
requestScope- the requestScope value to set.- Returns:
- the RequestContext object itself.
-
requestBody
Get the requestBody property: The request payload body provided in Cost Details call.- Returns:
- the requestBody value.
-
withRequestBody
Set the requestBody property: The request payload body provided in Cost Details call.- Parameters:
requestBody- the requestBody value to set.- Returns:
- the RequestContext object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-