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

package com.azure.resourcemanager.workloads.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;

/** The SAP Software configuration Input when the software is installed externally outside the service. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "softwareInstallationType")
@JsonTypeName("External")
@Fluent
public final class ExternalInstallationSoftwareConfiguration extends SoftwareConfiguration {
    /*
     * The resource ID of the virtual machine containing the central server instance.
     */
    @JsonProperty(value = "centralServerVmId")
    private String centralServerVmId;

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

    /**
     * Get the centralServerVmId property: The resource ID of the virtual machine containing the central server
     * instance.
     *
     * @return the centralServerVmId value.
     */
    public String centralServerVmId() {
        return this.centralServerVmId;
    }

    /**
     * Set the centralServerVmId property: The resource ID of the virtual machine containing the central server
     * instance.
     *
     * @param centralServerVmId the centralServerVmId value to set.
     * @return the ExternalInstallationSoftwareConfiguration object itself.
     */
    public ExternalInstallationSoftwareConfiguration withCentralServerVmId(String centralServerVmId) {
        this.centralServerVmId = centralServerVmId;
        return this;
    }

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