Interface TaxCategoryReference
- All Superinterfaces:
Identifiable<TaxCategory>,IdentifiableObjHolder<TaxCategory>,Reference,ReferenceMixin
public interface TaxCategoryReference
extends Reference, Identifiable<TaxCategory>, IdentifiableObjHolder<TaxCategory>
Reference to a TaxCategory.
Example to create an instance using the builder pattern
TaxCategoryReference taxCategoryReference = TaxCategoryReference.builder()
.id("{id}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for TaxCategoryReference -
Method Summary
Modifier and TypeMethodDescriptionstatic TaxCategoryReferenceBuilderbuilder()builder factory method for TaxCategoryReferencestatic TaxCategoryReferenceBuilderbuilder(TaxCategoryReference template) create builder for TaxCategoryReference instancecopyDeep()static TaxCategoryReferencedeepCopy(TaxCategoryReference template) factory method to create a deep copy of TaxCategoryReference@NotNull StringgetId()Unique identifier of the referenced TaxCategory.@Valid TaxCategorygetObj()Contains the representation of the expanded TaxCategory.static TaxCategoryReferenceof()factory methodstatic TaxCategoryReferenceof(TaxCategoryReference template) factory method to create a shallow copy TaxCategoryReferencevoidUnique identifier of the referenced TaxCategory.voidsetObj(TaxCategory obj) Contains the representation of the expanded TaxCategory.static com.fasterxml.jackson.core.type.TypeReference<TaxCategoryReference>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithTaxCategoryReference(Function<TaxCategoryReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.Reference
getTypeId, withReferenceMethods inherited from interface com.commercetools.api.models.common.ReferenceMixin
toResourceIdentifier
-
Field Details
-
TAX_CATEGORY
discriminator value for TaxCategoryReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded TaxCategory. Only present in responses to requests with Reference Expansion for TaxCategories.
- Specified by:
getObjin interfaceIdentifiableObjHolder<TaxCategory>- Returns:
- obj
-
getId
Unique identifier of the referenced TaxCategory.
- Specified by:
getIdin interfaceIdentifiable<TaxCategory>- Specified by:
getIdin interfaceReference- Specified by:
getIdin interfaceReferenceMixin- Returns:
- id
-
setObj
Contains the representation of the expanded TaxCategory. Only present in responses to requests with Reference Expansion for TaxCategories.
- Parameters:
obj- value to be set
-
setId
Unique identifier of the referenced TaxCategory.
-
of
factory method- Returns:
- instance of TaxCategoryReference
-
of
factory method to create a shallow copy TaxCategoryReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
TaxCategoryReference copyDeep() -
deepCopy
factory method to create a deep copy of TaxCategoryReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TaxCategoryReference- Returns:
- builder
-
builder
create builder for TaxCategoryReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withTaxCategoryReference
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-