Package com.adobe.aco.model
Class ProductExternalId
- java.lang.Object
-
- com.adobe.aco.model.ProductExternalId
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class ProductExternalId extends ObjectProductExternalId
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProductExternalId.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_ORIGIN
-
Constructor Summary
Constructors Constructor Description ProductExternalId()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static ProductExternalIdfromJson(String jsonString)Create an instance of ProductExternalId given an JSON stringStringgetId()External ID of the product.StringgetOrigin()External ID origin.inthashCode()ProductExternalIdid(String id)ProductExternalIdorigin(String origin)voidsetId(String id)voidsetOrigin(String origin)StringtoJson()Convert an instance of ProductExternalId to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ORIGIN
public static final String SERIALIZED_NAME_ORIGIN
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public ProductExternalId id(String id)
-
getId
@Nonnull public String getId()
External ID of the product.- Returns:
- id
-
setId
public void setId(String id)
-
origin
public ProductExternalId origin(String origin)
-
getOrigin
@Nonnull public String getOrigin()
External ID origin. Specifies the system that generated the external ID, such as Adobe Commerce, Google Product Ratings, etc.- Returns:
- origin
-
setOrigin
public void setOrigin(String origin)
-
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 ProductExternalId
-
fromJson
public static ProductExternalId fromJson(String jsonString) throws IOException
Create an instance of ProductExternalId given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ProductExternalId
- Throws:
IOException- if the JSON string is invalid with respect to ProductExternalId
-
toJson
public String toJson()
Convert an instance of ProductExternalId to an JSON string- Returns:
- JSON string
-
-