Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.appservice;
import com.fasterxml.jackson.annotation.JsonProperty;
Trigger based on request execution time.
/**
* Trigger based on request execution time.
*/
public class SlowRequestsBasedTrigger {
Time taken.
/**
* Time taken.
*/
@JsonProperty(value = "timeTaken")
private String timeTaken;
Request Count.
/**
* Request Count.
*/
@JsonProperty(value = "count")
private Integer count;
Time interval.
/**
* Time interval.
*/
@JsonProperty(value = "timeInterval")
private String timeInterval;
Get time taken.
Returns: the timeTaken value
/**
* Get time taken.
*
* @return the timeTaken value
*/
public String timeTaken() {
return this.timeTaken;
}
Set time taken.
Params: - timeTaken – the timeTaken value to set
Returns: the SlowRequestsBasedTrigger object itself.
/**
* Set time taken.
*
* @param timeTaken the timeTaken value to set
* @return the SlowRequestsBasedTrigger object itself.
*/
public SlowRequestsBasedTrigger withTimeTaken(String timeTaken) {
this.timeTaken = timeTaken;
return this;
}
Get request Count.
Returns: the count value
/**
* Get request Count.
*
* @return the count value
*/
public Integer count() {
return this.count;
}
Set request Count.
Params: - count – the count value to set
Returns: the SlowRequestsBasedTrigger object itself.
/**
* Set request Count.
*
* @param count the count value to set
* @return the SlowRequestsBasedTrigger object itself.
*/
public SlowRequestsBasedTrigger withCount(Integer count) {
this.count = count;
return this;
}
Get time interval.
Returns: the timeInterval value
/**
* Get time interval.
*
* @return the timeInterval value
*/
public String timeInterval() {
return this.timeInterval;
}
Set time interval.
Params: - timeInterval – the timeInterval value to set
Returns: the SlowRequestsBasedTrigger object itself.
/**
* Set time interval.
*
* @param timeInterval the timeInterval value to set
* @return the SlowRequestsBasedTrigger object itself.
*/
public SlowRequestsBasedTrigger withTimeInterval(String timeInterval) {
this.timeInterval = timeInterval;
return this;
}
}