public ConstraintDetail withProductId(String productId) {
        setProductId(productId);
        return this;
    }
<p>
The identifier of the product the constraint applies to. Note that a constraint applies to a specific instance of
a product within a certain portfolio.
</p>

@param productId
       The identifier of the product the constraint applies to. Note that a constraint applies to a specific
       instance of a product within a certain portfolio.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-servicecatalog/src/main/java/com/amazonaws/services/servicecatalog/model/ConstraintDetail.java