com.pulumi.azurenative.web.outputs.AutoHealTriggersResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.web.outputs;
import com.pulumi.azurenative.web.outputs.RequestsBasedTriggerResponse;
import com.pulumi.azurenative.web.outputs.SlowRequestsBasedTriggerResponse;
import com.pulumi.azurenative.web.outputs.StatusCodesBasedTriggerResponse;
import com.pulumi.azurenative.web.outputs.StatusCodesRangeBasedTriggerResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AutoHealTriggersResponse {
/**
* @return A rule based on private bytes.
*
*/
private @Nullable Integer privateBytesInKB;
/**
* @return A rule based on total requests.
*
*/
private @Nullable RequestsBasedTriggerResponse requests;
/**
* @return A rule based on request execution time.
*
*/
private @Nullable SlowRequestsBasedTriggerResponse slowRequests;
/**
* @return A rule based on multiple Slow Requests Rule with path
*
*/
private @Nullable List slowRequestsWithPath;
/**
* @return A rule based on status codes.
*
*/
private @Nullable List statusCodes;
/**
* @return A rule based on status codes ranges.
*
*/
private @Nullable List statusCodesRange;
private AutoHealTriggersResponse() {}
/**
* @return A rule based on private bytes.
*
*/
public Optional privateBytesInKB() {
return Optional.ofNullable(this.privateBytesInKB);
}
/**
* @return A rule based on total requests.
*
*/
public Optional requests() {
return Optional.ofNullable(this.requests);
}
/**
* @return A rule based on request execution time.
*
*/
public Optional slowRequests() {
return Optional.ofNullable(this.slowRequests);
}
/**
* @return A rule based on multiple Slow Requests Rule with path
*
*/
public List slowRequestsWithPath() {
return this.slowRequestsWithPath == null ? List.of() : this.slowRequestsWithPath;
}
/**
* @return A rule based on status codes.
*
*/
public List statusCodes() {
return this.statusCodes == null ? List.of() : this.statusCodes;
}
/**
* @return A rule based on status codes ranges.
*
*/
public List statusCodesRange() {
return this.statusCodesRange == null ? List.of() : this.statusCodesRange;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AutoHealTriggersResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer privateBytesInKB;
private @Nullable RequestsBasedTriggerResponse requests;
private @Nullable SlowRequestsBasedTriggerResponse slowRequests;
private @Nullable List slowRequestsWithPath;
private @Nullable List statusCodes;
private @Nullable List statusCodesRange;
public Builder() {}
public Builder(AutoHealTriggersResponse defaults) {
Objects.requireNonNull(defaults);
this.privateBytesInKB = defaults.privateBytesInKB;
this.requests = defaults.requests;
this.slowRequests = defaults.slowRequests;
this.slowRequestsWithPath = defaults.slowRequestsWithPath;
this.statusCodes = defaults.statusCodes;
this.statusCodesRange = defaults.statusCodesRange;
}
@CustomType.Setter
public Builder privateBytesInKB(@Nullable Integer privateBytesInKB) {
this.privateBytesInKB = privateBytesInKB;
return this;
}
@CustomType.Setter
public Builder requests(@Nullable RequestsBasedTriggerResponse requests) {
this.requests = requests;
return this;
}
@CustomType.Setter
public Builder slowRequests(@Nullable SlowRequestsBasedTriggerResponse slowRequests) {
this.slowRequests = slowRequests;
return this;
}
@CustomType.Setter
public Builder slowRequestsWithPath(@Nullable List slowRequestsWithPath) {
this.slowRequestsWithPath = slowRequestsWithPath;
return this;
}
public Builder slowRequestsWithPath(SlowRequestsBasedTriggerResponse... slowRequestsWithPath) {
return slowRequestsWithPath(List.of(slowRequestsWithPath));
}
@CustomType.Setter
public Builder statusCodes(@Nullable List statusCodes) {
this.statusCodes = statusCodes;
return this;
}
public Builder statusCodes(StatusCodesBasedTriggerResponse... statusCodes) {
return statusCodes(List.of(statusCodes));
}
@CustomType.Setter
public Builder statusCodesRange(@Nullable List statusCodesRange) {
this.statusCodesRange = statusCodesRange;
return this;
}
public Builder statusCodesRange(StatusCodesRangeBasedTriggerResponse... statusCodesRange) {
return statusCodesRange(List.of(statusCodesRange));
}
public AutoHealTriggersResponse build() {
final var _resultValue = new AutoHealTriggersResponse();
_resultValue.privateBytesInKB = privateBytesInKB;
_resultValue.requests = requests;
_resultValue.slowRequests = slowRequests;
_resultValue.slowRequestsWithPath = slowRequestsWithPath;
_resultValue.statusCodes = statusCodes;
_resultValue.statusCodesRange = statusCodesRange;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy