Partager via


RetryHistory Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.RetryHistory

Implements

public final class RetryHistory
implements JsonSerializable<RetryHistory>

The retry history.

Constructor Summary

Constructor Description
RetryHistory()

Creates an instance of RetryHistory class.

Method Summary

Modifier and Type Method and Description
String clientRequestId()

Get the clientRequestId property: Gets the client request Id.

String code()

Get the code property: Gets the status code.

OffsetDateTime endTime()

Get the endTime property: Gets the end time.

ManagementError error()

Get the error property: Gets the error response.

static RetryHistory fromJson(JsonReader jsonReader)

Reads an instance of RetryHistory from the JsonReader.

String serviceRequestId()

Get the serviceRequestId property: Gets the service request Id.

OffsetDateTime startTime()

Get the startTime property: Gets the start time.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RetryHistory withClientRequestId(String clientRequestId)

Set the clientRequestId property: Gets the client request Id.

RetryHistory withCode(String code)

Set the code property: Gets the status code.

RetryHistory withEndTime(OffsetDateTime endTime)

Set the endTime property: Gets the end time.

RetryHistory withError(ManagementError error)

Set the error property: Gets the error response.

RetryHistory withServiceRequestId(String serviceRequestId)

Set the serviceRequestId property: Gets the service request Id.

RetryHistory withStartTime(OffsetDateTime startTime)

Set the startTime property: Gets the start time.

Methods inherited from java.lang.Object

Constructor Details

RetryHistory

public RetryHistory()

Creates an instance of RetryHistory class.

Method Details

clientRequestId

public String clientRequestId()

Get the clientRequestId property: Gets the client request Id.

Returns:

the clientRequestId value.

code

public String code()

Get the code property: Gets the status code.

Returns:

the code value.

endTime

public OffsetDateTime endTime()

Get the endTime property: Gets the end time.

Returns:

the endTime value.

error

public ManagementError error()

Get the error property: Gets the error response.

Returns:

the error value.

fromJson

public static RetryHistory fromJson(JsonReader jsonReader)

Reads an instance of RetryHistory from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

serviceRequestId

public String serviceRequestId()

Get the serviceRequestId property: Gets the service request Id.

Returns:

the serviceRequestId value.

startTime

public OffsetDateTime startTime()

Get the startTime property: Gets the start time.

Returns:

the startTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withClientRequestId

public RetryHistory withClientRequestId(String clientRequestId)

Set the clientRequestId property: Gets the client request Id.

Parameters:

clientRequestId - the clientRequestId value to set.

Returns:

the RetryHistory object itself.

withCode

public RetryHistory withCode(String code)

Set the code property: Gets the status code.

Parameters:

code - the code value to set.

Returns:

the RetryHistory object itself.

withEndTime

public RetryHistory withEndTime(OffsetDateTime endTime)

Set the endTime property: Gets the end time.

Parameters:

endTime - the endTime value to set.

Returns:

the RetryHistory object itself.

withError

public RetryHistory withError(ManagementError error)

Set the error property: Gets the error response.

Parameters:

error - the error value to set.

Returns:

the RetryHistory object itself.

withServiceRequestId

public RetryHistory withServiceRequestId(String serviceRequestId)

Set the serviceRequestId property: Gets the service request Id.

Parameters:

serviceRequestId - the serviceRequestId value to set.

Returns:

the RetryHistory object itself.

withStartTime

public RetryHistory withStartTime(OffsetDateTime startTime)

Set the startTime property: Gets the start time.

Parameters:

startTime - the startTime value to set.

Returns:

the RetryHistory object itself.

Applies to