![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.containerapp.outputs.AppIngressIpSecurityRestriction 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.containerapp.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AppIngressIpSecurityRestriction {
/**
* @return The IP-filter action. `Allow` or `Deny`.
*
* > **NOTE:** The `action` types in an all `ip_security_restriction` blocks must be the same for the `ingress`, mixing `Allow` and `Deny` rules is not currently supported by the service.
*
*/
private String action;
/**
* @return Describe the IP restriction rule that is being sent to the container-app.
*
*/
private @Nullable String description;
/**
* @return The incoming IP address or range of IP addresses (in CIDR notation).
*
*/
private String ipAddressRange;
/**
* @return Name for the IP restriction rule.
*
*/
private String name;
private AppIngressIpSecurityRestriction() {}
/**
* @return The IP-filter action. `Allow` or `Deny`.
*
* > **NOTE:** The `action` types in an all `ip_security_restriction` blocks must be the same for the `ingress`, mixing `Allow` and `Deny` rules is not currently supported by the service.
*
*/
public String action() {
return this.action;
}
/**
* @return Describe the IP restriction rule that is being sent to the container-app.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return The incoming IP address or range of IP addresses (in CIDR notation).
*
*/
public String ipAddressRange() {
return this.ipAddressRange;
}
/**
* @return Name for the IP restriction rule.
*
*/
public String name() {
return this.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AppIngressIpSecurityRestriction defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String action;
private @Nullable String description;
private String ipAddressRange;
private String name;
public Builder() {}
public Builder(AppIngressIpSecurityRestriction defaults) {
Objects.requireNonNull(defaults);
this.action = defaults.action;
this.description = defaults.description;
this.ipAddressRange = defaults.ipAddressRange;
this.name = defaults.name;
}
@CustomType.Setter
public Builder action(String action) {
if (action == null) {
throw new MissingRequiredPropertyException("AppIngressIpSecurityRestriction", "action");
}
this.action = action;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder ipAddressRange(String ipAddressRange) {
if (ipAddressRange == null) {
throw new MissingRequiredPropertyException("AppIngressIpSecurityRestriction", "ipAddressRange");
}
this.ipAddressRange = ipAddressRange;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("AppIngressIpSecurityRestriction", "name");
}
this.name = name;
return this;
}
public AppIngressIpSecurityRestriction build() {
final var _resultValue = new AppIngressIpSecurityRestriction();
_resultValue.action = action;
_resultValue.description = description;
_resultValue.ipAddressRange = ipAddressRange;
_resultValue.name = name;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy