// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.recoveryservicessiterecovery.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** A2A provider specific settings. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "instanceType")
@JsonTypeName("A2A")
@Fluent
public final class A2AProtectionContainerMappingDetails extends ProtectionContainerMappingProviderSpecificDetails {
    /*
     * A value indicating whether the auto update is enabled.
     */
    @JsonProperty(value = "agentAutoUpdateStatus")
    private AgentAutoUpdateStatus agentAutoUpdateStatus;

    /*
     * The automation account arm id.
     */
    @JsonProperty(value = "automationAccountArmId")
    private String automationAccountArmId;

    /*
     * A value indicating the type authentication to use for automation Account.
     */
    @JsonProperty(value = "automationAccountAuthenticationType")
    private AutomationAccountAuthenticationType automationAccountAuthenticationType;

    /*
     * The schedule arm name.
     */
    @JsonProperty(value = "scheduleName")
    private String scheduleName;

    /*
     * The job schedule arm name.
     */
    @JsonProperty(value = "jobScheduleName")
    private String jobScheduleName;

    /** Creates an instance of A2AProtectionContainerMappingDetails class. */
    public A2AProtectionContainerMappingDetails() {
    }

    /**
     * Get the agentAutoUpdateStatus property: A value indicating whether the auto update is enabled.
     *
     * @return the agentAutoUpdateStatus value.
     */
    public AgentAutoUpdateStatus agentAutoUpdateStatus() {
        return this.agentAutoUpdateStatus;
    }

    /**
     * Set the agentAutoUpdateStatus property: A value indicating whether the auto update is enabled.
     *
     * @param agentAutoUpdateStatus the agentAutoUpdateStatus value to set.
     * @return the A2AProtectionContainerMappingDetails object itself.
     */
    public A2AProtectionContainerMappingDetails withAgentAutoUpdateStatus(AgentAutoUpdateStatus agentAutoUpdateStatus) {
        this.agentAutoUpdateStatus = agentAutoUpdateStatus;
        return this;
    }

    /**
     * Get the automationAccountArmId property: The automation account arm id.
     *
     * @return the automationAccountArmId value.
     */
    public String automationAccountArmId() {
        return this.automationAccountArmId;
    }

    /**
     * Set the automationAccountArmId property: The automation account arm id.
     *
     * @param automationAccountArmId the automationAccountArmId value to set.
     * @return the A2AProtectionContainerMappingDetails object itself.
     */
    public A2AProtectionContainerMappingDetails withAutomationAccountArmId(String automationAccountArmId) {
        this.automationAccountArmId = automationAccountArmId;
        return this;
    }

    /**
     * Get the automationAccountAuthenticationType property: A value indicating the type authentication to use for
     * automation Account.
     *
     * @return the automationAccountAuthenticationType value.
     */
    public AutomationAccountAuthenticationType automationAccountAuthenticationType() {
        return this.automationAccountAuthenticationType;
    }

    /**
     * Set the automationAccountAuthenticationType property: A value indicating the type authentication to use for
     * automation Account.
     *
     * @param automationAccountAuthenticationType the automationAccountAuthenticationType value to set.
     * @return the A2AProtectionContainerMappingDetails object itself.
     */
    public A2AProtectionContainerMappingDetails withAutomationAccountAuthenticationType(
        AutomationAccountAuthenticationType automationAccountAuthenticationType) {
        this.automationAccountAuthenticationType = automationAccountAuthenticationType;
        return this;
    }

    /**
     * Get the scheduleName property: The schedule arm name.
     *
     * @return the scheduleName value.
     */
    public String scheduleName() {
        return this.scheduleName;
    }

    /**
     * Set the scheduleName property: The schedule arm name.
     *
     * @param scheduleName the scheduleName value to set.
     * @return the A2AProtectionContainerMappingDetails object itself.
     */
    public A2AProtectionContainerMappingDetails withScheduleName(String scheduleName) {
        this.scheduleName = scheduleName;
        return this;
    }

    /**
     * Get the jobScheduleName property: The job schedule arm name.
     *
     * @return the jobScheduleName value.
     */
    public String jobScheduleName() {
        return this.jobScheduleName;
    }

    /**
     * Set the jobScheduleName property: The job schedule arm name.
     *
     * @param jobScheduleName the jobScheduleName value to set.
     * @return the A2AProtectionContainerMappingDetails object itself.
     */
    public A2AProtectionContainerMappingDetails withJobScheduleName(String jobScheduleName) {
        this.jobScheduleName = jobScheduleName;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    @Override
    public void validate() {
        super.validate();
    }
}
