com.pulumi.aws.wafv2.outputs.WebAclRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern 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.wafv2.outputs;
import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class WebAclRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern {
/**
* @return An empty configuration block that is used for inspecting all headers.
*
*/
private @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll all;
/**
* @return An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values.
*
*/
private @Nullable List excludedHeaders;
/**
* @return An array of strings that will be used for inspecting headers that have a key that matches one of the provided values.
*
*/
private @Nullable List includedHeaders;
private WebAclRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern() {}
/**
* @return An empty configuration block that is used for inspecting all headers.
*
*/
public Optional all() {
return Optional.ofNullable(this.all);
}
/**
* @return An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values.
*
*/
public List excludedHeaders() {
return this.excludedHeaders == null ? List.of() : this.excludedHeaders;
}
/**
* @return An array of strings that will be used for inspecting headers that have a key that matches one of the provided values.
*
*/
public List includedHeaders() {
return this.includedHeaders == null ? List.of() : this.includedHeaders;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WebAclRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll all;
private @Nullable List excludedHeaders;
private @Nullable List includedHeaders;
public Builder() {}
public Builder(WebAclRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern defaults) {
Objects.requireNonNull(defaults);
this.all = defaults.all;
this.excludedHeaders = defaults.excludedHeaders;
this.includedHeaders = defaults.includedHeaders;
}
@CustomType.Setter
public Builder all(@Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll all) {
this.all = all;
return this;
}
@CustomType.Setter
public Builder excludedHeaders(@Nullable List excludedHeaders) {
this.excludedHeaders = excludedHeaders;
return this;
}
public Builder excludedHeaders(String... excludedHeaders) {
return excludedHeaders(List.of(excludedHeaders));
}
@CustomType.Setter
public Builder includedHeaders(@Nullable List includedHeaders) {
this.includedHeaders = includedHeaders;
return this;
}
public Builder includedHeaders(String... includedHeaders) {
return includedHeaders(List.of(includedHeaders));
}
public WebAclRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern build() {
final var _resultValue = new WebAclRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern();
_resultValue.all = all;
_resultValue.excludedHeaders = excludedHeaders;
_resultValue.includedHeaders = includedHeaders;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy