public void setUninstallAfterBuild(Boolean uninstallAfterBuild) {
        this.uninstallAfterBuild = uninstallAfterBuild;
    }
<p>
Controls whether the Systems Manager agent is removed from your final build image, prior to creating the new AMI.
If this is set to true, then the agent is removed from the final image. If it's set to false, then the agent is
left in, so that it is included in the new AMI. The default value is false.
</p>

@param uninstallAfterBuild
       Controls whether the Systems Manager agent is removed from your final build image, prior to creating the
       new AMI. If this is set to true, then the agent is removed from the final image. If it's set to false,
       then the agent is left in, so that it is included in the new AMI. The default value is false.
aws-java-sdk-imagebuilder/src/main/java/com/amazonaws/services/imagebuilder/model/SystemsManagerAgent.java