com.pulumi.aws.wafv2.inputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs 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.wafv2.inputs;
import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;
public final class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs extends com.pulumi.resources.ResourceArgs {
public static final WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs Empty = new WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs();
/**
* The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details.
*
*/
@Import(name="insertHeaders", required=true)
private Output> insertHeaders;
/**
* @return The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details.
*
*/
public Output> insertHeaders() {
return this.insertHeaders;
}
private WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs() {}
private WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs $) {
this.insertHeaders = $.insertHeaders;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs $;
public Builder() {
$ = new WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs();
}
public Builder(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs defaults) {
$ = new WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs(Objects.requireNonNull(defaults));
}
/**
* @param insertHeaders The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details.
*
* @return builder
*
*/
public Builder insertHeaders(Output> insertHeaders) {
$.insertHeaders = insertHeaders;
return this;
}
/**
* @param insertHeaders The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details.
*
* @return builder
*
*/
public Builder insertHeaders(List insertHeaders) {
return insertHeaders(Output.of(insertHeaders));
}
/**
* @param insertHeaders The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details.
*
* @return builder
*
*/
public Builder insertHeaders(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs... insertHeaders) {
return insertHeaders(List.of(insertHeaders));
}
public WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs build() {
if ($.insertHeaders == null) {
throw new MissingRequiredPropertyException("WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs", "insertHeaders");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy