TableServiceError.java

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

package com.azure.data.tables.implementation.models;

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

/** Table Service error. */
@Fluent
public final class TableServiceError {
    /*
     * The odata error.
     */
    @JsonProperty(value = "odata.error")
    private TableServiceErrorOdataError odataError;

    /**
     * Get the odataError property: The odata error.
     *
     * @return the odataError value.
     */
    public TableServiceErrorOdataError getOdataError() {
        return this.odataError;
    }

    /**
     * Set the odataError property: The odata error.
     *
     * @param odataError the odataError value to set.
     * @return the TableServiceError object itself.
     */
    public TableServiceError setOdataError(TableServiceErrorOdataError odataError) {
        this.odataError = odataError;
        return this;
    }
}