Package com.adobe.aco.model
Class ProductAttribute
- java.lang.Object
-
- com.adobe.aco.model.ProductAttribute
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class ProductAttribute extends ObjectProductAttribute
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProductAttribute.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CODEstatic StringSERIALIZED_NAME_VALUESstatic StringSERIALIZED_NAME_VARIANT_REFERENCE_ID
-
Constructor Summary
Constructors Constructor Description ProductAttribute()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProductAttributeaddValuesItem(String valuesItem)ProductAttributecode(String code)booleanequals(Object o)static ProductAttributefromJson(String jsonString)Create an instance of ProductAttribute given an JSON stringStringgetCode()Product Attribute CodeList<String>getValues()A list of value(s) associated with a specified attribute code.StringgetVariantReferenceId()The variant reference ID establishes a link between a product variant and the corresponding [Option Value ID](#operation/createProducts!path=options/values/id&t=request) in a configurable product.inthashCode()voidsetCode(String code)voidsetValues(List<String> values)voidsetVariantReferenceId(String variantReferenceId)StringtoJson()Convert an instance of ProductAttribute to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundProductAttributevalues(List<String> values)ProductAttributevariantReferenceId(String variantReferenceId)
-
-
-
Field Detail
-
SERIALIZED_NAME_CODE
public static final String SERIALIZED_NAME_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALUES
public static final String SERIALIZED_NAME_VALUES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VARIANT_REFERENCE_ID
public static final String SERIALIZED_NAME_VARIANT_REFERENCE_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
code
public ProductAttribute code(String code)
-
getCode
@Nonnull public String getCode()
Product Attribute Code- Returns:
- code
-
setCode
public void setCode(String code)
-
values
public ProductAttribute values(List<String> values)
-
addValuesItem
public ProductAttribute addValuesItem(String valuesItem)
-
getValues
@Nonnull public List<String> getValues()
A list of value(s) associated with a specified attribute code.- Returns:
- values
-
variantReferenceId
public ProductAttribute variantReferenceId(String variantReferenceId)
-
getVariantReferenceId
@Nullable public String getVariantReferenceId()
The variant reference ID establishes a link between a product variant and the corresponding [Option Value ID](#operation/createProducts!path=options/values/id&t=request) in a configurable product. A variant reference ID can be specified only for a product that represents a variant of a configurable product.- Returns:
- variantReferenceId
-
setVariantReferenceId
public void setVariantReferenceId(String variantReferenceId)
-
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 ProductAttribute
-
fromJson
public static ProductAttribute fromJson(String jsonString) throws IOException
Create an instance of ProductAttribute given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ProductAttribute
- Throws:
IOException- if the JSON string is invalid with respect to ProductAttribute
-
toJson
public String toJson()
Convert an instance of ProductAttribute to an JSON string- Returns:
- JSON string
-
-