
com.pulumi.aws.bedrock.outputs.GuardrailSensitiveInformationPolicyConfig 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.bedrock.outputs;
import com.pulumi.aws.bedrock.outputs.GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfig;
import com.pulumi.aws.bedrock.outputs.GuardrailSensitiveInformationPolicyConfigRegexesConfig;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class GuardrailSensitiveInformationPolicyConfig {
/**
* @return List of entities. See PII Entities Config for more information.
*
*/
private @Nullable List piiEntitiesConfigs;
/**
* @return List of regex. See Regexes Config for more information.
*
*/
private @Nullable List regexesConfigs;
private GuardrailSensitiveInformationPolicyConfig() {}
/**
* @return List of entities. See PII Entities Config for more information.
*
*/
public List piiEntitiesConfigs() {
return this.piiEntitiesConfigs == null ? List.of() : this.piiEntitiesConfigs;
}
/**
* @return List of regex. See Regexes Config for more information.
*
*/
public List regexesConfigs() {
return this.regexesConfigs == null ? List.of() : this.regexesConfigs;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GuardrailSensitiveInformationPolicyConfig defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List piiEntitiesConfigs;
private @Nullable List regexesConfigs;
public Builder() {}
public Builder(GuardrailSensitiveInformationPolicyConfig defaults) {
Objects.requireNonNull(defaults);
this.piiEntitiesConfigs = defaults.piiEntitiesConfigs;
this.regexesConfigs = defaults.regexesConfigs;
}
@CustomType.Setter
public Builder piiEntitiesConfigs(@Nullable List piiEntitiesConfigs) {
this.piiEntitiesConfigs = piiEntitiesConfigs;
return this;
}
public Builder piiEntitiesConfigs(GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfig... piiEntitiesConfigs) {
return piiEntitiesConfigs(List.of(piiEntitiesConfigs));
}
@CustomType.Setter
public Builder regexesConfigs(@Nullable List regexesConfigs) {
this.regexesConfigs = regexesConfigs;
return this;
}
public Builder regexesConfigs(GuardrailSensitiveInformationPolicyConfigRegexesConfig... regexesConfigs) {
return regexesConfigs(List.of(regexesConfigs));
}
public GuardrailSensitiveInformationPolicyConfig build() {
final var _resultValue = new GuardrailSensitiveInformationPolicyConfig();
_resultValue.piiEntitiesConfigs = piiEntitiesConfigs;
_resultValue.regexesConfigs = regexesConfigs;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy