public GuardrailTopicConfig withType(String type) {
        setType(type);
        return this;
    }
<p>
Specifies to deny the topic.
</p>

@param type
       Specifies to deny the topic.
@return Returns a reference to this object so that method calls can be chained together.
@see GuardrailTopicType
aws-java-sdk-bedrock/src/main/java/com/amazonaws/services/bedrock/model/GuardrailTopicConfig.java