Class StatusCodesBasedTrigger
java.lang.Object
com.azure.resourcemanager.appservice.models.StatusCodesBasedTrigger
- All Implemented Interfaces:
com.azure.json.JsonSerializable<StatusCodesBasedTrigger>
public final class StatusCodesBasedTrigger
extends Object
implements com.azure.json.JsonSerializable<StatusCodesBasedTrigger>
Trigger based on status code.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of StatusCodesBasedTrigger class. -
Method Summary
Modifier and TypeMethodDescriptioncount()
Get the count property: Request Count.static StatusCodesBasedTrigger
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of StatusCodesBasedTrigger from the JsonReader.path()
Get the path property: Request Path.status()
Get the status property: HTTP status code.Get the subStatus property: Request Sub Status.Get the timeInterval property: Time interval.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Get the win32Status property: Win32 error code.Set the count property: Request Count.Set the path property: Request Path.withStatus
(Integer status) Set the status property: HTTP status code.withSubStatus
(Integer subStatus) Set the subStatus property: Request Sub Status.withTimeInterval
(String timeInterval) Set the timeInterval property: Time interval.withWin32Status
(Integer win32Status) Set the win32Status property: Win32 error code.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
-
StatusCodesBasedTrigger
public StatusCodesBasedTrigger()Creates an instance of StatusCodesBasedTrigger class.
-
-
Method Details
-
status
Get the status property: HTTP status code.- Returns:
- the status value.
-
withStatus
Set the status property: HTTP status code.- Parameters:
status
- the status value to set.- Returns:
- the StatusCodesBasedTrigger object itself.
-
subStatus
Get the subStatus property: Request Sub Status.- Returns:
- the subStatus value.
-
withSubStatus
Set the subStatus property: Request Sub Status.- Parameters:
subStatus
- the subStatus value to set.- Returns:
- the StatusCodesBasedTrigger object itself.
-
win32Status
Get the win32Status property: Win32 error code.- Returns:
- the win32Status value.
-
withWin32Status
Set the win32Status property: Win32 error code.- Parameters:
win32Status
- the win32Status value to set.- Returns:
- the StatusCodesBasedTrigger object itself.
-
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 StatusCodesBasedTrigger 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 StatusCodesBasedTrigger object itself.
-
path
Get the path property: Request Path.- Returns:
- the path value.
-
withPath
Set the path property: Request Path.- Parameters:
path
- the path value to set.- Returns:
- the StatusCodesBasedTrigger 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<StatusCodesBasedTrigger>
- Throws:
IOException
-
fromJson
public static StatusCodesBasedTrigger fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of StatusCodesBasedTrigger from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of StatusCodesBasedTrigger 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 StatusCodesBasedTrigger.
-