Package com.adobe.aco.model
Class ProductLink
- java.lang.Object
-
- com.adobe.aco.model.ProductLink
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class ProductLink extends ObjectProduct association
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProductLink.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_SKUstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description ProductLink()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static ProductLinkfromJson(String jsonString)Create an instance of ProductLink given an JSON stringStringgetSku()Product SKUStringgetType()Product link type.inthashCode()voidsetSku(String sku)voidsetType(String type)ProductLinksku(String sku)StringtoJson()Convert an instance of ProductLink to an JSON stringStringtoString()ProductLinktype(String type)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SKU
public static final String SERIALIZED_NAME_SKU
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
public ProductLink type(String type)
-
getType
@Nonnull public String getType()
Product link type. Merchants can define custom types in addition to the predefined values. - `VARIANT_OF` link type must be specified to establish a connection to the configurable product SKU. - `IN_BUNDLE` link type must be specified to establish a connection to the bundle product SKU.- Returns:
- type
-
setType
public void setType(String type)
-
sku
public ProductLink sku(String sku)
-
getSku
@Nonnull public String getSku()
Product SKU- Returns:
- sku
-
setSku
public void setSku(String sku)
-
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 ProductLink
-
fromJson
public static ProductLink fromJson(String jsonString) throws IOException
Create an instance of ProductLink given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ProductLink
- Throws:
IOException- if the JSON string is invalid with respect to ProductLink
-
toJson
public String toJson()
Convert an instance of ProductLink to an JSON string- Returns:
- JSON string
-
-