RequestsBasedTrigger Class

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

Implements

public final class RequestsBasedTrigger
implements JsonSerializable<RequestsBasedTrigger>

Trigger based on total requests.

Constructor Summary

Constructor Description
RequestsBasedTrigger()

Creates an instance of RequestsBasedTrigger class.

Method Summary

Modifier and Type Method and Description
Integer count()

Get the count property: Request Count.

static RequestsBasedTrigger fromJson(JsonReader jsonReader)

Reads an instance of RequestsBasedTrigger from the JsonReader.

String timeInterval()

Get the timeInterval property: Time interval.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RequestsBasedTrigger withCount(Integer count)

Set the count property: Request Count.

RequestsBasedTrigger withTimeInterval(String timeInterval)

Set the timeInterval property: Time interval.

Methods inherited from java.lang.Object

Constructor Details

RequestsBasedTrigger

public RequestsBasedTrigger()

Creates an instance of RequestsBasedTrigger class.

Method Details

count

public Integer count()

Get the count property: Request Count.

Returns:

the count value.

fromJson

public static RequestsBasedTrigger fromJson(JsonReader jsonReader)

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.

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 RequestsBasedTrigger withCount(Integer count)

Set the count property: Request Count.

Parameters:

count - the count value to set.

Returns:

the RequestsBasedTrigger object itself.

withTimeInterval

public RequestsBasedTrigger withTimeInterval(String timeInterval)

Set the timeInterval property: Time interval.

Parameters:

timeInterval - the timeInterval value to set.

Returns:

the RequestsBasedTrigger object itself.

Applies to