com.pulumi.azure.eventgrid.outputs.DomainInboundIpRule 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.eventgrid.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 DomainInboundIpRule {
/**
* @return The action to take when the rule is matched. Possible values are `Allow`. Defaults to `Allow`.
*
*/
private @Nullable String action;
/**
* @return The IP mask (CIDR) to match on.
*
*/
private String ipMask;
private DomainInboundIpRule() {}
/**
* @return The action to take when the rule is matched. Possible values are `Allow`. Defaults to `Allow`.
*
*/
public Optional action() {
return Optional.ofNullable(this.action);
}
/**
* @return The IP mask (CIDR) to match on.
*
*/
public String ipMask() {
return this.ipMask;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DomainInboundIpRule defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String action;
private String ipMask;
public Builder() {}
public Builder(DomainInboundIpRule defaults) {
Objects.requireNonNull(defaults);
this.action = defaults.action;
this.ipMask = defaults.ipMask;
}
@CustomType.Setter
public Builder action(@Nullable String action) {
this.action = action;
return this;
}
@CustomType.Setter
public Builder ipMask(String ipMask) {
if (ipMask == null) {
throw new MissingRequiredPropertyException("DomainInboundIpRule", "ipMask");
}
this.ipMask = ipMask;
return this;
}
public DomainInboundIpRule build() {
final var _resultValue = new DomainInboundIpRule();
_resultValue.action = action;
_resultValue.ipMask = ipMask;
return _resultValue;
}
}
}