StatusCodesRangeBasedTrigger Class

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

Implements

public final class StatusCodesRangeBasedTrigger
implements JsonSerializable<StatusCodesRangeBasedTrigger>

Trigger based on range of status codes.

Constructor Summary

Constructor Description
StatusCodesRangeBasedTrigger()

Creates an instance of StatusCodesRangeBasedTrigger class.

Method Summary

Modifier and Type Method and Description
Integer count()

Get the count property: Request Count.

static StatusCodesRangeBasedTrigger fromJson(JsonReader jsonReader)

Reads an instance of StatusCodesRangeBasedTrigger from the JsonReader.

String path()

Get the path property: The path property.

String statusCodes()

Get the statusCodes property: HTTP status code.

String timeInterval()

Get the timeInterval property: Time interval.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StatusCodesRangeBasedTrigger withCount(Integer count)

Set the count property: Request Count.

StatusCodesRangeBasedTrigger withPath(String path)

Set the path property: The path property.

StatusCodesRangeBasedTrigger withStatusCodes(String statusCodes)

Set the statusCodes property: HTTP status code.

StatusCodesRangeBasedTrigger withTimeInterval(String timeInterval)

Set the timeInterval property: Time interval.

Methods inherited from java.lang.Object

Constructor Details

StatusCodesRangeBasedTrigger

public StatusCodesRangeBasedTrigger()

Creates an instance of StatusCodesRangeBasedTrigger class.

Method Details

count

public Integer count()

Get the count property: Request Count.

Returns:

the count value.

fromJson

public static StatusCodesRangeBasedTrigger fromJson(JsonReader jsonReader)

Reads an instance of StatusCodesRangeBasedTrigger from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

path

public String path()

Get the path property: The path property.

Returns:

the path value.

statusCodes

public String statusCodes()

Get the statusCodes property: HTTP status code.

Returns:

the statusCodes value.

timeInterval

public String timeInterval()

Get the timeInterval property: Time interval.

Returns:

the timeInterval value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCount

public StatusCodesRangeBasedTrigger withCount(Integer count)

Set the count property: Request Count.

Parameters:

count - the count value to set.

Returns:

the StatusCodesRangeBasedTrigger object itself.

withPath

public StatusCodesRangeBasedTrigger withPath(String path)

Set the path property: The path property.

Parameters:

path - the path value to set.

Returns:

the StatusCodesRangeBasedTrigger object itself.

withStatusCodes

public StatusCodesRangeBasedTrigger withStatusCodes(String statusCodes)

Set the statusCodes property: HTTP status code.

Parameters:

statusCodes - the statusCodes value to set.

Returns:

the StatusCodesRangeBasedTrigger object itself.

withTimeInterval

public StatusCodesRangeBasedTrigger withTimeInterval(String timeInterval)

Set the timeInterval property: Time interval.

Parameters:

timeInterval - the timeInterval value to set.

Returns:

the StatusCodesRangeBasedTrigger object itself.

Applies to