com.microsoft.azure.cognitiveservices.search.customimagesearch.models.ErrorResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-cognitiveservices-customimagesearch Show documentation
Show all versions of azure-cognitiveservices-customimagesearch Show documentation
This package contains Microsoft Cognitive Service Custom Image Search SDK.
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.azure.cognitiveservices.search.customimagesearch.models;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* The top-level response that represents a failed request.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = ErrorResponse.class)
@JsonTypeName("ErrorResponse")
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 the errors value.
*
* @return the errors value
*/
public List errors() {
return this.errors;
}
/**
* Set the errors value.
*
* @param errors the errors value to set
* @return the ErrorResponse object itself.
*/
public ErrorResponse withErrors(List errors) {
this.errors = errors;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy