// 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;

/** Input definition for switch provider input properties. */
@Fluent
public final class SwitchProviderInputProperties {
    /*
     * Target provider type.
     */
    @JsonProperty(value = "targetInstanceType")
    private String targetInstanceType;

    /*
     * Provider specific settings.
     */
    @JsonProperty(value = "providerSpecificDetails")
    private SwitchProviderSpecificInput providerSpecificDetails;

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

    /**
     * Get the targetInstanceType property: Target provider type.
     *
     * @return the targetInstanceType value.
     */
    public String targetInstanceType() {
        return this.targetInstanceType;
    }

    /**
     * Set the targetInstanceType property: Target provider type.
     *
     * @param targetInstanceType the targetInstanceType value to set.
     * @return the SwitchProviderInputProperties object itself.
     */
    public SwitchProviderInputProperties withTargetInstanceType(String targetInstanceType) {
        this.targetInstanceType = targetInstanceType;
        return this;
    }

    /**
     * Get the providerSpecificDetails property: Provider specific settings.
     *
     * @return the providerSpecificDetails value.
     */
    public SwitchProviderSpecificInput providerSpecificDetails() {
        return this.providerSpecificDetails;
    }

    /**
     * Set the providerSpecificDetails property: Provider specific settings.
     *
     * @param providerSpecificDetails the providerSpecificDetails value to set.
     * @return the SwitchProviderInputProperties object itself.
     */
    public SwitchProviderInputProperties withProviderSpecificDetails(
        SwitchProviderSpecificInput providerSpecificDetails) {
        this.providerSpecificDetails = providerSpecificDetails;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (providerSpecificDetails() != null) {
            providerSpecificDetails().validate();
        }
    }
}
