public void setInstanceType(String instanceType) {
        this.instanceType = instanceType;
    }
<p>
The type of instance to restore. Valid values must be specified in the following format:
<code>^([cm][34]|t2).*</code> For example, <code>m5.large</code>. Valid values are <code>m5.large</code>,
<code>r5.xlarge</code>, and <code>r5.2xlarge</code>. If you do not specify this parameter, RestoreServer uses the
instance type from the specified backup.
</p>

@param instanceType
       The type of instance to restore. Valid values must be specified in the following format:
       <code>^([cm][34]|t2).*</code> For example, <code>m5.large</code>. Valid values are <code>m5.large</code>,
       <code>r5.xlarge</code>, and <code>r5.2xlarge</code>. If you do not specify this parameter, RestoreServer
       uses the instance type from the specified backup.
aws-java-sdk-opsworkscm/src/main/java/com/amazonaws/services/opsworkscm/model/RestoreServerRequest.java