com.pulumi.azure.appservice.outputs.LinuxWebAppSiteConfigAutoHealSettingTrigger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.appservice.outputs;
import com.pulumi.azure.appservice.outputs.LinuxWebAppSiteConfigAutoHealSettingTriggerRequests;
import com.pulumi.azure.appservice.outputs.LinuxWebAppSiteConfigAutoHealSettingTriggerSlowRequest;
import com.pulumi.azure.appservice.outputs.LinuxWebAppSiteConfigAutoHealSettingTriggerSlowRequestWithPath;
import com.pulumi.azure.appservice.outputs.LinuxWebAppSiteConfigAutoHealSettingTriggerStatusCode;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LinuxWebAppSiteConfigAutoHealSettingTrigger {
/**
* @return A `requests` block as defined above.
*
*/
private @Nullable LinuxWebAppSiteConfigAutoHealSettingTriggerRequests requests;
/**
* @return A `slow_request` blocks as defined above.
*
*/
private @Nullable LinuxWebAppSiteConfigAutoHealSettingTriggerSlowRequest slowRequest;
/**
* @return One or more `slow_request_with_path` blocks as defined above.
*
*/
private @Nullable List slowRequestWithPaths;
/**
* @return One or more `status_code` blocks as defined above.
*
*/
private @Nullable List statusCodes;
private LinuxWebAppSiteConfigAutoHealSettingTrigger() {}
/**
* @return A `requests` block as defined above.
*
*/
public Optional requests() {
return Optional.ofNullable(this.requests);
}
/**
* @return A `slow_request` blocks as defined above.
*
*/
public Optional slowRequest() {
return Optional.ofNullable(this.slowRequest);
}
/**
* @return One or more `slow_request_with_path` blocks as defined above.
*
*/
public List slowRequestWithPaths() {
return this.slowRequestWithPaths == null ? List.of() : this.slowRequestWithPaths;
}
/**
* @return One or more `status_code` blocks as defined above.
*
*/
public List statusCodes() {
return this.statusCodes == null ? List.of() : this.statusCodes;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LinuxWebAppSiteConfigAutoHealSettingTrigger defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable LinuxWebAppSiteConfigAutoHealSettingTriggerRequests requests;
private @Nullable LinuxWebAppSiteConfigAutoHealSettingTriggerSlowRequest slowRequest;
private @Nullable List slowRequestWithPaths;
private @Nullable List statusCodes;
public Builder() {}
public Builder(LinuxWebAppSiteConfigAutoHealSettingTrigger defaults) {
Objects.requireNonNull(defaults);
this.requests = defaults.requests;
this.slowRequest = defaults.slowRequest;
this.slowRequestWithPaths = defaults.slowRequestWithPaths;
this.statusCodes = defaults.statusCodes;
}
@CustomType.Setter
public Builder requests(@Nullable LinuxWebAppSiteConfigAutoHealSettingTriggerRequests requests) {
this.requests = requests;
return this;
}
@CustomType.Setter
public Builder slowRequest(@Nullable LinuxWebAppSiteConfigAutoHealSettingTriggerSlowRequest slowRequest) {
this.slowRequest = slowRequest;
return this;
}
@CustomType.Setter
public Builder slowRequestWithPaths(@Nullable List slowRequestWithPaths) {
this.slowRequestWithPaths = slowRequestWithPaths;
return this;
}
public Builder slowRequestWithPaths(LinuxWebAppSiteConfigAutoHealSettingTriggerSlowRequestWithPath... slowRequestWithPaths) {
return slowRequestWithPaths(List.of(slowRequestWithPaths));
}
@CustomType.Setter
public Builder statusCodes(@Nullable List statusCodes) {
this.statusCodes = statusCodes;
return this;
}
public Builder statusCodes(LinuxWebAppSiteConfigAutoHealSettingTriggerStatusCode... statusCodes) {
return statusCodes(List.of(statusCodes));
}
public LinuxWebAppSiteConfigAutoHealSettingTrigger build() {
final var _resultValue = new LinuxWebAppSiteConfigAutoHealSettingTrigger();
_resultValue.requests = requests;
_resultValue.slowRequest = slowRequest;
_resultValue.slowRequestWithPaths = slowRequestWithPaths;
_resultValue.statusCodes = statusCodes;
return _resultValue;
}
}
}