Interface Channel
- All Superinterfaces:
BaseResource,ChannelMixin,Customizable<Channel>,DomainResource<Channel>,Identifiable<Channel>,Referencable<Channel>,ResourceIdentifiable<Channel>,Versioned<Channel>,WithKey
Example to create an instance using the builder pattern
Channel channel = Channel.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.key("{key}")
.plusRoles(rolesBuilder -> rolesBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelBuilderbuilder()builder factory method for Channelstatic ChannelBuildercreate builder for Channel instancecopyDeep()static Channelfactory method to create a deep copy of Channel@Valid AddressAddress where the Channel is located (for example, if the Channel is a physical store).@NotNull ZonedDateTimeDate and time (UTC) the Channel was initially created.@Valid CreatedByIDs and references that created the Channel.@Valid CustomFieldsCustom Fields defined for the Channel.@Valid LocalizedStringDescription of the Channel.@Valid GeoJsonGeoJSON geometry object encoding the geo location of the Channel.@NotNull StringgetId()Unique identifier of the Channel.@NotNull StringgetKey()User-defined unique identifier of the Channel.@NotNull ZonedDateTimeDate and time (UTC) the Channel was last updated.@Valid LastModifiedByIDs and references that last modified the Channel.@Valid LocalizedStringgetName()Name of the Channel.@Valid ReviewRatingStatisticsStatistics about the review ratings taken into account for the Channel.@NotNull List<ChannelRoleEnum>getRoles()Roles of the Channel.@NotNull LongCurrent version of the Channel.static Channelof()factory methodstatic Channelfactory method to create a shallow copy Channelstatic ReferenceTypeIdvoidsetAddress(Address address) Address where the Channel is located (for example, if the Channel is a physical store).voidsetCreatedAt(ZonedDateTime createdAt) Date and time (UTC) the Channel was initially created.voidsetCreatedBy(CreatedBy createdBy) IDs and references that created the Channel.voidsetCustom(CustomFields custom) Custom Fields defined for the Channel.voidsetDescription(LocalizedString description) Description of the Channel.voidsetGeoLocation(GeoJson geoLocation) GeoJSON geometry object encoding the geo location of the Channel.voidUnique identifier of the Channel.voidUser-defined unique identifier of the Channel.voidsetLastModifiedAt(ZonedDateTime lastModifiedAt) Date and time (UTC) the Channel was last updated.voidsetLastModifiedBy(LastModifiedBy lastModifiedBy) IDs and references that last modified the Channel.voidsetName(LocalizedString name) Name of the Channel.voidsetReviewRatingStatistics(ReviewRatingStatistics reviewRatingStatistics) Statistics about the review ratings taken into account for the Channel.voidsetRoles(ChannelRoleEnum... roles) Roles of the Channel.voidsetRoles(List<ChannelRoleEnum> roles) Roles of the Channel.voidsetVersion(Long version) Current version of the Channel.static com.fasterxml.jackson.core.type.TypeReference<Channel>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithChannel(Function<Channel, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.channel.ChannelMixin
toReference, toResourceIdentifierMethods inherited from interface com.commercetools.api.models.Customizable
unwrapCustomizableMethods inherited from interface com.commercetools.api.models.DomainResource
get
-
Method Details
-
getId
Unique identifier of the Channel.
- Specified by:
getIdin interfaceBaseResource- Specified by:
getIdin interfaceDomainResource<Channel>- Specified by:
getIdin interfaceIdentifiable<Channel>- Specified by:
getIdin interfaceVersioned<Channel>- Returns:
- id
-
getVersion
Current version of the Channel.
- Specified by:
getVersionin interfaceBaseResource- Specified by:
getVersionin interfaceDomainResource<Channel>- Specified by:
getVersionin interfaceVersioned<Channel>- Returns:
- version
-
getCreatedAt
Date and time (UTC) the Channel was initially created.
- Specified by:
getCreatedAtin interfaceBaseResource- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the Channel was last updated.
- Specified by:
getLastModifiedAtin interfaceBaseResource- Returns:
- lastModifiedAt
-
getLastModifiedBy
IDs and references that last modified the Channel.
- Returns:
- lastModifiedBy
-
getCreatedBy
IDs and references that created the Channel.
- Returns:
- createdBy
-
getKey
User-defined unique identifier of the Channel.
-
getRoles
Roles of the Channel.
- Returns:
- roles
-
getName
Name of the Channel.
- Returns:
- name
-
getDescription
Description of the Channel.
- Returns:
- description
-
getAddress
Address where the Channel is located (for example, if the Channel is a physical store).
- Returns:
- address
-
getReviewRatingStatistics
Statistics about the review ratings taken into account for the Channel.
- Returns:
- reviewRatingStatistics
-
getCustom
Custom Fields defined for the Channel.
- Specified by:
getCustomin interfaceCustomizable<Channel>- Returns:
- custom
-
getGeoLocation
GeoJSON geometry object encoding the geo location of the Channel.
- Returns:
- geoLocation
-
setId
Unique identifier of the Channel.
- Specified by:
setIdin interfaceBaseResource- Parameters:
id- value to be set
-
setVersion
Current version of the Channel.
- Specified by:
setVersionin interfaceBaseResource- Parameters:
version- value to be set
-
setCreatedAt
Date and time (UTC) the Channel was initially created.
- Specified by:
setCreatedAtin interfaceBaseResource- Parameters:
createdAt- value to be set
-
setLastModifiedAt
Date and time (UTC) the Channel was last updated.
- Specified by:
setLastModifiedAtin interfaceBaseResource- Parameters:
lastModifiedAt- value to be set
-
setLastModifiedBy
IDs and references that last modified the Channel.
- Parameters:
lastModifiedBy- value to be set
-
setCreatedBy
IDs and references that created the Channel.
- Parameters:
createdBy- value to be set
-
setKey
User-defined unique identifier of the Channel.
- Parameters:
key- value to be set
-
setRoles
Roles of the Channel.
- Parameters:
roles- values to be set
-
setRoles
Roles of the Channel.
- Parameters:
roles- values to be set
-
setName
Name of the Channel.
- Parameters:
name- value to be set
-
setDescription
Description of the Channel.
- Parameters:
description- value to be set
-
setAddress
Address where the Channel is located (for example, if the Channel is a physical store).
- Parameters:
address- value to be set
-
setReviewRatingStatistics
Statistics about the review ratings taken into account for the Channel.
- Parameters:
reviewRatingStatistics- value to be set
-
setCustom
Custom Fields defined for the Channel.
- Specified by:
setCustomin interfaceCustomizable<Channel>- Parameters:
custom- value to be set
-
setGeoLocation
GeoJSON geometry object encoding the geo location of the Channel.
- Parameters:
geoLocation- value to be set
-
of
factory method- Returns:
- instance of Channel
-
of
factory method to create a shallow copy Channel- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
Channel copyDeep()- Specified by:
copyDeepin interfaceBaseResource
-
deepCopy
factory method to create a deep copy of Channel- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for Channel- Returns:
- builder
-
builder
create builder for Channel instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withChannel
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
referenceTypeId
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-