// *** 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.osconfig.inputs.GuestPoliciesRecipeArtifactGcsArgs;
import com.pulumi.gcp.osconfig.inputs.GuestPoliciesRecipeArtifactRemoteArgs;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GuestPoliciesRecipeArtifactArgs extends com.pulumi.resources.ResourceArgs {

    public static final GuestPoliciesRecipeArtifactArgs Empty = new GuestPoliciesRecipeArtifactArgs();

    /**
     * Defaults to false. When false, recipes are subject to validations based on the artifact type:
     * Remote: A checksum must be specified, and only protocols with transport-layer security are permitted.
     * GCS: An object generation number must be specified.
     * 
     */
    @Import(name="allowInsecure")
    private @Nullable Output<Boolean> allowInsecure;

    /**
     * @return Defaults to false. When false, recipes are subject to validations based on the artifact type:
     * Remote: A checksum must be specified, and only protocols with transport-layer security are permitted.
     * GCS: An object generation number must be specified.
     * 
     */
    public Optional<Output<Boolean>> allowInsecure() {
        return Optional.ofNullable(this.allowInsecure);
    }

    /**
     * A Google Cloud Storage artifact.
     * Structure is documented below.
     * 
     */
    @Import(name="gcs")
    private @Nullable Output<GuestPoliciesRecipeArtifactGcsArgs> gcs;

    /**
     * @return A Google Cloud Storage artifact.
     * Structure is documented below.
     * 
     */
    public Optional<Output<GuestPoliciesRecipeArtifactGcsArgs>> gcs() {
        return Optional.ofNullable(this.gcs);
    }

    /**
     * Id of the artifact, which the installation and update steps of this recipe can reference.
     * Artifacts in a recipe cannot have the same id.
     * 
     */
    @Import(name="id", required=true)
    private Output<String> id;

    /**
     * @return Id of the artifact, which the installation and update steps of this recipe can reference.
     * Artifacts in a recipe cannot have the same id.
     * 
     */
    public Output<String> id() {
        return this.id;
    }

    /**
     * A generic remote artifact.
     * Structure is documented below.
     * 
     */
    @Import(name="remote")
    private @Nullable Output<GuestPoliciesRecipeArtifactRemoteArgs> remote;

    /**
     * @return A generic remote artifact.
     * Structure is documented below.
     * 
     */
    public Optional<Output<GuestPoliciesRecipeArtifactRemoteArgs>> remote() {
        return Optional.ofNullable(this.remote);
    }

    private GuestPoliciesRecipeArtifactArgs() {}

    private GuestPoliciesRecipeArtifactArgs(GuestPoliciesRecipeArtifactArgs $) {
        this.allowInsecure = $.allowInsecure;
        this.gcs = $.gcs;
        this.id = $.id;
        this.remote = $.remote;
    }

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

    public static final class Builder {
        private GuestPoliciesRecipeArtifactArgs $;

        public Builder() {
            $ = new GuestPoliciesRecipeArtifactArgs();
        }

        public Builder(GuestPoliciesRecipeArtifactArgs defaults) {
            $ = new GuestPoliciesRecipeArtifactArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param allowInsecure Defaults to false. When false, recipes are subject to validations based on the artifact type:
         * Remote: A checksum must be specified, and only protocols with transport-layer security are permitted.
         * GCS: An object generation number must be specified.
         * 
         * @return builder
         * 
         */
        public Builder allowInsecure(@Nullable Output<Boolean> allowInsecure) {
            $.allowInsecure = allowInsecure;
            return this;
        }

        /**
         * @param allowInsecure Defaults to false. When false, recipes are subject to validations based on the artifact type:
         * Remote: A checksum must be specified, and only protocols with transport-layer security are permitted.
         * GCS: An object generation number must be specified.
         * 
         * @return builder
         * 
         */
        public Builder allowInsecure(Boolean allowInsecure) {
            return allowInsecure(Output.of(allowInsecure));
        }

        /**
         * @param gcs A Google Cloud Storage artifact.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder gcs(@Nullable Output<GuestPoliciesRecipeArtifactGcsArgs> gcs) {
            $.gcs = gcs;
            return this;
        }

        /**
         * @param gcs A Google Cloud Storage artifact.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder gcs(GuestPoliciesRecipeArtifactGcsArgs gcs) {
            return gcs(Output.of(gcs));
        }

        /**
         * @param id Id of the artifact, which the installation and update steps of this recipe can reference.
         * Artifacts in a recipe cannot have the same id.
         * 
         * @return builder
         * 
         */
        public Builder id(Output<String> id) {
            $.id = id;
            return this;
        }

        /**
         * @param id Id of the artifact, which the installation and update steps of this recipe can reference.
         * Artifacts in a recipe cannot have the same id.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param remote A generic remote artifact.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder remote(@Nullable Output<GuestPoliciesRecipeArtifactRemoteArgs> remote) {
            $.remote = remote;
            return this;
        }

        /**
         * @param remote A generic remote artifact.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder remote(GuestPoliciesRecipeArtifactRemoteArgs remote) {
            return remote(Output.of(remote));
        }

        public GuestPoliciesRecipeArtifactArgs build() {
            $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null");
            return $;
        }
    }

}
