/** * <p> * Whether to install operating system and package updates when the instance boots. The default value is * <code>true</code>. To control when updates are installed, set this value to <code>false</code>. You must then * update your instances manually by using <a>CreateDeployment</a> to run the <code>update_dependencies</code> stack * command or by manually running <code>yum</code> (Amazon Linux) or <code>apt-get</code> (Ubuntu) on the instances. * </p> * <note> * <p> * We strongly recommend using the default value of <code>true</code>, to ensure that your instances have the latest * security updates. * </p> * </note> * * @param installUpdatesOnBoot * Whether to install operating system and package updates when the instance boots. The default value is * <code>true</code>. To control when updates are installed, set this value to <code>false</code>. You must * then update your instances manually by using <a>CreateDeployment</a> to run the * <code>update_dependencies</code> stack command or by manually running <code>yum</code> (Amazon Linux) or * <code>apt-get</code> (Ubuntu) on the instances. </p> <note> * <p> * We strongly recommend using the default value of <code>true</code>, to ensure that your instances have the * latest security updates. * </p> * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateInstanceRequest withInstallUpdatesOnBoot(Boolean installUpdatesOnBoot) { setInstallUpdatesOnBoot(installUpdatesOnBoot); return this; }
/** * <p> * Whether to install operating system and package updates when the instance boots. The default value is * <code>true</code>. To control when updates are installed, set this value to <code>false</code>. You must then * update your instances manually by using <a>CreateDeployment</a> to run the <code>update_dependencies</code> stack * command or by manually running <code>yum</code> (Amazon Linux) or <code>apt-get</code> (Ubuntu) on the instances. * </p> * <note> * <p> * We strongly recommend using the default value of <code>true</code>, to ensure that your instances have the latest * security updates. * </p> * </note> * * @param installUpdatesOnBoot * Whether to install operating system and package updates when the instance boots. The default value is * <code>true</code>. To control when updates are installed, set this value to <code>false</code>. You must * then update your instances manually by using <a>CreateDeployment</a> to run the * <code>update_dependencies</code> stack command or by manually running <code>yum</code> (Amazon Linux) or * <code>apt-get</code> (Ubuntu) on the instances. </p> <note> * <p> * We strongly recommend using the default value of <code>true</code>, to ensure that your instances have the * latest security updates. * </p> * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateInstanceRequest withInstallUpdatesOnBoot(Boolean installUpdatesOnBoot) { setInstallUpdatesOnBoot(installUpdatesOnBoot); return this; }