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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ProtectionContainerMappingAutomaticUpdateArgs Empty = new ProtectionContainerMappingAutomaticUpdateArgs();

    /**
     * The authentication type used for automation account. Possible values are `RunAsAccount` and `SystemAssignedIdentity`.
     * 
     * &gt; **Note:** `RunAsAccount` of `authentication_type` is deprecated and will retire on September 30, 2023. Details could be found [here](https://learn.microsoft.com/en-us/azure/automation/whats-new#support-for-run-as-accounts).
     * 
     * &gt; **Note:**: `authentication_type` will default to `SystemAssignedIdentity` in version 4.0.
     * 
     */
    @Import(name="authenticationType")
    private @Nullable Output<String> authenticationType;

    /**
     * @return The authentication type used for automation account. Possible values are `RunAsAccount` and `SystemAssignedIdentity`.
     * 
     * &gt; **Note:** `RunAsAccount` of `authentication_type` is deprecated and will retire on September 30, 2023. Details could be found [here](https://learn.microsoft.com/en-us/azure/automation/whats-new#support-for-run-as-accounts).
     * 
     * &gt; **Note:**: `authentication_type` will default to `SystemAssignedIdentity` in version 4.0.
     * 
     */
    public Optional<Output<String>> authenticationType() {
        return Optional.ofNullable(this.authenticationType);
    }

    /**
     * The automation account ID which holds the automatic update runbook and authenticates to Azure resources.
     * 
     * &gt; **Note:** `automation_account_id` is required when `enabled` is specified.
     * 
     */
    @Import(name="automationAccountId")
    private @Nullable Output<String> automationAccountId;

    /**
     * @return The automation account ID which holds the automatic update runbook and authenticates to Azure resources.
     * 
     * &gt; **Note:** `automation_account_id` is required when `enabled` is specified.
     * 
     */
    public Optional<Output<String>> automationAccountId() {
        return Optional.ofNullable(this.automationAccountId);
    }

    /**
     * Should the Mobility service installed on Azure virtual machines be automatically updated. Defaults to `false`.
     * 
     * &gt; **Note:** The setting applies to all Azure VMs protected in the same container. For more details see [this document](https://learn.microsoft.com/en-us/azure/site-recovery/azure-to-azure-autoupdate#enable-automatic-updates)
     * 
     */
    @Import(name="enabled")
    private @Nullable Output<Boolean> enabled;

    /**
     * @return Should the Mobility service installed on Azure virtual machines be automatically updated. Defaults to `false`.
     * 
     * &gt; **Note:** The setting applies to all Azure VMs protected in the same container. For more details see [this document](https://learn.microsoft.com/en-us/azure/site-recovery/azure-to-azure-autoupdate#enable-automatic-updates)
     * 
     */
    public Optional<Output<Boolean>> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    private ProtectionContainerMappingAutomaticUpdateArgs() {}

    private ProtectionContainerMappingAutomaticUpdateArgs(ProtectionContainerMappingAutomaticUpdateArgs $) {
        this.authenticationType = $.authenticationType;
        this.automationAccountId = $.automationAccountId;
        this.enabled = $.enabled;
    }

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

    public static final class Builder {
        private ProtectionContainerMappingAutomaticUpdateArgs $;

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

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

        /**
         * @param authenticationType The authentication type used for automation account. Possible values are `RunAsAccount` and `SystemAssignedIdentity`.
         * 
         * &gt; **Note:** `RunAsAccount` of `authentication_type` is deprecated and will retire on September 30, 2023. Details could be found [here](https://learn.microsoft.com/en-us/azure/automation/whats-new#support-for-run-as-accounts).
         * 
         * &gt; **Note:**: `authentication_type` will default to `SystemAssignedIdentity` in version 4.0.
         * 
         * @return builder
         * 
         */
        public Builder authenticationType(@Nullable Output<String> authenticationType) {
            $.authenticationType = authenticationType;
            return this;
        }

        /**
         * @param authenticationType The authentication type used for automation account. Possible values are `RunAsAccount` and `SystemAssignedIdentity`.
         * 
         * &gt; **Note:** `RunAsAccount` of `authentication_type` is deprecated and will retire on September 30, 2023. Details could be found [here](https://learn.microsoft.com/en-us/azure/automation/whats-new#support-for-run-as-accounts).
         * 
         * &gt; **Note:**: `authentication_type` will default to `SystemAssignedIdentity` in version 4.0.
         * 
         * @return builder
         * 
         */
        public Builder authenticationType(String authenticationType) {
            return authenticationType(Output.of(authenticationType));
        }

        /**
         * @param automationAccountId The automation account ID which holds the automatic update runbook and authenticates to Azure resources.
         * 
         * &gt; **Note:** `automation_account_id` is required when `enabled` is specified.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountId(@Nullable Output<String> automationAccountId) {
            $.automationAccountId = automationAccountId;
            return this;
        }

        /**
         * @param automationAccountId The automation account ID which holds the automatic update runbook and authenticates to Azure resources.
         * 
         * &gt; **Note:** `automation_account_id` is required when `enabled` is specified.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountId(String automationAccountId) {
            return automationAccountId(Output.of(automationAccountId));
        }

        /**
         * @param enabled Should the Mobility service installed on Azure virtual machines be automatically updated. Defaults to `false`.
         * 
         * &gt; **Note:** The setting applies to all Azure VMs protected in the same container. For more details see [this document](https://learn.microsoft.com/en-us/azure/site-recovery/azure-to-azure-autoupdate#enable-automatic-updates)
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output<Boolean> enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Should the Mobility service installed on Azure virtual machines be automatically updated. Defaults to `false`.
         * 
         * &gt; **Note:** The setting applies to all Azure VMs protected in the same container. For more details see [this document](https://learn.microsoft.com/en-us/azure/site-recovery/azure-to-azure-autoupdate#enable-automatic-updates)
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        public ProtectionContainerMappingAutomaticUpdateArgs build() {
            return $;
        }
    }

}
