Class GraphQLMissingRoleOnChannelErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLMissingRoleOnChannelErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLMissingRoleOnChannelError>
public class GraphQLMissingRoleOnChannelErrorBuilder
extends Object
implements Builder<GraphQLMissingRoleOnChannelError>
GraphQLMissingRoleOnChannelErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLMissingRoleOnChannelError graphQLMissingRoleOnChannelError = GraphQLMissingRoleOnChannelError.builder()
.missingRole(ChannelRoleEnum.INVENTORY_SUPPLY)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds GraphQLMissingRoleOnChannelError with checking for non-null required valuesbuilds GraphQLMissingRoleOnChannelError without checking for non-null required valueschannel
(ChannelResourceIdentifier channel) ResourceIdentifier to a given Channel.ResourceIdentifier to a given Channel.ResourceIdentifier to a given Channel.ProductDistribution
for Product Distribution Channels allowed for the Store.Error-specific additional fields.missingRole
(ChannelRoleEnum missingRole) ProductDistribution
for Product Distribution Channels allowed for the Store.of()
factory method for an instance of GraphQLMissingRoleOnChannelErrorBuilderof
(GraphQLMissingRoleOnChannelError template) create builder for GraphQLMissingRoleOnChannelError instanceError-specific additional fields.ResourceIdentifier to a given Channel.
-
Constructor Details
-
GraphQLMissingRoleOnChannelErrorBuilder
public GraphQLMissingRoleOnChannelErrorBuilder()
-
-
Method Details
-
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 GraphQLMissingRoleOnChannelErrorBuilder channel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) ResourceIdentifier to a given Channel.
- Parameters:
builder
- function to build the channel value- Returns:
- Builder
-
withChannel
public GraphQLMissingRoleOnChannelErrorBuilder 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
ProductDistribution
for Product Distribution Channels allowed for the Store. Also required for Standalone Prices.InventorySupply
for Inventory Supply Channels allowed for the Store.
- Parameters:
missingRole
- value to be set- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getChannel
ResourceIdentifier to a given Channel.
- Returns:
- channel
-
getMissingRole
ProductDistribution
for Product Distribution Channels allowed for the Store. Also required for Standalone Prices.InventorySupply
for Inventory Supply Channels allowed for the Store.
- Returns:
- missingRole
-
build
builds GraphQLMissingRoleOnChannelError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLMissingRoleOnChannelError>
- Returns:
- GraphQLMissingRoleOnChannelError
-
buildUnchecked
builds GraphQLMissingRoleOnChannelError without checking for non-null required values- Returns:
- GraphQLMissingRoleOnChannelError
-
of
factory method for an instance of GraphQLMissingRoleOnChannelErrorBuilder- Returns:
- builder
-
of
create builder for GraphQLMissingRoleOnChannelError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-