public GrpcGatewayRouteMatch withMetadata(GrpcGatewayRouteMetadata... metadata) {
        if (this.metadata == null) {
            setMetadata(new java.util.ArrayList<GrpcGatewayRouteMetadata>(metadata.length));
        }
        for (GrpcGatewayRouteMetadata ele : metadata) {
            this.metadata.add(ele);
        }
        return this;
    }
<p>
The gateway route metadata to be matched on.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setMetadata(java.util.Collection)} or {@link #withMetadata(java.util.Collection)} if you want to override
the existing values.
</p>

@param metadata
       The gateway route metadata to be matched on.
@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/GrpcGatewayRouteMatch.java