com.pulumi.azurenative.batch.inputs.IPRuleArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.azurenative.batch.inputs;
import com.pulumi.azurenative.batch.enums.IPRuleAction;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* Rule to filter client IP address.
*
*/
public final class IPRuleArgs extends com.pulumi.resources.ResourceArgs {
public static final IPRuleArgs Empty = new IPRuleArgs();
/**
* Action when client IP address is matched.
*
*/
@Import(name="action", required=true)
private Output action;
/**
* @return Action when client IP address is matched.
*
*/
public Output action() {
return this.action;
}
/**
* IPv4 address, or IPv4 address range in CIDR format.
*
*/
@Import(name="value", required=true)
private Output value;
/**
* @return IPv4 address, or IPv4 address range in CIDR format.
*
*/
public Output value() {
return this.value;
}
private IPRuleArgs() {}
private IPRuleArgs(IPRuleArgs $) {
this.action = $.action;
this.value = $.value;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(IPRuleArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private IPRuleArgs $;
public Builder() {
$ = new IPRuleArgs();
}
public Builder(IPRuleArgs defaults) {
$ = new IPRuleArgs(Objects.requireNonNull(defaults));
}
/**
* @param action Action when client IP address is matched.
*
* @return builder
*
*/
public Builder action(Output action) {
$.action = action;
return this;
}
/**
* @param action Action when client IP address is matched.
*
* @return builder
*
*/
public Builder action(IPRuleAction action) {
return action(Output.of(action));
}
/**
* @param value IPv4 address, or IPv4 address range in CIDR format.
*
* @return builder
*
*/
public Builder value(Output value) {
$.value = value;
return this;
}
/**
* @param value IPv4 address, or IPv4 address range in CIDR format.
*
* @return builder
*
*/
public Builder value(String value) {
return value(Output.of(value));
}
public IPRuleArgs build() {
if ($.action == null) {
throw new MissingRequiredPropertyException("IPRuleArgs", "action");
}
if ($.value == null) {
throw new MissingRequiredPropertyException("IPRuleArgs", "value");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy