public DescribeIpamResourceDiscoveryAssociationsResult withIpamResourceDiscoveryAssociations(
            IpamResourceDiscoveryAssociation... ipamResourceDiscoveryAssociations) {
        if (this.ipamResourceDiscoveryAssociations == null) {
            setIpamResourceDiscoveryAssociations(new com.amazonaws.internal.SdkInternalList<IpamResourceDiscoveryAssociation>(
                    ipamResourceDiscoveryAssociations.length));
        }
        for (IpamResourceDiscoveryAssociation ele : ipamResourceDiscoveryAssociations) {
            this.ipamResourceDiscoveryAssociations.add(ele);
        }
        return this;
    }
<p>
The resource discovery associations.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setIpamResourceDiscoveryAssociations(java.util.Collection)} or
{@link #withIpamResourceDiscoveryAssociations(java.util.Collection)} if you want to override the existing values.
</p>

@param ipamResourceDiscoveryAssociations
       The resource discovery associations.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/DescribeIpamResourceDiscoveryAssociationsResult.java