Package com.adobe.aco.model
Class FeedItemFailedValidationResult
- java.lang.Object
-
- com.adobe.aco.model.FeedItemFailedValidationResult
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class FeedItemFailedValidationResult extends ObjectFeedItemFailedValidationResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeedItemFailedValidationResult.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 FeedItemFailedValidationResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FeedItemFailedValidationResultcode(String code)booleanequals(Object o)static FeedItemFailedValidationResultfromJson(String jsonString)Create an instance of FeedItemFailedValidationResult given an JSON stringStringgetCode()Code name of invalid field.IntegergetItemIndex()Reference to the line item with an invalid payload.StringgetMessage()Error descriptionStringgetValue()Original value passed in the request.inthashCode()FeedItemFailedValidationResultitemIndex(Integer itemIndex)FeedItemFailedValidationResultmessage(String message)voidsetCode(String code)voidsetItemIndex(Integer itemIndex)voidsetMessage(String message)voidsetValue(String value)StringtoJson()Convert an instance of FeedItemFailedValidationResult to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundFeedItemFailedValidationResultvalue(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 FeedItemFailedValidationResult code(String code)
-
getCode
@Nullable public String getCode()
Code name of invalid field.- Returns:
- code
-
setCode
public void setCode(String code)
-
itemIndex
public FeedItemFailedValidationResult itemIndex(Integer itemIndex)
-
getItemIndex
@Nullable public Integer getItemIndex()
Reference to the line item with an invalid payload. The line count begins at 0.- Returns:
- itemIndex
-
setItemIndex
public void setItemIndex(Integer itemIndex)
-
message
public FeedItemFailedValidationResult message(String message)
-
getMessage
@Nullable public String getMessage()
Error description- Returns:
- message
-
setMessage
public void setMessage(String message)
-
value
public FeedItemFailedValidationResult value(String value)
-
getValue
@Nullable public String getValue()
Original value passed in the request.- 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 FeedItemFailedValidationResult
-
fromJson
public static FeedItemFailedValidationResult fromJson(String jsonString) throws IOException
Create an instance of FeedItemFailedValidationResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FeedItemFailedValidationResult
- Throws:
IOException- if the JSON string is invalid with respect to FeedItemFailedValidationResult
-
toJson
public String toJson()
Convert an instance of FeedItemFailedValidationResult to an JSON string- Returns:
- JSON string
-
-