com.pulumi.aws.wafregional.outputs.WebAclLoggingConfigurationRedactedFieldsFieldToMatch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud 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.aws.wafregional.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 WebAclLoggingConfigurationRedactedFieldsFieldToMatch {
/**
* @return When the value of `type` is `HEADER`, enter the name of the header that you want the WAF to search, for example, `User-Agent` or `Referer`. If the value of `type` is any other value, omit `data`.
*
*/
private @Nullable String data;
/**
* @return The part of the web request that you want AWS WAF to search for a specified stringE.g., `HEADER` or `METHOD`
*
*/
private String type;
private WebAclLoggingConfigurationRedactedFieldsFieldToMatch() {}
/**
* @return When the value of `type` is `HEADER`, enter the name of the header that you want the WAF to search, for example, `User-Agent` or `Referer`. If the value of `type` is any other value, omit `data`.
*
*/
public Optional data() {
return Optional.ofNullable(this.data);
}
/**
* @return The part of the web request that you want AWS WAF to search for a specified stringE.g., `HEADER` or `METHOD`
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WebAclLoggingConfigurationRedactedFieldsFieldToMatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String data;
private String type;
public Builder() {}
public Builder(WebAclLoggingConfigurationRedactedFieldsFieldToMatch defaults) {
Objects.requireNonNull(defaults);
this.data = defaults.data;
this.type = defaults.type;
}
@CustomType.Setter
public Builder data(@Nullable String data) {
this.data = data;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("WebAclLoggingConfigurationRedactedFieldsFieldToMatch", "type");
}
this.type = type;
return this;
}
public WebAclLoggingConfigurationRedactedFieldsFieldToMatch build() {
final var _resultValue = new WebAclLoggingConfigurationRedactedFieldsFieldToMatch();
_resultValue.data = data;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy