public LoadBalancerTlsCertificate withDomainValidationRecords(LoadBalancerTlsCertificateDomainValidationRecord... domainValidationRecords) {
        if (this.domainValidationRecords == null) {
            setDomainValidationRecords(new java.util.ArrayList<LoadBalancerTlsCertificateDomainValidationRecord>(domainValidationRecords.length));
        }
        for (LoadBalancerTlsCertificateDomainValidationRecord ele : domainValidationRecords) {
            this.domainValidationRecords.add(ele);
        }
        return this;
    }
<p>
An array of LoadBalancerTlsCertificateDomainValidationRecord objects describing the records.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDomainValidationRecords(java.util.Collection)} or
{@link #withDomainValidationRecords(java.util.Collection)} if you want to override the existing values.
</p>

@param domainValidationRecords
       An array of LoadBalancerTlsCertificateDomainValidationRecord objects describing the records.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/LoadBalancerTlsCertificate.java