Class MissingRoleOnChannelErrorBuilder
java.lang.Object
com.commercetools.api.models.error.MissingRoleOnChannelErrorBuilder
- All Implemented Interfaces:
Builder<MissingRoleOnChannelError>
public class MissingRoleOnChannelErrorBuilder
extends Object
implements Builder<MissingRoleOnChannelError>
MissingRoleOnChannelErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MissingRoleOnChannelError missingRoleOnChannelError = MissingRoleOnChannelError.builder()
.message("{message}")
.missingRole(ChannelRoleEnum.INVENTORY_SUPPLY)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()builds MissingRoleOnChannelError with checking for non-null required valuesbuilds MissingRoleOnChannelError without checking for non-null required valueschannel(ChannelResourceIdentifier channel) ResourceIdentifier to a given Channel.ResourceIdentifier to a given Channel.ResourceIdentifier to a given Channel."Given channel with $idOrKeyOfChannel does not have the required role $role."ProductDistributionfor Product Distribution Channels allowed for the Store.Error-specific additional fields."Given channel with $idOrKeyOfChannel does not have the required role $role."missingRole(ChannelRoleEnum missingRole) ProductDistributionfor Product Distribution Channels allowed for the Store.of()factory method for an instance of MissingRoleOnChannelErrorBuilderof(MissingRoleOnChannelError template) create builder for MissingRoleOnChannelError instanceError-specific additional fields.ResourceIdentifier to a given Channel.
-
Constructor Details
-
MissingRoleOnChannelErrorBuilder
public MissingRoleOnChannelErrorBuilder()
-
-
Method Details
-
message
"Given channel with $idOrKeyOfChannel does not have the required role $role."- Parameters:
message- value to be set- Returns:
- Builder
-
values
Error-specific additional fields.
- Parameters:
values- properties to be set- Returns:
- Builder
-
addValue
Error-specific additional fields.
- Parameters:
key- property namevalue- property value- Returns:
- Builder
-
channel
public MissingRoleOnChannelErrorBuilder channel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) ResourceIdentifier to a given Channel.
- Parameters:
builder- function to build the channel value- Returns:
- Builder
-
withChannel
public MissingRoleOnChannelErrorBuilder withChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) ResourceIdentifier to a given Channel.
- Parameters:
builder- function to build the channel value- Returns:
- Builder
-
channel
ResourceIdentifier to a given Channel.
- Parameters:
channel- value to be set- Returns:
- Builder
-
missingRole
ProductDistributionfor Product Distribution Channels allowed for the Store. Also required for Standalone Prices.InventorySupplyfor Inventory Supply Channels allowed for the Store.
- Parameters:
missingRole- value to be set- Returns:
- Builder
-
getMessage
"Given channel with $idOrKeyOfChannel does not have the required role $role."- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getChannel
ResourceIdentifier to a given Channel.
- Returns:
- channel
-
getMissingRole
ProductDistributionfor Product Distribution Channels allowed for the Store. Also required for Standalone Prices.InventorySupplyfor Inventory Supply Channels allowed for the Store.
- Returns:
- missingRole
-
build
builds MissingRoleOnChannelError with checking for non-null required values- Specified by:
buildin interfaceBuilder<MissingRoleOnChannelError>- Returns:
- MissingRoleOnChannelError
-
buildUnchecked
builds MissingRoleOnChannelError without checking for non-null required values- Returns:
- MissingRoleOnChannelError
-
of
factory method for an instance of MissingRoleOnChannelErrorBuilder- Returns:
- builder
-
of
create builder for MissingRoleOnChannelError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-