com.pulumi.azure.appservice.outputs.LinuxFunctionAppSlotSiteConfigScmIpRestrictionHeaders Maven / Gradle / Ivy
// *** 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.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LinuxFunctionAppSlotSiteConfigScmIpRestrictionHeaders {
/**
* @return Specifies a list of Azure Front Door IDs.
*
*/
private @Nullable List xAzureFdids;
/**
* @return Specifies if a Front Door Health Probe should be expected. The only possible value is `1`.
*
*/
private @Nullable String xFdHealthProbe;
/**
* @return Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.
*
*/
private @Nullable List xForwardedFors;
/**
* @return Specifies a list of Hosts for which matching should be applied.
*
*/
private @Nullable List xForwardedHosts;
private LinuxFunctionAppSlotSiteConfigScmIpRestrictionHeaders() {}
/**
* @return Specifies a list of Azure Front Door IDs.
*
*/
public List xAzureFdids() {
return this.xAzureFdids == null ? List.of() : this.xAzureFdids;
}
/**
* @return Specifies if a Front Door Health Probe should be expected. The only possible value is `1`.
*
*/
public Optional xFdHealthProbe() {
return Optional.ofNullable(this.xFdHealthProbe);
}
/**
* @return Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.
*
*/
public List xForwardedFors() {
return this.xForwardedFors == null ? List.of() : this.xForwardedFors;
}
/**
* @return Specifies a list of Hosts for which matching should be applied.
*
*/
public List xForwardedHosts() {
return this.xForwardedHosts == null ? List.of() : this.xForwardedHosts;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LinuxFunctionAppSlotSiteConfigScmIpRestrictionHeaders defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List xAzureFdids;
private @Nullable String xFdHealthProbe;
private @Nullable List xForwardedFors;
private @Nullable List xForwardedHosts;
public Builder() {}
public Builder(LinuxFunctionAppSlotSiteConfigScmIpRestrictionHeaders defaults) {
Objects.requireNonNull(defaults);
this.xAzureFdids = defaults.xAzureFdids;
this.xFdHealthProbe = defaults.xFdHealthProbe;
this.xForwardedFors = defaults.xForwardedFors;
this.xForwardedHosts = defaults.xForwardedHosts;
}
@CustomType.Setter
public Builder xAzureFdids(@Nullable List xAzureFdids) {
this.xAzureFdids = xAzureFdids;
return this;
}
public Builder xAzureFdids(String... xAzureFdids) {
return xAzureFdids(List.of(xAzureFdids));
}
@CustomType.Setter
public Builder xFdHealthProbe(@Nullable String xFdHealthProbe) {
this.xFdHealthProbe = xFdHealthProbe;
return this;
}
@CustomType.Setter
public Builder xForwardedFors(@Nullable List xForwardedFors) {
this.xForwardedFors = xForwardedFors;
return this;
}
public Builder xForwardedFors(String... xForwardedFors) {
return xForwardedFors(List.of(xForwardedFors));
}
@CustomType.Setter
public Builder xForwardedHosts(@Nullable List xForwardedHosts) {
this.xForwardedHosts = xForwardedHosts;
return this;
}
public Builder xForwardedHosts(String... xForwardedHosts) {
return xForwardedHosts(List.of(xForwardedHosts));
}
public LinuxFunctionAppSlotSiteConfigScmIpRestrictionHeaders build() {
final var _resultValue = new LinuxFunctionAppSlotSiteConfigScmIpRestrictionHeaders();
_resultValue.xAzureFdids = xAzureFdids;
_resultValue.xFdHealthProbe = xFdHealthProbe;
_resultValue.xForwardedFors = xForwardedFors;
_resultValue.xForwardedHosts = xForwardedHosts;
return _resultValue;
}
}
}