DigitalTwinsResponse<T> Class

Type Parameters

T

public final class DigitalTwinsResponse
extends ResponseBase<DigitalTwinsResponseHeaders,T>

A helper class to represent the HTTP response returned by the service.

Constructor Summary

Constructor Description
DigitalTwinsResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, T value, DigitalTwinsResponseHeaders headers)

Creates an instance of DigitalTwinsResponse.

Method Summary

Modifier and Type Method and Description
T getValue()

Methods inherited from ResponseBase

Methods inherited from java.lang.Object

Constructor Details

DigitalTwinsResponse

public DigitalTwinsResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, T value, DigitalTwinsResponseHeaders headers)

Creates an instance of DigitalTwinsResponse.

Parameters:

request - the request which resulted in this DigitalTwinsResponse.
statusCode - the status code of the HTTP response.
rawHeaders - the raw headers of the HTTP response.
value - the raw value of the HTTP response.
headers - the deserialized headers of the HTTP response.

Method Details

getValue

public T getValue()

Overrides:

DigitalTwinsResponse<T>.getValue()

Returns:

The raw response body.

Applies to