com.pulumi.azure.appservice.outputs.FunctionAppSiteConfigScmIpRestriction 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.FunctionAppSiteConfigScmIpRestrictionHeaders;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class FunctionAppSiteConfigScmIpRestriction {
/**
* @return Allow or Deny access for this IP range. Defaults to `Allow`.
*
*/
private @Nullable String action;
/**
* @return The `headers` block for this specific `scm_ip_restriction` as defined below.
*
*/
private @Nullable FunctionAppSiteConfigScmIpRestrictionHeaders headers;
/**
* @return The IP Address used for this IP Restriction in CIDR notation.
*
*/
private @Nullable String ipAddress;
/**
* @return The name for this IP Restriction.
*
*/
private @Nullable String name;
/**
* @return The priority for this IP Restriction. Restrictions are enforced in priority order. By default, priority is set to 65000 if not specified.
*
*/
private @Nullable Integer priority;
/**
* @return The Service Tag used for this IP Restriction.
*
*/
private @Nullable String serviceTag;
/**
* @return The Virtual Network Subnet ID used for this IP Restriction.
*
* > **NOTE:** One of either `ip_address`, `service_tag` or `virtual_network_subnet_id` must be specified
*
*/
private @Nullable String virtualNetworkSubnetId;
private FunctionAppSiteConfigScmIpRestriction() {}
/**
* @return Allow or Deny access for this IP range. Defaults to `Allow`.
*
*/
public Optional action() {
return Optional.ofNullable(this.action);
}
/**
* @return The `headers` block for this specific `scm_ip_restriction` as defined below.
*
*/
public Optional headers() {
return Optional.ofNullable(this.headers);
}
/**
* @return The IP Address used for this IP Restriction in CIDR notation.
*
*/
public Optional ipAddress() {
return Optional.ofNullable(this.ipAddress);
}
/**
* @return The name for this IP Restriction.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return The priority for this IP Restriction. Restrictions are enforced in priority order. By default, priority is set to 65000 if not specified.
*
*/
public Optional priority() {
return Optional.ofNullable(this.priority);
}
/**
* @return The Service Tag used for this IP Restriction.
*
*/
public Optional serviceTag() {
return Optional.ofNullable(this.serviceTag);
}
/**
* @return The Virtual Network Subnet ID used for this IP Restriction.
*
* > **NOTE:** One of either `ip_address`, `service_tag` or `virtual_network_subnet_id` must be specified
*
*/
public Optional virtualNetworkSubnetId() {
return Optional.ofNullable(this.virtualNetworkSubnetId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FunctionAppSiteConfigScmIpRestriction defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String action;
private @Nullable FunctionAppSiteConfigScmIpRestrictionHeaders headers;
private @Nullable String ipAddress;
private @Nullable String name;
private @Nullable Integer priority;
private @Nullable String serviceTag;
private @Nullable String virtualNetworkSubnetId;
public Builder() {}
public Builder(FunctionAppSiteConfigScmIpRestriction defaults) {
Objects.requireNonNull(defaults);
this.action = defaults.action;
this.headers = defaults.headers;
this.ipAddress = defaults.ipAddress;
this.name = defaults.name;
this.priority = defaults.priority;
this.serviceTag = defaults.serviceTag;
this.virtualNetworkSubnetId = defaults.virtualNetworkSubnetId;
}
@CustomType.Setter
public Builder action(@Nullable String action) {
this.action = action;
return this;
}
@CustomType.Setter
public Builder headers(@Nullable FunctionAppSiteConfigScmIpRestrictionHeaders headers) {
this.headers = headers;
return this;
}
@CustomType.Setter
public Builder ipAddress(@Nullable String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder priority(@Nullable Integer priority) {
this.priority = priority;
return this;
}
@CustomType.Setter
public Builder serviceTag(@Nullable String serviceTag) {
this.serviceTag = serviceTag;
return this;
}
@CustomType.Setter
public Builder virtualNetworkSubnetId(@Nullable String virtualNetworkSubnetId) {
this.virtualNetworkSubnetId = virtualNetworkSubnetId;
return this;
}
public FunctionAppSiteConfigScmIpRestriction build() {
final var _resultValue = new FunctionAppSiteConfigScmIpRestriction();
_resultValue.action = action;
_resultValue.headers = headers;
_resultValue.ipAddress = ipAddress;
_resultValue.name = name;
_resultValue.priority = priority;
_resultValue.serviceTag = serviceTag;
_resultValue.virtualNetworkSubnetId = virtualNetworkSubnetId;
return _resultValue;
}
}
}