public void setDetachPolicy(BatchDetachPolicy detachPolicy) {
        this.detachPolicy = detachPolicy;
    }
<p>
Detaches a policy from a <a>Directory</a>.
</p>

@param detachPolicy
       Detaches a policy from a <a>Directory</a>.
aws-java-sdk-clouddirectory/src/main/java/com/amazonaws/services/clouddirectory/model/BatchWriteOperation.java