
com.pulumi.aws.wafv2.outputs.WebAclCustomResponseBody 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.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class WebAclCustomResponseBody {
/**
* @return Payload of the custom response.
*
*/
private String content;
/**
* @return Type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`.
*
*/
private String contentType;
/**
* @return Unique key identifying the custom response body. This is referenced by the `custom_response_body_key` argument in the `custom_response` block.
*
*/
private String key;
private WebAclCustomResponseBody() {}
/**
* @return Payload of the custom response.
*
*/
public String content() {
return this.content;
}
/**
* @return Type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`.
*
*/
public String contentType() {
return this.contentType;
}
/**
* @return Unique key identifying the custom response body. This is referenced by the `custom_response_body_key` argument in the `custom_response` block.
*
*/
public String key() {
return this.key;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WebAclCustomResponseBody defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String content;
private String contentType;
private String key;
public Builder() {}
public Builder(WebAclCustomResponseBody defaults) {
Objects.requireNonNull(defaults);
this.content = defaults.content;
this.contentType = defaults.contentType;
this.key = defaults.key;
}
@CustomType.Setter
public Builder content(String content) {
if (content == null) {
throw new MissingRequiredPropertyException("WebAclCustomResponseBody", "content");
}
this.content = content;
return this;
}
@CustomType.Setter
public Builder contentType(String contentType) {
if (contentType == null) {
throw new MissingRequiredPropertyException("WebAclCustomResponseBody", "contentType");
}
this.contentType = contentType;
return this;
}
@CustomType.Setter
public Builder key(String key) {
if (key == null) {
throw new MissingRequiredPropertyException("WebAclCustomResponseBody", "key");
}
this.key = key;
return this;
}
public WebAclCustomResponseBody build() {
final var _resultValue = new WebAclCustomResponseBody();
_resultValue.content = content;
_resultValue.contentType = contentType;
_resultValue.key = key;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy