public NetworkResource withMetadata(java.util.Map<String, String> metadata) {
        setMetadata(metadata);
        return this;
    }
<p>
The resource metadata.
</p>

@param metadata
       The resource metadata.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-networkmanager/src/main/java/com/amazonaws/services/networkmanager/model/NetworkResource.java