public void setTopicPolicy(GuardrailTopicPolicy topicPolicy) {
        this.topicPolicy = topicPolicy;
    }
<p>
The topic policy that was configured for the guardrail.
</p>

@param topicPolicy
       The topic policy that was configured for the guardrail.
aws-java-sdk-bedrock/src/main/java/com/amazonaws/services/bedrock/model/GetGuardrailResult.java