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

package com.azure.resourcemanager.communication.models;

import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;

/** A class that represents a VerificationStatus record. */
@Immutable
public final class VerificationStatusRecord {
    /*
     * Status of the verification operation.
     */
    @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
    private VerificationStatus status;

    /*
     * Error code. This property will only be present if the status is UnableToVerify.
     */
    @JsonProperty(value = "errorCode", access = JsonProperty.Access.WRITE_ONLY)
    private String errorCode;

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

    /**
     * Get the status property: Status of the verification operation.
     *
     * @return the status value.
     */
    public VerificationStatus status() {
        return this.status;
    }

    /**
     * Get the errorCode property: Error code. This property will only be present if the status is UnableToVerify.
     *
     * @return the errorCode value.
     */
    public String errorCode() {
        return this.errorCode;
    }

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