com.pulumi.cloudflare.outputs.UserAgentBlockingRuleConfiguration 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.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class UserAgentBlockingRuleConfiguration {
/**
* @return The configuration target for this rule. You must set the target to ua for User Agent Blocking rules.
*
*/
private String target;
/**
* @return The exact user agent string to match. This value will be compared to the received User-Agent HTTP header value.
*
*/
private String value;
private UserAgentBlockingRuleConfiguration() {}
/**
* @return The configuration target for this rule. You must set the target to ua for User Agent Blocking rules.
*
*/
public String target() {
return this.target;
}
/**
* @return The exact user agent string to match. This value will be compared to the received User-Agent HTTP header value.
*
*/
public String value() {
return this.value;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(UserAgentBlockingRuleConfiguration defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String target;
private String value;
public Builder() {}
public Builder(UserAgentBlockingRuleConfiguration defaults) {
Objects.requireNonNull(defaults);
this.target = defaults.target;
this.value = defaults.value;
}
@CustomType.Setter
public Builder target(String target) {
this.target = Objects.requireNonNull(target);
return this;
}
@CustomType.Setter
public Builder value(String value) {
this.value = Objects.requireNonNull(value);
return this;
}
public UserAgentBlockingRuleConfiguration build() {
final var o = new UserAgentBlockingRuleConfiguration();
o.target = target;
o.value = value;
return o;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy