com.pulumi.aws.wafregional.outputs.ByteMatchSetByteMatchTupleFieldToMatch 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.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 ByteMatchSetByteMatchTupleFieldToMatch {
/**
* @return When the value of Type is HEADER, enter the name of the header that you want AWS 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 string.
*
*/
private String type;
private ByteMatchSetByteMatchTupleFieldToMatch() {}
/**
* @return When the value of Type is HEADER, enter the name of the header that you want AWS 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 string.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ByteMatchSetByteMatchTupleFieldToMatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String data;
private String type;
public Builder() {}
public Builder(ByteMatchSetByteMatchTupleFieldToMatch 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("ByteMatchSetByteMatchTupleFieldToMatch", "type");
}
this.type = type;
return this;
}
public ByteMatchSetByteMatchTupleFieldToMatch build() {
final var _resultValue = new ByteMatchSetByteMatchTupleFieldToMatch();
_resultValue.data = data;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy