// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.imagebuilder.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.Objects;

@CustomType
public final class ImageRecipeSystemsManagerAgent {
    /**
     * @return Whether to remove the Systems Manager Agent after the image has been built. Defaults to `false`.
     * 
     */
    private Boolean uninstallAfterBuild;

    private ImageRecipeSystemsManagerAgent() {}
    /**
     * @return Whether to remove the Systems Manager Agent after the image has been built. Defaults to `false`.
     * 
     */
    public Boolean uninstallAfterBuild() {
        return this.uninstallAfterBuild;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(ImageRecipeSystemsManagerAgent defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean uninstallAfterBuild;
        public Builder() {}
        public Builder(ImageRecipeSystemsManagerAgent defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.uninstallAfterBuild = defaults.uninstallAfterBuild;
        }

        @CustomType.Setter
        public Builder uninstallAfterBuild(Boolean uninstallAfterBuild) {
            this.uninstallAfterBuild = Objects.requireNonNull(uninstallAfterBuild);
            return this;
        }
        public ImageRecipeSystemsManagerAgent build() {
            final var o = new ImageRecipeSystemsManagerAgent();
            o.uninstallAfterBuild = uninstallAfterBuild;
            return o;
        }
    }
}
