public DescribeAssetModelResult withAssetModelHierarchies(AssetModelHierarchy... assetModelHierarchies) {
        if (this.assetModelHierarchies == null) {
            setAssetModelHierarchies(new java.util.ArrayList<AssetModelHierarchy>(assetModelHierarchies.length));
        }
        for (AssetModelHierarchy ele : assetModelHierarchies) {
            this.assetModelHierarchies.add(ele);
        }
        return this;
    }
<p>
A list of asset model hierarchies that each contain a <code>childAssetModelId</code> and a
<code>hierarchyId</code> (named <code>id</code>). A hierarchy specifies allowed parent/child asset relationships
for an asset model.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAssetModelHierarchies(java.util.Collection)} or
{@link #withAssetModelHierarchies(java.util.Collection)} if you want to override the existing values.
</p>

@param assetModelHierarchies
       A list of asset model hierarchies that each contain a <code>childAssetModelId</code> and a
       <code>hierarchyId</code> (named <code>id</code>). A hierarchy specifies allowed parent/child asset
       relationships for an asset model.
@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/DescribeAssetModelResult.java