Class ChannelDraftBuilder
- All Implemented Interfaces:
Builder<ChannelDraft>
Example to create an instance using the builder pattern
ChannelDraft channelDraft = ChannelDraft.builder()
.key("{key}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress
(BaseAddress address) Address where the Channel is located.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Address where the Channel is located.build()
builds ChannelDraft with checking for non-null required valuesbuilds ChannelDraft without checking for non-null required valuescustom
(CustomFieldsDraft custom) Custom fields defined for the Channel.Custom fields defined for the Channel.description
(LocalizedString description) Description of the Channel.Description of the Channel.geoLocation
(GeoJson geoLocation) GeoJSON geometry object encoding the geo location of the Channel.geoLocation
(Function<GeoJsonBuilder, Builder<? extends GeoJson>> builder) GeoJSON geometry object encoding the geo location of the Channel.Address where the Channel is located.Custom fields defined for the Channel.Description of the Channel.GeoJSON geometry object encoding the geo location of the Channel.getKey()
User-defined unique identifier for the Channel.getName()
Name of the Channel.getRoles()
Roles of the Channel.User-defined unique identifier for the Channel.name
(LocalizedString name) Name of the Channel.Name of the Channel.static ChannelDraftBuilder
of()
factory method for an instance of ChannelDraftBuilderstatic ChannelDraftBuilder
of
(ChannelDraft template) create builder for ChannelDraft instanceplusRoles
(ChannelRoleEnum... roles) Roles of the Channel.roles
(ChannelRoleEnum... roles) Roles of the Channel.roles
(List<ChannelRoleEnum> roles) Roles of the Channel.withAddress
(Function<BaseAddressBuilder, BaseAddress> builder) Address where the Channel is located.Custom fields defined for the Channel.Description of the Channel.Name of the Channel.
-
Constructor Details
-
ChannelDraftBuilder
public ChannelDraftBuilder()
-
-
Method Details
-
key
User-defined unique identifier for the Channel.
- Parameters:
key
- value to be set- Returns:
- Builder
-
roles
Roles of the Channel. Each channel must have at least one role. If not specified, then
InventorySupply
is assigned by default.- Parameters:
roles
- value to be set- Returns:
- Builder
-
roles
Roles of the Channel. Each channel must have at least one role. If not specified, then
InventorySupply
is assigned by default.- Parameters:
roles
- value to be set- Returns:
- Builder
-
plusRoles
Roles of the Channel. Each channel must have at least one role. If not specified, then
InventorySupply
is assigned by default.- Parameters:
roles
- value to be set- Returns:
- Builder
-
name
Name of the Channel.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
Name of the Channel.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
name
Name of the Channel.
- Parameters:
name
- value to be set- Returns:
- Builder
-
description
public ChannelDraftBuilder description(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Description of the Channel.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
withDescription
public ChannelDraftBuilder withDescription(Function<LocalizedStringBuilder, LocalizedString> builder) Description of the Channel.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
description
Description of the Channel.
- Parameters:
description
- value to be set- Returns:
- Builder
-
address
Address where the Channel is located.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
Address where the Channel is located.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Address where the Channel is located.
- Parameters:
address
- value to be set- Returns:
- Builder
-
custom
public ChannelDraftBuilder custom(Function<CustomFieldsDraftBuilder, CustomFieldsDraftBuilder> builder) Custom fields defined for the Channel.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
withCustom
Custom fields defined for the Channel.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
custom
Custom fields defined for the Channel.
- Parameters:
custom
- value to be set- Returns:
- Builder
-
geoLocation
GeoJSON geometry object encoding the geo location of the Channel. Currently, only the Point type is supported.
- Parameters:
geoLocation
- value to be set- Returns:
- Builder
-
geoLocation
GeoJSON geometry object encoding the geo location of the Channel. Currently, only the Point type is supported.
- Parameters:
builder
- function to build the geoLocation value- Returns:
- Builder
-
getKey
User-defined unique identifier for the Channel.
- Returns:
- key
-
getRoles
Roles of the Channel. Each channel must have at least one role. If not specified, then
InventorySupply
is assigned by default.- Returns:
- roles
-
getName
Name of the Channel.
- Returns:
- name
-
getDescription
Description of the Channel.
- Returns:
- description
-
getAddress
Address where the Channel is located.
- Returns:
- address
-
getCustom
Custom fields defined for the Channel.
- Returns:
- custom
-
getGeoLocation
GeoJSON geometry object encoding the geo location of the Channel. Currently, only the Point type is supported.
- Returns:
- geoLocation
-
build
builds ChannelDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChannelDraft>
- Returns:
- ChannelDraft
-
buildUnchecked
builds ChannelDraft without checking for non-null required values- Returns:
- ChannelDraft
-
of
factory method for an instance of ChannelDraftBuilder- Returns:
- builder
-
of
create builder for ChannelDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-