com.pulumi.aws.wafv2.outputs.WebAclRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern 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.WebAclRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll;
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 WebAclRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern {
/**
* @return An empty configuration block that is used for inspecting all headers.
*
*/
private @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll all;
private @Nullable List excludedCookies;
private @Nullable List includedCookies;
private WebAclRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern() {}
/**
* @return An empty configuration block that is used for inspecting all headers.
*
*/
public Optional all() {
return Optional.ofNullable(this.all);
}
public List excludedCookies() {
return this.excludedCookies == null ? List.of() : this.excludedCookies;
}
public List includedCookies() {
return this.includedCookies == null ? List.of() : this.includedCookies;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WebAclRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll all;
private @Nullable List excludedCookies;
private @Nullable List includedCookies;
public Builder() {}
public Builder(WebAclRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern defaults) {
Objects.requireNonNull(defaults);
this.all = defaults.all;
this.excludedCookies = defaults.excludedCookies;
this.includedCookies = defaults.includedCookies;
}
@CustomType.Setter
public Builder all(@Nullable WebAclRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll all) {
this.all = all;
return this;
}
@CustomType.Setter
public Builder excludedCookies(@Nullable List excludedCookies) {
this.excludedCookies = excludedCookies;
return this;
}
public Builder excludedCookies(String... excludedCookies) {
return excludedCookies(List.of(excludedCookies));
}
@CustomType.Setter
public Builder includedCookies(@Nullable List includedCookies) {
this.includedCookies = includedCookies;
return this;
}
public Builder includedCookies(String... includedCookies) {
return includedCookies(List.of(includedCookies));
}
public WebAclRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern build() {
final var _resultValue = new WebAclRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern();
_resultValue.all = all;
_resultValue.excludedCookies = excludedCookies;
_resultValue.includedCookies = includedCookies;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy