public CreateAssetRequest withAssetModelId(String assetModelId) {
        setAssetModelId(assetModelId);
        return this;
    }
<p>
The ID of the asset model from which to create the asset. This can be either the actual ID in UUID format, or
else <code>externalId:</code> followed by the external ID, if it has one. For more information, see <a
href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/object-ids.html#external-id-references"
>Referencing objects with external IDs</a> in the <i>IoT SiteWise User Guide</i>.
</p>

@param assetModelId
       The ID of the asset model from which to create the asset. This can be either the actual ID in UUID format,
       or else <code>externalId:</code> followed by the external ID, if it has one. For more information, see <a
       href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/object-ids.html#external-id-references">
       Referencing objects with external IDs</a> in the <i>IoT SiteWise User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iotsitewise/src/main/java/com/amazonaws/services/iotsitewise/model/CreateAssetRequest.java