Package com.bandwidth.sdk.model
Class FieldError
- java.lang.Object
-
- com.bandwidth.sdk.model.FieldError
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-08-29T14:24:34.966664-04:00[America/New_York]") public class FieldError extends Object
FieldError
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FieldError.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_DESCRIPTION
static String
SERIALIZED_NAME_FIELD_NAME
-
Constructor Summary
Constructors Constructor Description FieldError()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldError
description(String description)
boolean
equals(Object o)
FieldError
fieldName(String fieldName)
static FieldError
fromJson(String jsonString)
Create an instance of FieldError given an JSON stringMap<String,Object>
getAdditionalProperties()
Return the additional (undeclared) property.Object
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.String
getDescription()
The error associated with the fieldString
getFieldName()
The name of the field that contains the errorint
hashCode()
FieldError
putAdditionalProperty(String key, Object value)
Set the additional (undeclared) property with the specified name and value.void
setDescription(String description)
void
setFieldName(String fieldName)
String
toJson()
Convert an instance of FieldError to an JSON stringString
toString()
static void
validateJsonElement(com.google.gson.JsonElement jsonElement)
Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_FIELD_NAME
public static final String SERIALIZED_NAME_FIELD_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
fieldName
public FieldError fieldName(String fieldName)
-
getFieldName
@Nullable public String getFieldName()
The name of the field that contains the error- Returns:
- fieldName
-
setFieldName
public void setFieldName(String fieldName)
-
description
public FieldError description(String description)
-
getDescription
@Nullable public String getDescription()
The error associated with the field- Returns:
- description
-
setDescription
public void setDescription(String description)
-
putAdditionalProperty
public FieldError putAdditionalProperty(String key, Object value)
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
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key
- name of the property- Returns:
- an object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
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
public static FieldError fromJson(String jsonString) throws IOException
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
public String toJson()
Convert an instance of FieldError to an JSON string- Returns:
- JSON string
-
-