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

import com.pulumi.azure.policy.inputs.VirtualMachineConfigurationAssignmentConfigurationParameterArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final VirtualMachineConfigurationAssignmentConfigurationArgs Empty = new VirtualMachineConfigurationAssignmentConfigurationArgs();

    /**
     * The assignment type for the Guest Configuration Assignment. Possible values are `Audit`, `ApplyAndAutoCorrect`, `ApplyAndMonitor` and `DeployAndAutoCorrect`.
     * 
     */
    @Import(name="assignmentType")
    private @Nullable Output<String> assignmentType;

    /**
     * @return The assignment type for the Guest Configuration Assignment. Possible values are `Audit`, `ApplyAndAutoCorrect`, `ApplyAndMonitor` and `DeployAndAutoCorrect`.
     * 
     */
    public Optional<Output<String>> assignmentType() {
        return Optional.ofNullable(this.assignmentType);
    }

    /**
     * The content hash for the Guest Configuration package.
     * 
     */
    @Import(name="contentHash")
    private @Nullable Output<String> contentHash;

    /**
     * @return The content hash for the Guest Configuration package.
     * 
     */
    public Optional<Output<String>> contentHash() {
        return Optional.ofNullable(this.contentHash);
    }

    /**
     * The content URI where the Guest Configuration package is stored.
     * 
     * &gt; **NOTE:** When deploying a Custom Guest Configuration package the `content_hash` and `content_uri` fields must be defined. For Built-in Guest Configuration packages, such as the `AzureWindowsBaseline` package, the `content_hash` and `content_uri` should not be defined, rather these fields will be returned after the Built-in Guest Configuration package has been provisioned. For more information on guest configuration assignments please see the [product documentation](https://docs.microsoft.com/azure/governance/policy/concepts/guest-configuration-assignments).
     * 
     */
    @Import(name="contentUri")
    private @Nullable Output<String> contentUri;

    /**
     * @return The content URI where the Guest Configuration package is stored.
     * 
     * &gt; **NOTE:** When deploying a Custom Guest Configuration package the `content_hash` and `content_uri` fields must be defined. For Built-in Guest Configuration packages, such as the `AzureWindowsBaseline` package, the `content_hash` and `content_uri` should not be defined, rather these fields will be returned after the Built-in Guest Configuration package has been provisioned. For more information on guest configuration assignments please see the [product documentation](https://docs.microsoft.com/azure/governance/policy/concepts/guest-configuration-assignments).
     * 
     */
    public Optional<Output<String>> contentUri() {
        return Optional.ofNullable(this.contentUri);
    }

    /**
     * One or more `parameter` blocks as defined below which define what configuration parameters and values against.
     * 
     */
    @Import(name="parameters")
    private @Nullable Output<List<VirtualMachineConfigurationAssignmentConfigurationParameterArgs>> parameters;

    /**
     * @return One or more `parameter` blocks as defined below which define what configuration parameters and values against.
     * 
     */
    public Optional<Output<List<VirtualMachineConfigurationAssignmentConfigurationParameterArgs>>> parameters() {
        return Optional.ofNullable(this.parameters);
    }

    /**
     * The version of the Guest Configuration that will be assigned in this Guest Configuration Assignment.
     * 
     */
    @Import(name="version")
    private @Nullable Output<String> version;

    /**
     * @return The version of the Guest Configuration that will be assigned in this Guest Configuration Assignment.
     * 
     */
    public Optional<Output<String>> version() {
        return Optional.ofNullable(this.version);
    }

    private VirtualMachineConfigurationAssignmentConfigurationArgs() {}

    private VirtualMachineConfigurationAssignmentConfigurationArgs(VirtualMachineConfigurationAssignmentConfigurationArgs $) {
        this.assignmentType = $.assignmentType;
        this.contentHash = $.contentHash;
        this.contentUri = $.contentUri;
        this.parameters = $.parameters;
        this.version = $.version;
    }

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

    public static final class Builder {
        private VirtualMachineConfigurationAssignmentConfigurationArgs $;

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

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

        /**
         * @param assignmentType The assignment type for the Guest Configuration Assignment. Possible values are `Audit`, `ApplyAndAutoCorrect`, `ApplyAndMonitor` and `DeployAndAutoCorrect`.
         * 
         * @return builder
         * 
         */
        public Builder assignmentType(@Nullable Output<String> assignmentType) {
            $.assignmentType = assignmentType;
            return this;
        }

        /**
         * @param assignmentType The assignment type for the Guest Configuration Assignment. Possible values are `Audit`, `ApplyAndAutoCorrect`, `ApplyAndMonitor` and `DeployAndAutoCorrect`.
         * 
         * @return builder
         * 
         */
        public Builder assignmentType(String assignmentType) {
            return assignmentType(Output.of(assignmentType));
        }

        /**
         * @param contentHash The content hash for the Guest Configuration package.
         * 
         * @return builder
         * 
         */
        public Builder contentHash(@Nullable Output<String> contentHash) {
            $.contentHash = contentHash;
            return this;
        }

        /**
         * @param contentHash The content hash for the Guest Configuration package.
         * 
         * @return builder
         * 
         */
        public Builder contentHash(String contentHash) {
            return contentHash(Output.of(contentHash));
        }

        /**
         * @param contentUri The content URI where the Guest Configuration package is stored.
         * 
         * &gt; **NOTE:** When deploying a Custom Guest Configuration package the `content_hash` and `content_uri` fields must be defined. For Built-in Guest Configuration packages, such as the `AzureWindowsBaseline` package, the `content_hash` and `content_uri` should not be defined, rather these fields will be returned after the Built-in Guest Configuration package has been provisioned. For more information on guest configuration assignments please see the [product documentation](https://docs.microsoft.com/azure/governance/policy/concepts/guest-configuration-assignments).
         * 
         * @return builder
         * 
         */
        public Builder contentUri(@Nullable Output<String> contentUri) {
            $.contentUri = contentUri;
            return this;
        }

        /**
         * @param contentUri The content URI where the Guest Configuration package is stored.
         * 
         * &gt; **NOTE:** When deploying a Custom Guest Configuration package the `content_hash` and `content_uri` fields must be defined. For Built-in Guest Configuration packages, such as the `AzureWindowsBaseline` package, the `content_hash` and `content_uri` should not be defined, rather these fields will be returned after the Built-in Guest Configuration package has been provisioned. For more information on guest configuration assignments please see the [product documentation](https://docs.microsoft.com/azure/governance/policy/concepts/guest-configuration-assignments).
         * 
         * @return builder
         * 
         */
        public Builder contentUri(String contentUri) {
            return contentUri(Output.of(contentUri));
        }

        /**
         * @param parameters One or more `parameter` blocks as defined below which define what configuration parameters and values against.
         * 
         * @return builder
         * 
         */
        public Builder parameters(@Nullable Output<List<VirtualMachineConfigurationAssignmentConfigurationParameterArgs>> parameters) {
            $.parameters = parameters;
            return this;
        }

        /**
         * @param parameters One or more `parameter` blocks as defined below which define what configuration parameters and values against.
         * 
         * @return builder
         * 
         */
        public Builder parameters(List<VirtualMachineConfigurationAssignmentConfigurationParameterArgs> parameters) {
            return parameters(Output.of(parameters));
        }

        /**
         * @param parameters One or more `parameter` blocks as defined below which define what configuration parameters and values against.
         * 
         * @return builder
         * 
         */
        public Builder parameters(VirtualMachineConfigurationAssignmentConfigurationParameterArgs... parameters) {
            return parameters(List.of(parameters));
        }

        /**
         * @param version The version of the Guest Configuration that will be assigned in this Guest Configuration Assignment.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output<String> version) {
            $.version = version;
            return this;
        }

        /**
         * @param version The version of the Guest Configuration that will be assigned in this Guest Configuration Assignment.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public VirtualMachineConfigurationAssignmentConfigurationArgs build() {
            return $;
        }
    }

}
