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

package com.azure.resourcemanager.datamigration.models;

import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Information about migration eligibility of a server object. */
@Immutable
public final class MigrationEligibilityInfo {
    /*
     * Whether object is eligible for migration or not.
     */
    @JsonProperty(value = "isEligibleForMigration", access = JsonProperty.Access.WRITE_ONLY)
    private Boolean isEligibleForMigration;

    /*
     * Information about eligibility failure for the server object.
     */
    @JsonProperty(value = "validationMessages", access = JsonProperty.Access.WRITE_ONLY)
    private List<String> validationMessages;

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

    /**
     * Get the isEligibleForMigration property: Whether object is eligible for migration or not.
     *
     * @return the isEligibleForMigration value.
     */
    public Boolean isEligibleForMigration() {
        return this.isEligibleForMigration;
    }

    /**
     * Get the validationMessages property: Information about eligibility failure for the server object.
     *
     * @return the validationMessages value.
     */
    public List<String> validationMessages() {
        return this.validationMessages;
    }

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