com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling 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.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;
@CustomType
public final class WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling {
/**
* @return The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details.
*
*/
private List insertHeaders;
private WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling() {}
/**
* @return The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details.
*
*/
public List insertHeaders() {
return this.insertHeaders;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List insertHeaders;
public Builder() {}
public Builder(WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling defaults) {
Objects.requireNonNull(defaults);
this.insertHeaders = defaults.insertHeaders;
}
@CustomType.Setter
public Builder insertHeaders(List insertHeaders) {
if (insertHeaders == null) {
throw new MissingRequiredPropertyException("WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling", "insertHeaders");
}
this.insertHeaders = insertHeaders;
return this;
}
public Builder insertHeaders(WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader... insertHeaders) {
return insertHeaders(List.of(insertHeaders));
}
public WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling build() {
final var _resultValue = new WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling();
_resultValue.insertHeaders = insertHeaders;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy