public Resource withPartition(String partition) {
        setPartition(partition);
        return this;
    }
<p>
The canonical Amazon Web Services partition name that the Region is assigned to.
</p>

@param partition
       The canonical Amazon Web Services partition name that the Region is assigned to.
@return Returns a reference to this object so that method calls can be chained together.
@see Partition
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/Resource.java