Поделиться через


RequestContext Class

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

Implements

public final class RequestContext
implements JsonSerializable<RequestContext>

The context of the Cost Details request.

Constructor Summary

Constructor Description
RequestContext()

Creates an instance of RequestContext class.

Method Summary

Modifier and Type Method and Description
static RequestContext fromJson(JsonReader jsonReader)

Reads an instance of RequestContext from the JsonReader.

GenerateCostDetailsReportRequestDefinition requestBody()

Get the requestBody property: The request payload body provided in Cost Details call.

String requestScope()

Get the requestScope property: The request scope of the request.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RequestContext withRequestBody(GenerateCostDetailsReportRequestDefinition requestBody)

Set the requestBody property: The request payload body provided in Cost Details call.

RequestContext withRequestScope(String requestScope)

Set the requestScope property: The request scope of 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:

jsonReader - The JsonReader being read.

Returns:

An instance of RequestContext if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the RequestContext.

requestBody

public GenerateCostDetailsReportRequestDefinition requestBody()

Get the requestBody property: The request payload body provided in Cost Details call.

Returns:

the requestBody value.

requestScope

public String requestScope()

Get the requestScope property: The request scope of the request.

Returns:

the requestScope value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

requestBody - the requestBody value to set.

Returns:

the RequestContext object itself.

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.

Applies to