public String getAmiId() {
        return this.amiId;
    }
<p>
A custom AMI ID to be used to create the instance. The AMI should be based on one of the supported operating
systems. For more information, see <a
href="https://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html">Using Custom
AMIs</a>.
</p>
<note>
<p>
If you specify a custom AMI, you must set <code>Os</code> to <code>Custom</code>.
</p>
</note>

@return A custom AMI ID to be used to create the instance. The AMI should be based on one of the supported
        operating systems. For more information, see <a
        href="https://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html">Using
        Custom AMIs</a>.</p> <note>
        <p>
        If you specify a custom AMI, you must set <code>Os</code> to <code>Custom</code>.
        </p>
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/CreateInstanceRequest.java