forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 9578d36ef49d11e323741cf0784cdad772bc51fe
[IoTCentral] Change error definition
- Loading branch information
SDK Automation
committed
Feb 13, 2020
1 parent
96f5b97
commit b58cd12
Showing
4 changed files
with
152 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
...in/java/com/microsoft/azure/management/iotcentral/v2018_09_01/CloudErrorResponseBody.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
/** | ||
* 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.management.iotcentral.v2018_09_01; | ||
|
||
import java.util.List; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Details of error response. | ||
*/ | ||
public class CloudErrorResponseBody { | ||
/** | ||
* The error code. | ||
*/ | ||
@JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY) | ||
private String code; | ||
|
||
/** | ||
* The error message. | ||
*/ | ||
@JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) | ||
private String message; | ||
|
||
/** | ||
* The target of the particular error. | ||
*/ | ||
@JsonProperty(value = "target", access = JsonProperty.Access.WRITE_ONLY) | ||
private String target; | ||
|
||
/** | ||
* A list of additional details about the error. | ||
*/ | ||
@JsonProperty(value = "details") | ||
private List<CloudErrorResponseBody> details; | ||
|
||
/** | ||
* Get the error code. | ||
* | ||
* @return the code value | ||
*/ | ||
public String code() { | ||
return this.code; | ||
} | ||
|
||
/** | ||
* Get the error message. | ||
* | ||
* @return the message value | ||
*/ | ||
public String message() { | ||
return this.message; | ||
} | ||
|
||
/** | ||
* Get the target of the particular error. | ||
* | ||
* @return the target value | ||
*/ | ||
public String target() { | ||
return this.target; | ||
} | ||
|
||
/** | ||
* Get a list of additional details about the error. | ||
* | ||
* @return the details value | ||
*/ | ||
public List<CloudErrorResponseBody> details() { | ||
return this.details; | ||
} | ||
|
||
/** | ||
* Set a list of additional details about the error. | ||
* | ||
* @param details the details value to set | ||
* @return the CloudErrorResponseBody object itself. | ||
*/ | ||
public CloudErrorResponseBody withDetails(List<CloudErrorResponseBody> details) { | ||
this.details = details; | ||
return this; | ||
} | ||
|
||
} |
Oops, something went wrong.