Class RequestHistoryProperties
java.lang.Object
com.azure.resourcemanager.appservice.models.RequestHistoryProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RequestHistoryProperties>
public final class RequestHistoryProperties
extends Object
implements com.azure.json.JsonSerializable<RequestHistoryProperties>
The request history.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RequestHistoryProperties class. -
Method Summary
Modifier and TypeMethodDescriptionendTime()
Get the endTime property: The time the request ended.static RequestHistoryProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of RequestHistoryProperties from the JsonReader.request()
Get the request property: The request.response()
Get the response property: The response.Get the startTime property: The time the request started.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withEndTime
(OffsetDateTime endTime) Set the endTime property: The time the request ended.withRequest
(Request request) Set the request property: The request.withResponse
(Response response) Set the response property: The response.withStartTime
(OffsetDateTime startTime) Set the startTime property: The time the request started.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RequestHistoryProperties
public RequestHistoryProperties()Creates an instance of RequestHistoryProperties class.
-
-
Method Details
-
startTime
Get the startTime property: The time the request started.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: The time the request started.- Parameters:
startTime
- the startTime value to set.- Returns:
- the RequestHistoryProperties object itself.
-
endTime
Get the endTime property: The time the request ended.- Returns:
- the endTime value.
-
withEndTime
Set the endTime property: The time the request ended.- Parameters:
endTime
- the endTime value to set.- Returns:
- the RequestHistoryProperties object itself.
-
request
Get the request property: The request.- Returns:
- the request value.
-
withRequest
Set the request property: The request.- Parameters:
request
- the request value to set.- Returns:
- the RequestHistoryProperties object itself.
-
response
Get the response property: The response.- Returns:
- the response value.
-
withResponse
Set the response property: The response.- Parameters:
response
- the response value to set.- Returns:
- the RequestHistoryProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<RequestHistoryProperties>
- Throws:
IOException
-
fromJson
public static RequestHistoryProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RequestHistoryProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of RequestHistoryProperties 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 RequestHistoryProperties.
-