Package com.adobe.aco.model
Class ItemFailedValidationResult
- java.lang.Object
-
- com.adobe.aco.model.ItemFailedValidationResult
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class ItemFailedValidationResult extends ObjectItemFailedValidationResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classItemFailedValidationResult.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CODEstatic StringSERIALIZED_NAME_ITEM_INDEXstatic StringSERIALIZED_NAME_MESSAGEstatic StringSERIALIZED_NAME_VALUE
-
Constructor Summary
Constructors Constructor Description ItemFailedValidationResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemFailedValidationResultcode(String code)booleanequals(Object o)static ItemFailedValidationResultfromJson(String jsonString)Create an instance of ItemFailedValidationResult given an JSON stringStringgetCode()Code for the validation error.IntegergetItemIndex()Index of the conflicting itemStringgetMessage()Validation error message for the item.StringgetValue()The value supplied to the API.inthashCode()ItemFailedValidationResultitemIndex(Integer itemIndex)ItemFailedValidationResultmessage(String message)voidsetCode(String code)voidsetItemIndex(Integer itemIndex)voidsetMessage(String message)voidsetValue(String value)StringtoJson()Convert an instance of ItemFailedValidationResult to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundItemFailedValidationResultvalue(String value)
-
-
-
Field Detail
-
SERIALIZED_NAME_CODE
public static final String SERIALIZED_NAME_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ITEM_INDEX
public static final String SERIALIZED_NAME_ITEM_INDEX
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MESSAGE
public static final String SERIALIZED_NAME_MESSAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALUE
public static final String SERIALIZED_NAME_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
code
public ItemFailedValidationResult code(String code)
-
getCode
@Nullable public String getCode()
Code for the validation error.- Returns:
- code
-
setCode
public void setCode(String code)
-
itemIndex
public ItemFailedValidationResult itemIndex(Integer itemIndex)
-
getItemIndex
@Nullable public Integer getItemIndex()
Index of the conflicting item- Returns:
- itemIndex
-
setItemIndex
public void setItemIndex(Integer itemIndex)
-
message
public ItemFailedValidationResult message(String message)
-
getMessage
@Nullable public String getMessage()
Validation error message for the item.- Returns:
- message
-
setMessage
public void setMessage(String message)
-
value
public ItemFailedValidationResult value(String value)
-
getValue
@Nullable public String getValue()
The value supplied to the API.- Returns:
- value
-
setValue
public void setValue(String value)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates 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 ItemFailedValidationResult
-
fromJson
public static ItemFailedValidationResult fromJson(String jsonString) throws IOException
Create an instance of ItemFailedValidationResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ItemFailedValidationResult
- Throws:
IOException- if the JSON string is invalid with respect to ItemFailedValidationResult
-
toJson
public String toJson()
Convert an instance of ItemFailedValidationResult to an JSON string- Returns:
- JSON string
-
-