java.lang.Object
com.azure.resourcemanager.costmanagement.fluent.models.RequestContext

public final class RequestContext extends Object
The context of the Cost Details request.
  • Constructor Details

    • RequestContext

      public RequestContext()
      Creates an instance of RequestContext class.
  • Method Details

    • requestScope

      public String requestScope()
      Get the requestScope property: The request scope of the request.
      Returns:
      the requestScope value.
    • withRequestScope

      public RequestContext withRequestScope(String requestScope)
      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

      public RequestContext withRequestBody(GenerateCostDetailsReportRequestDefinition requestBody)
      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.