com.microsoft.bing.autosuggest.models.ErrorResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bing-autosuggest Show documentation
Show all versions of bing-autosuggest Show documentation
This module contains the client library for Microsoft Bing AutoSuggest APIs.
The newest version!
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.bing.autosuggest.models;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* The top-level response that represents a failed request.
*/
public class ErrorResponse extends Response {
/**
* A list of errors that describe the reasons why the request failed.
*/
@JsonProperty(value = "errors", required = true)
private List errors;
/**
* Get a list of errors that describe the reasons why the request failed.
*
* @return the errors value
*/
public List errors() {
return this.errors;
}
/**
* Set a list of errors that describe the reasons why the request failed.
*
* @param errors the errors value to set
* @return the ErrorResponse object itself.
*/
public ErrorResponse withErrors(List errors) {
this.errors = errors;
return this;
}
}