RequestContext Class
- java.
lang. Object - com.
azure. resourcemanager. costmanagement. fluent. models. RequestContext
- com.
Implements
public final class RequestContext
implements JsonSerializable<RequestContext>
The context of the Cost Details request.
Constructor Summary
| Constructor | Description |
|---|---|
| RequestContext() |
Creates an instance of Request |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Request |
fromJson(JsonReader jsonReader)
Reads an instance of Request |
|
Generate |
requestBody()
Get the request |
| String |
requestScope()
Get the request |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Request |
withRequestBody(GenerateCostDetailsReportRequestDefinition requestBody)
Set the request |
|
Request |
withRequestScope(String requestScope)
Set the request |
Methods inherited from java.lang.Object
Constructor Details
RequestContext
public RequestContext()
Creates an instance of RequestContext class.
Method Details
fromJson
public static RequestContext fromJson(JsonReader jsonReader)
Reads an instance of RequestContext from the JsonReader.
Parameters:
Returns:
Throws:
requestBody
public GenerateCostDetailsReportRequestDefinition requestBody()
Get the requestBody property: The request payload body provided in Cost Details call.
Returns:
requestScope
public String requestScope()
Get the requestScope property: The request scope of the request.
Returns:
toJson
validate
public void validate()
Validates the instance.
withRequestBody
public RequestContext withRequestBody(GenerateCostDetailsReportRequestDefinition requestBody)
Set the requestBody property: The request payload body provided in Cost Details call.
Parameters:
Returns:
withRequestScope
public RequestContext withRequestScope(String requestScope)
Set the requestScope property: The request scope of the request.
Parameters:
Returns: