public CreateProductRequest withSourceConnection(SourceConnection sourceConnection) {
        setSourceConnection(sourceConnection);
        return this;
    }
<p>
Specifies connection details for the created product and syncs the product to the connection source artifact.
This automatically manages the product's artifacts based on changes to the source. The
<code>SourceConnection</code> parameter consists of the following sub-fields.
</p>
<ul>
<li>
<p>
<code>Type</code>
</p>
</li>
<li>
<p>
<code>ConnectionParamters</code>
</p>
</li>
</ul>

@param sourceConnection
       Specifies connection details for the created product and syncs the product to the connection source
       artifact. This automatically manages the product's artifacts based on changes to the source. The
       <code>SourceConnection</code> parameter consists of the following sub-fields.</p>
       <ul>
       <li>
       <p>
       <code>Type</code>
       </p>
       </li>
       <li>
       <p>
       <code>ConnectionParamters</code>
       </p>
       </li>
@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/CreateProductRequest.java