Package com.adobe.aco.model
Class FeedMetadata
- java.lang.Object
-
- com.adobe.aco.model.FeedMetadata
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class FeedMetadata extends ObjectMetadata information for a product attribute.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeedMetadata.CustomTypeAdapterFactorystatic classFeedMetadata.DataTypeEnumData typestatic classFeedMetadata.SearchTypesEnumGets or Sets searchTypesstatic classFeedMetadata.VisibleInEnumGets or Sets visibleIn
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CODEstatic StringSERIALIZED_NAME_DATA_TYPEstatic StringSERIALIZED_NAME_FILTERABLEstatic StringSERIALIZED_NAME_LABELstatic StringSERIALIZED_NAME_SEARCH_TYPESstatic StringSERIALIZED_NAME_SEARCH_WEIGHTstatic StringSERIALIZED_NAME_SEARCHABLEstatic StringSERIALIZED_NAME_SORTABLEstatic StringSERIALIZED_NAME_SOURCEstatic StringSERIALIZED_NAME_VISIBLE_IN
-
Constructor Summary
Constructors Constructor Description FeedMetadata()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FeedMetadataaddSearchTypesItem(FeedMetadata.SearchTypesEnum searchTypesItem)FeedMetadataaddVisibleInItem(FeedMetadata.VisibleInEnum visibleInItem)FeedMetadatacode(String code)FeedMetadatadataType(FeedMetadata.DataTypeEnum dataType)booleanequals(Object o)FeedMetadatafilterable(Boolean filterable)static FeedMetadatafromJson(String jsonString)Create an instance of FeedMetadata given an JSON stringStringgetCode()Attribute codeFeedMetadata.DataTypeEnumgetDataType()Data typeBooleangetFilterable()Indicates whether the attribute can be used to filter products.StringgetLabel()Label for the attribute that is displayed in user interfaces.BooleangetSearchable()Indicates whether the attribute value can be used in search queries to filter results.List<FeedMetadata.SearchTypesEnum>getSearchTypes()Search types associated with this attribute, for example: `autocomplete`, `starts_with`, and so on.FloatgetSearchWeight()The weight associated with a searchable attribute.BooleangetSortable()Indicates whether the attribute can be used to sort products.SourcegetSource()Get sourceList<FeedMetadata.VisibleInEnum>getVisibleIn()Determines how the attribute is used on the storefront.inthashCode()FeedMetadatalabel(String label)FeedMetadatasearchable(Boolean searchable)FeedMetadatasearchTypes(List<FeedMetadata.SearchTypesEnum> searchTypes)FeedMetadatasearchWeight(Float searchWeight)voidsetCode(String code)voidsetDataType(FeedMetadata.DataTypeEnum dataType)voidsetFilterable(Boolean filterable)voidsetLabel(String label)voidsetSearchable(Boolean searchable)voidsetSearchTypes(List<FeedMetadata.SearchTypesEnum> searchTypes)voidsetSearchWeight(Float searchWeight)voidsetSortable(Boolean sortable)voidsetSource(Source source)voidsetVisibleIn(List<FeedMetadata.VisibleInEnum> visibleIn)FeedMetadatasortable(Boolean sortable)FeedMetadatasource(Source source)StringtoJson()Convert an instance of FeedMetadata to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundFeedMetadatavisibleIn(List<FeedMetadata.VisibleInEnum> visibleIn)
-
-
-
Field Detail
-
SERIALIZED_NAME_CODE
public static final String SERIALIZED_NAME_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SOURCE
public static final String SERIALIZED_NAME_SOURCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VISIBLE_IN
public static final String SERIALIZED_NAME_VISIBLE_IN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LABEL
public static final String SERIALIZED_NAME_LABEL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DATA_TYPE
public static final String SERIALIZED_NAME_DATA_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FILTERABLE
public static final String SERIALIZED_NAME_FILTERABLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SORTABLE
public static final String SERIALIZED_NAME_SORTABLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SEARCHABLE
public static final String SERIALIZED_NAME_SEARCHABLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SEARCH_WEIGHT
public static final String SERIALIZED_NAME_SEARCH_WEIGHT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SEARCH_TYPES
public static final String SERIALIZED_NAME_SEARCH_TYPES
- See Also:
- Constant Field Values
-
-
Method Detail
-
code
public FeedMetadata code(String code)
-
getCode
@Nonnull public String getCode()
Attribute code- Returns:
- code
-
setCode
public void setCode(String code)
-
source
public FeedMetadata source(Source source)
-
getSource
@Nonnull public Source getSource()
Get source- Returns:
- source
-
setSource
public void setSource(Source source)
-
visibleIn
public FeedMetadata visibleIn(List<FeedMetadata.VisibleInEnum> visibleIn)
-
addVisibleInItem
public FeedMetadata addVisibleInItem(FeedMetadata.VisibleInEnum visibleInItem)
-
getVisibleIn
@Nullable public List<FeedMetadata.VisibleInEnum> getVisibleIn()
Determines how the attribute is used on the storefront. * `PRODUCT_DETAIL`: Product attribute is visible on the Product Detail Page. * `PRODUCT_LISTING`: Product attribute is visible on Product Listing Page. * `SEARCH_RESULTS`: Product attribute is visible on Search Results Page. * `PRODUCT_COMPARE`: Product attribute is visible on Product Compare Page.- Returns:
- visibleIn
-
setVisibleIn
public void setVisibleIn(List<FeedMetadata.VisibleInEnum> visibleIn)
-
label
public FeedMetadata label(String label)
-
getLabel
@Nonnull public String getLabel()
Label for the attribute that is displayed in user interfaces.- Returns:
- label
-
setLabel
public void setLabel(String label)
-
dataType
public FeedMetadata dataType(FeedMetadata.DataTypeEnum dataType)
-
getDataType
@Nonnull public FeedMetadata.DataTypeEnum getDataType()
Data type- Returns:
- dataType
-
setDataType
public void setDataType(FeedMetadata.DataTypeEnum dataType)
-
filterable
public FeedMetadata filterable(Boolean filterable)
-
getFilterable
@Nullable public Boolean getFilterable()
Indicates whether the attribute can be used to filter products.- Returns:
- filterable
-
setFilterable
public void setFilterable(Boolean filterable)
-
sortable
public FeedMetadata sortable(Boolean sortable)
-
getSortable
@Nullable public Boolean getSortable()
Indicates whether the attribute can be used to sort products.- Returns:
- sortable
-
setSortable
public void setSortable(Boolean sortable)
-
searchable
public FeedMetadata searchable(Boolean searchable)
-
getSearchable
@Nullable public Boolean getSearchable()
Indicates whether the attribute value can be used in search queries to filter results.- Returns:
- searchable
-
setSearchable
public void setSearchable(Boolean searchable)
-
searchWeight
public FeedMetadata searchWeight(Float searchWeight)
-
getSearchWeight
@Nullable public Float getSearchWeight()
The weight associated with a searchable attribute. Attributes with a greater weight are returned before attributes with a lower weight.- Returns:
- searchWeight
-
setSearchWeight
public void setSearchWeight(Float searchWeight)
-
searchTypes
public FeedMetadata searchTypes(List<FeedMetadata.SearchTypesEnum> searchTypes)
-
addSearchTypesItem
public FeedMetadata addSearchTypesItem(FeedMetadata.SearchTypesEnum searchTypesItem)
-
getSearchTypes
@Nullable public List<FeedMetadata.SearchTypesEnum> getSearchTypes()
Search types associated with this attribute, for example: `autocomplete`, `starts_with`, and so on.- Returns:
- searchTypes
-
setSearchTypes
public void setSearchTypes(List<FeedMetadata.SearchTypesEnum> searchTypes)
-
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 FeedMetadata
-
fromJson
public static FeedMetadata fromJson(String jsonString) throws IOException
Create an instance of FeedMetadata given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FeedMetadata
- Throws:
IOException- if the JSON string is invalid with respect to FeedMetadata
-
toJson
public String toJson()
Convert an instance of FeedMetadata to an JSON string- Returns:
- JSON string
-
-