All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.siterecovery.inputs.ProtectionContainerMappingAutomaticUpdateArgs Maven / Gradle / Ivy

// *** 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`. Defaults to `SystemAssignedIdentity`.
     * 
     * > **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).
     * 
     */
    @Import(name="authenticationType")
    private @Nullable Output authenticationType;

    /**
     * @return The authentication type used for automation account. Possible values are `RunAsAccount` and `SystemAssignedIdentity`. Defaults to `SystemAssignedIdentity`.
     * 
     * > **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).
     * 
     */
    public Optional> authenticationType() {
        return Optional.ofNullable(this.authenticationType);
    }

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

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

    /**
     * Should the Mobility service installed on Azure virtual machines be automatically updated. Defaults to `false`.
     * 
     * > **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 enabled;

    /**
     * @return Should the Mobility service installed on Azure virtual machines be automatically updated. Defaults to `false`.
     * 
     * > **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> 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`. Defaults to `SystemAssignedIdentity`.
         * 
         * > **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).
         * 
         * @return builder
         * 
         */
        public Builder authenticationType(@Nullable Output authenticationType) {
            $.authenticationType = authenticationType;
            return this;
        }

        /**
         * @param authenticationType The authentication type used for automation account. Possible values are `RunAsAccount` and `SystemAssignedIdentity`. Defaults to `SystemAssignedIdentity`.
         * 
         * > **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).
         * 
         * @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.
         * 
         * > **Note:** `automation_account_id` is required when `enabled` is specified.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountId(@Nullable Output automationAccountId) {
            $.automationAccountId = automationAccountId;
            return this;
        }

        /**
         * @param automationAccountId The automation account ID which holds the automatic update runbook and authenticates to Azure resources.
         * 
         * > **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`.
         * 
         * > **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 enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Should the Mobility service installed on Azure virtual machines be automatically updated. Defaults to `false`.
         * 
         * > **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 $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy