Skip to content

Commit

Permalink
Generated from 9578d36ef49d11e323741cf0784cdad772bc51fe
Browse files Browse the repository at this point in the history
[IoTCentral] Change error definition
  • Loading branch information
SDK Automation committed Feb 13, 2020
1 parent 96f5b97 commit b58cd12
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 63 deletions.
4 changes: 2 additions & 2 deletions sdk/iotcentral/mgmt-v2018_09_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-iotcentral</artifactId>
<version>1.0.0</version>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for IoTCentral Management</name>
<description>This package contains Microsoft IoTCentral Management SDK.</description>
Expand Down
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;
}

}
Loading

0 comments on commit b58cd12

Please sign in to comment.