public LaunchTemplateCpuOptionsRequest withThreadsPerCore(Integer threadsPerCore) {
        setThreadsPerCore(threadsPerCore);
        return this;
    }
<p>
The number of threads per CPU core. To disable multithreading for the instance, specify a value of <code>1</code>
. Otherwise, specify the default value of <code>2</code>.
</p>

@param threadsPerCore
       The number of threads per CPU core. To disable multithreading for the instance, specify a value of
       <code>1</code>. Otherwise, specify the default value of <code>2</code>.
@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/LaunchTemplateCpuOptionsRequest.java