Class RequestsBasedTrigger
java.lang.Object
com.azure.resourcemanager.appservice.models.RequestsBasedTrigger
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RequestsBasedTrigger>
public final class RequestsBasedTrigger
extends Object
implements com.azure.json.JsonSerializable<RequestsBasedTrigger>
Trigger based on total requests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncount()
Get the count property: Request Count.static RequestsBasedTrigger
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of RequestsBasedTrigger from the JsonReader.Get the timeInterval property: Time interval.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the count property: Request Count.withTimeInterval
(String timeInterval) Set the timeInterval property: Time interval.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
-
RequestsBasedTrigger
public RequestsBasedTrigger()Creates an instance of RequestsBasedTrigger class.
-
-
Method Details
-
count
Get the count property: Request Count.- Returns:
- the count value.
-
withCount
Set the count property: Request Count.- Parameters:
count
- the count value to set.- Returns:
- the RequestsBasedTrigger object itself.
-
timeInterval
Get the timeInterval property: Time interval.- Returns:
- the timeInterval value.
-
withTimeInterval
Set the timeInterval property: Time interval.- Parameters:
timeInterval
- the timeInterval value to set.- Returns:
- the RequestsBasedTrigger 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<RequestsBasedTrigger>
- Throws:
IOException
-
fromJson
public static RequestsBasedTrigger fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RequestsBasedTrigger from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of RequestsBasedTrigger 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 RequestsBasedTrigger.
-