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 ChannelBuilder
builder()
builder factory method for Channelstatic ChannelBuilder
create builder for Channel instancestatic Channel
factory method to create a deep copy of Channel@Valid Address
Address where the Channel is located (for example, if the Channel is a physical store).@NotNull ZonedDateTime
Date and time (UTC) the Channel was initially created.@Valid CreatedBy
IDs and references that created the Channel.@Valid CustomFields
Custom Fields defined for the Channel.@Valid LocalizedString
Description of the Channel.@Valid GeoJson
GeoJSON geometry object encoding the geo location of the Channel.@NotNull String
getId()
Unique identifier of the Channel.@NotNull String
getKey()
User-defined unique identifier of the Channel.@NotNull ZonedDateTime
Date and time (UTC) the Channel was last updated.@Valid LastModifiedBy
IDs and references that last modified the Channel.@Valid LocalizedString
getName()
Name of the Channel.@Valid ReviewRatingStatistics
Statistics about the review ratings taken into account for the Channel.@NotNull List<ChannelRoleEnum>
getRoles()
Roles of the Channel.@NotNull Long
Current version of the Channel.static Channel
of()
factory methodstatic Channel
factory method to create a shallow copy Channelstatic ReferenceTypeId
void
setAddress
(Address address) Address where the Channel is located (for example, if the Channel is a physical store).void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the Channel was initially created.void
setCreatedBy
(CreatedBy createdBy) IDs and references that created the Channel.void
setCustom
(CustomFields custom) Custom Fields defined for the Channel.void
setDescription
(LocalizedString description) Description of the Channel.void
setGeoLocation
(GeoJson geoLocation) GeoJSON geometry object encoding the geo location of the Channel.void
Unique identifier of the Channel.void
User-defined unique identifier of the Channel.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the Channel was last updated.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) IDs and references that last modified the Channel.void
setName
(LocalizedString name) Name of the Channel.void
setReviewRatingStatistics
(ReviewRatingStatistics reviewRatingStatistics) Statistics about the review ratings taken into account for the Channel.void
setRoles
(ChannelRoleEnum... roles) Roles of the Channel.void
setRoles
(List<ChannelRoleEnum> roles) Roles of the Channel.void
setVersion
(Long version) Current version of the Channel.static com.fasterxml.jackson.core.type.TypeReference<Channel>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withChannel
(Function<Channel, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.channel.ChannelMixin
toReference, toResourceIdentifier
Methods inherited from interface com.commercetools.api.models.Customizable
unwrapCustomizable
Methods inherited from interface com.commercetools.api.models.DomainResource
get
-
Method Details
-
getId
Unique identifier of the Channel.
- Specified by:
getId
in interfaceBaseResource
- Specified by:
getId
in interfaceDomainResource<Channel>
- Specified by:
getId
in interfaceIdentifiable<Channel>
- Specified by:
getId
in interfaceVersioned<Channel>
- Returns:
- id
-
getVersion
Current version of the Channel.
- Specified by:
getVersion
in interfaceBaseResource
- Specified by:
getVersion
in interfaceDomainResource<Channel>
- Specified by:
getVersion
in interfaceVersioned<Channel>
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the Channel was initially created.
- Specified by:
getCreatedAt
in interfaceBaseResource
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the Channel was last updated.
- Specified by:
getLastModifiedAt
in 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:
getCustom
in 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:
setId
in interfaceBaseResource
- Parameters:
id
- value to be set
-
setVersion
Current version of the Channel.
- Specified by:
setVersion
in interfaceBaseResource
- Parameters:
version
- value to be set
-
setCreatedAt
Date and time (UTC) the Channel was initially created.
- Specified by:
setCreatedAt
in interfaceBaseResource
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Date and time (UTC) the Channel was last updated.
- Specified by:
setLastModifiedAt
in 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:
setCustom
in 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
-
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
-