ResourceHttpRequest Class

  • java.lang.Object
    • com.azure.messaging.eventgrid.systemevents.ResourceHttpRequest

Implements

public final class ResourceHttpRequest
implements JsonSerializable<ResourceHttpRequest>

The details of the HTTP request.

Constructor Summary

Constructor Description
ResourceHttpRequest()

Creates an instance of ResourceHttpRequest class.

Method Summary

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

Reads an instance of ResourceHttpRequest from the JsonReader.

String getClientIpAddress()

Get the clientIpAddress property: The client IP address.

String getClientRequestId()

Get the clientRequestId property: The client request ID.

String getMethod()

Get the method property: The request method.

String getUrl()

Get the url property: The url used in the request.

ResourceHttpRequest setClientIpAddress(String clientIpAddress)

Set the clientIpAddress property: The client IP address.

ResourceHttpRequest setClientRequestId(String clientRequestId)

Set the clientRequestId property: The client request ID.

ResourceHttpRequest setMethod(String method)

Set the method property: The request method.

ResourceHttpRequest setUrl(String url)

Set the url property: The url used in the request.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

ResourceHttpRequest

public ResourceHttpRequest()

Creates an instance of ResourceHttpRequest class.

Method Details

fromJson

public static ResourceHttpRequest fromJson(JsonReader jsonReader)

Reads an instance of ResourceHttpRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ResourceHttpRequest 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 ResourceHttpRequest.

getClientIpAddress

public String getClientIpAddress()

Get the clientIpAddress property: The client IP address.

Returns:

the clientIpAddress value.

getClientRequestId

public String getClientRequestId()

Get the clientRequestId property: The client request ID.

Returns:

the clientRequestId value.

getMethod

public String getMethod()

Get the method property: The request method.

Returns:

the method value.

getUrl

public String getUrl()

Get the url property: The url used in the request.

Returns:

the url value.

setClientIpAddress

public ResourceHttpRequest setClientIpAddress(String clientIpAddress)

Set the clientIpAddress property: The client IP address.

Parameters:

clientIpAddress - the clientIpAddress value to set.

Returns:

the ResourceHttpRequest object itself.

setClientRequestId

public ResourceHttpRequest setClientRequestId(String clientRequestId)

Set the clientRequestId property: The client request ID.

Parameters:

clientRequestId - the clientRequestId value to set.

Returns:

the ResourceHttpRequest object itself.

setMethod

public ResourceHttpRequest setMethod(String method)

Set the method property: The request method.

Parameters:

method - the method value to set.

Returns:

the ResourceHttpRequest object itself.

setUrl

public ResourceHttpRequest setUrl(String url)

Set the url property: The url used in the request.

Parameters:

url - the url value to set.

Returns:

the ResourceHttpRequest object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to