public ResourceMetadata withUid(String uid) {
        setUid(uid);
        return this;
    }
<p>
The unique identifier for the resource.
</p>

@param uid
       The unique identifier for the resource.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-appmesh/src/main/java/com/amazonaws/services/appmesh/model/ResourceMetadata.java