// *** 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.gcp.osconfig.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class GuestPoliciesRecipeUpdateStepMsiInstallation {
    /**
     * @return Return codes that indicate that the software installed or updated successfully. Behaviour defaults to [0]
     * 
     */
    private @Nullable List<Integer> allowedExitCodes;
    /**
     * @return The id of the relevant artifact in the recipe.
     * 
     */
    private String artifactId;
    /**
     * @return The flags to use when installing the MSI. Defaults to the install flag.
     * 
     */
    private @Nullable List<String> flags;

    private GuestPoliciesRecipeUpdateStepMsiInstallation() {}
    /**
     * @return Return codes that indicate that the software installed or updated successfully. Behaviour defaults to [0]
     * 
     */
    public List<Integer> allowedExitCodes() {
        return this.allowedExitCodes == null ? List.of() : this.allowedExitCodes;
    }
    /**
     * @return The id of the relevant artifact in the recipe.
     * 
     */
    public String artifactId() {
        return this.artifactId;
    }
    /**
     * @return The flags to use when installing the MSI. Defaults to the install flag.
     * 
     */
    public List<String> flags() {
        return this.flags == null ? List.of() : this.flags;
    }

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

    public static Builder builder(GuestPoliciesRecipeUpdateStepMsiInstallation defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List<Integer> allowedExitCodes;
        private String artifactId;
        private @Nullable List<String> flags;
        public Builder() {}
        public Builder(GuestPoliciesRecipeUpdateStepMsiInstallation defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allowedExitCodes = defaults.allowedExitCodes;
    	      this.artifactId = defaults.artifactId;
    	      this.flags = defaults.flags;
        }

        @CustomType.Setter
        public Builder allowedExitCodes(@Nullable List<Integer> allowedExitCodes) {
            this.allowedExitCodes = allowedExitCodes;
            return this;
        }
        public Builder allowedExitCodes(Integer... allowedExitCodes) {
            return allowedExitCodes(List.of(allowedExitCodes));
        }
        @CustomType.Setter
        public Builder artifactId(String artifactId) {
            this.artifactId = Objects.requireNonNull(artifactId);
            return this;
        }
        @CustomType.Setter
        public Builder flags(@Nullable List<String> flags) {
            this.flags = flags;
            return this;
        }
        public Builder flags(String... flags) {
            return flags(List.of(flags));
        }
        public GuestPoliciesRecipeUpdateStepMsiInstallation build() {
            final var o = new GuestPoliciesRecipeUpdateStepMsiInstallation();
            o.allowedExitCodes = allowedExitCodes;
            o.artifactId = artifactId;
            o.flags = flags;
            return o;
        }
    }
}
