Package com.bandwidth.sdk.model
Class FieldError
java.lang.Object
com.bandwidth.sdk.model.FieldError
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.6.0")
public class FieldError
extends Object
FieldError
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) boolean
static FieldError
Create an instance of FieldError given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The error associated with the fieldThe name of the field that contains the errorint
hashCode()
putAdditionalProperty
(String key, Object value) Set the additional (undeclared) property with the specified name and value.void
setDescription
(String description) void
setFieldName
(String fieldName) toJson()
Convert an instance of FieldError to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_FIELD_NAME
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
FieldError
public FieldError()
-
-
Method Details
-
fieldName
-
getFieldName
The name of the field that contains the error- Returns:
- fieldName
-
setFieldName
-
description
-
getDescription
The error associated with the field- Returns:
- description
-
setDescription
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key
- name of the propertyvalue
- value of the property- Returns:
- the FieldError instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key
- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to FieldError
-
fromJson
Create an instance of FieldError given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of FieldError
- Throws:
IOException
- if the JSON string is invalid with respect to FieldError
-
toJson
Convert an instance of FieldError to an JSON string- Returns:
- JSON string
-