public Cluster withRepoUpgradeOnBoot(RepoUpgradeOnBoot repoUpgradeOnBoot) {
        this.repoUpgradeOnBoot = repoUpgradeOnBoot.toString();
        return this;
    }
<p>
Applies only when <code>CustomAmiID</code> is used. Specifies the type of updates that the Amazon Linux AMI
package repositories apply when an instance boots using the AMI.
</p>

@param repoUpgradeOnBoot
       Applies only when <code>CustomAmiID</code> is used. Specifies the type of updates that the Amazon Linux
       AMI package repositories apply when an instance boots using the AMI.
@return Returns a reference to this object so that method calls can be chained together.
@see RepoUpgradeOnBoot
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/Cluster.java