public ViewerCertificate withIAMCertificateId(String iAMCertificateId) {
        setIAMCertificateId(iAMCertificateId);
        return this;
    }
<p>
If the distribution uses <code>Aliases</code> (alternate domain names or CNAMEs) and the SSL/TLS certificate is
stored in <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html">Identity
and Access Management (IAM)</a>, provide the ID of the IAM certificate.
</p>
<p>
If you specify an IAM certificate ID, you must also specify values for <code>MinimumProtocolVersion</code> and
<code>SSLSupportMethod</code>.
</p>

@param iAMCertificateId
       If the distribution uses <code>Aliases</code> (alternate domain names or CNAMEs) and the SSL/TLS
       certificate is stored in <a
       href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html">Identity and
       Access Management (IAM)</a>, provide the ID of the IAM certificate.</p>
       <p>
       If you specify an IAM certificate ID, you must also specify values for <code>MinimumProtocolVersion</code>
       and <code>SSLSupportMethod</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudfront/src/main/java/com/amazonaws/services/cloudfront/model/ViewerCertificate.java