com.pulumi.cloudflare.inputs.ZoneLockdownConfigurationArgs 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.cloudflare.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
public final class ZoneLockdownConfigurationArgs extends com.pulumi.resources.ResourceArgs {
public static final ZoneLockdownConfigurationArgs Empty = new ZoneLockdownConfigurationArgs();
/**
* The request property to target. Available values: `ip`, `ip_range`.
*
*/
@Import(name="target", required=true)
private Output target;
/**
* @return The request property to target. Available values: `ip`, `ip_range`.
*
*/
public Output target() {
return this.target;
}
/**
* The value to target. Depends on target's type. IP addresses should just be standard IPv4/IPv6 notation i.e. `192.0.2.1` or `2001:db8::/32` and IP ranges in CIDR format i.e. `192.0.2.0/24`.
*
*/
@Import(name="value", required=true)
private Output value;
/**
* @return The value to target. Depends on target's type. IP addresses should just be standard IPv4/IPv6 notation i.e. `192.0.2.1` or `2001:db8::/32` and IP ranges in CIDR format i.e. `192.0.2.0/24`.
*
*/
public Output value() {
return this.value;
}
private ZoneLockdownConfigurationArgs() {}
private ZoneLockdownConfigurationArgs(ZoneLockdownConfigurationArgs $) {
this.target = $.target;
this.value = $.value;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ZoneLockdownConfigurationArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ZoneLockdownConfigurationArgs $;
public Builder() {
$ = new ZoneLockdownConfigurationArgs();
}
public Builder(ZoneLockdownConfigurationArgs defaults) {
$ = new ZoneLockdownConfigurationArgs(Objects.requireNonNull(defaults));
}
/**
* @param target The request property to target. Available values: `ip`, `ip_range`.
*
* @return builder
*
*/
public Builder target(Output target) {
$.target = target;
return this;
}
/**
* @param target The request property to target. Available values: `ip`, `ip_range`.
*
* @return builder
*
*/
public Builder target(String target) {
return target(Output.of(target));
}
/**
* @param value The value to target. Depends on target's type. IP addresses should just be standard IPv4/IPv6 notation i.e. `192.0.2.1` or `2001:db8::/32` and IP ranges in CIDR format i.e. `192.0.2.0/24`.
*
* @return builder
*
*/
public Builder value(Output value) {
$.value = value;
return this;
}
/**
* @param value The value to target. Depends on target's type. IP addresses should just be standard IPv4/IPv6 notation i.e. `192.0.2.1` or `2001:db8::/32` and IP ranges in CIDR format i.e. `192.0.2.0/24`.
*
* @return builder
*
*/
public Builder value(String value) {
return value(Output.of(value));
}
public ZoneLockdownConfigurationArgs build() {
$.target = Objects.requireNonNull($.target, "expected parameter 'target' to be non-null");
$.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null");
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy