// *** 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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GuestPoliciesRecipeUpdateStepArchiveExtraction {
    /**
     * @return The id of the relevant artifact in the recipe.
     * 
     */
    private String artifactId;
    /**
     * @return Directory to extract archive to. Defaults to / on Linux or C:\ on Windows.
     * 
     */
    private @Nullable String destination;
    /**
     * @return The type of the archive to extract.
     * Possible values are: `TAR`, `TAR_GZIP`, `TAR_BZIP`, `TAR_LZMA`, `TAR_XZ`, `ZIP`.
     * 
     */
    private String type;

    private GuestPoliciesRecipeUpdateStepArchiveExtraction() {}
    /**
     * @return The id of the relevant artifact in the recipe.
     * 
     */
    public String artifactId() {
        return this.artifactId;
    }
    /**
     * @return Directory to extract archive to. Defaults to / on Linux or C:\ on Windows.
     * 
     */
    public Optional<String> destination() {
        return Optional.ofNullable(this.destination);
    }
    /**
     * @return The type of the archive to extract.
     * Possible values are: `TAR`, `TAR_GZIP`, `TAR_BZIP`, `TAR_LZMA`, `TAR_XZ`, `ZIP`.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GuestPoliciesRecipeUpdateStepArchiveExtraction defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String artifactId;
        private @Nullable String destination;
        private String type;
        public Builder() {}
        public Builder(GuestPoliciesRecipeUpdateStepArchiveExtraction defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.artifactId = defaults.artifactId;
    	      this.destination = defaults.destination;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder artifactId(String artifactId) {
            this.artifactId = Objects.requireNonNull(artifactId);
            return this;
        }
        @CustomType.Setter
        public Builder destination(@Nullable String destination) {
            this.destination = destination;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            this.type = Objects.requireNonNull(type);
            return this;
        }
        public GuestPoliciesRecipeUpdateStepArchiveExtraction build() {
            final var o = new GuestPoliciesRecipeUpdateStepArchiveExtraction();
            o.artifactId = artifactId;
            o.destination = destination;
            o.type = type;
            return o;
        }
    }
}
