public ConflictException withDependentEntities(DependentEntity... dependentEntities) {
        if (this.dependentEntities == null) {
            setDependentEntities(new java.util.ArrayList<DependentEntity>(dependentEntities.length));
        }
        for (DependentEntity ele : dependentEntities) {
            this.dependentEntities.add(ele);
        }
        return this;
    }
List of dependent entities containing information on relation type and resourceArns linked to the resource in use
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDependentEntities(java.util.Collection)} or {@link #withDependentEntities(java.util.Collection)} if
you want to override the existing values.
</p>

@param dependentEntities
       List of dependent entities containing information on relation type and resourceArns linked to the resource
       in use
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssmcontacts/src/main/java/com/amazonaws/services/ssmcontacts/model/ConflictException.java