Package com.adobe.aco.model
Class FeedMetadataUpdate
- java.lang.Object
-
- com.adobe.aco.model.FeedMetadataUpdate
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class FeedMetadataUpdate extends ObjectMetadata information for a product attribute.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeedMetadataUpdate.CustomTypeAdapterFactorystatic classFeedMetadataUpdate.DataTypeEnumData typestatic classFeedMetadataUpdate.SearchTypesEnumGets or Sets searchTypesstatic classFeedMetadataUpdate.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 FeedMetadataUpdate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FeedMetadataUpdateaddSearchTypesItem(FeedMetadataUpdate.SearchTypesEnum searchTypesItem)FeedMetadataUpdateaddVisibleInItem(FeedMetadataUpdate.VisibleInEnum visibleInItem)FeedMetadataUpdatecode(String code)FeedMetadataUpdatedataType(FeedMetadataUpdate.DataTypeEnum dataType)booleanequals(Object o)FeedMetadataUpdatefilterable(Boolean filterable)static FeedMetadataUpdatefromJson(String jsonString)Create an instance of FeedMetadataUpdate given an JSON stringStringgetCode()Attribute codeFeedMetadataUpdate.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<FeedMetadataUpdate.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<FeedMetadataUpdate.VisibleInEnum>getVisibleIn()Determines how the attribute is used on the storefront.inthashCode()FeedMetadataUpdatelabel(String label)FeedMetadataUpdatesearchable(Boolean searchable)FeedMetadataUpdatesearchTypes(List<FeedMetadataUpdate.SearchTypesEnum> searchTypes)FeedMetadataUpdatesearchWeight(Float searchWeight)voidsetCode(String code)voidsetDataType(FeedMetadataUpdate.DataTypeEnum dataType)voidsetFilterable(Boolean filterable)voidsetLabel(String label)voidsetSearchable(Boolean searchable)voidsetSearchTypes(List<FeedMetadataUpdate.SearchTypesEnum> searchTypes)voidsetSearchWeight(Float searchWeight)voidsetSortable(Boolean sortable)voidsetSource(Source source)voidsetVisibleIn(List<FeedMetadataUpdate.VisibleInEnum> visibleIn)FeedMetadataUpdatesortable(Boolean sortable)FeedMetadataUpdatesource(Source source)StringtoJson()Convert an instance of FeedMetadataUpdate to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundFeedMetadataUpdatevisibleIn(List<FeedMetadataUpdate.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 FeedMetadataUpdate code(String code)
-
getCode
@Nonnull public String getCode()
Attribute code- Returns:
- code
-
setCode
public void setCode(String code)
-
source
public FeedMetadataUpdate source(Source source)
-
getSource
@Nonnull public Source getSource()
Get source- Returns:
- source
-
setSource
public void setSource(Source source)
-
visibleIn
public FeedMetadataUpdate visibleIn(List<FeedMetadataUpdate.VisibleInEnum> visibleIn)
-
addVisibleInItem
public FeedMetadataUpdate addVisibleInItem(FeedMetadataUpdate.VisibleInEnum visibleInItem)
-
getVisibleIn
@Nullable public List<FeedMetadataUpdate.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<FeedMetadataUpdate.VisibleInEnum> visibleIn)
-
label
public FeedMetadataUpdate label(String label)
-
getLabel
@Nullable public String getLabel()
Label for the attribute that is displayed in user interfaces.- Returns:
- label
-
setLabel
public void setLabel(String label)
-
dataType
public FeedMetadataUpdate dataType(FeedMetadataUpdate.DataTypeEnum dataType)
-
getDataType
@Nullable public FeedMetadataUpdate.DataTypeEnum getDataType()
Data type- Returns:
- dataType
-
setDataType
public void setDataType(FeedMetadataUpdate.DataTypeEnum dataType)
-
filterable
public FeedMetadataUpdate 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 FeedMetadataUpdate 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 FeedMetadataUpdate 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 FeedMetadataUpdate 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 FeedMetadataUpdate searchTypes(List<FeedMetadataUpdate.SearchTypesEnum> searchTypes)
-
addSearchTypesItem
public FeedMetadataUpdate addSearchTypesItem(FeedMetadataUpdate.SearchTypesEnum searchTypesItem)
-
getSearchTypes
@Nullable public List<FeedMetadataUpdate.SearchTypesEnum> getSearchTypes()
Search types associated with this attribute, for example: `autocomplete`, `starts_with`, and so on.- Returns:
- searchTypes
-
setSearchTypes
public void setSearchTypes(List<FeedMetadataUpdate.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 FeedMetadataUpdate
-
fromJson
public static FeedMetadataUpdate fromJson(String jsonString) throws IOException
Create an instance of FeedMetadataUpdate given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FeedMetadataUpdate
- Throws:
IOException- if the JSON string is invalid with respect to FeedMetadataUpdate
-
toJson
public String toJson()
Convert an instance of FeedMetadataUpdate to an JSON string- Returns:
- JSON string
-
-