Class ShippingMethodResourceIdentifierBuilder
java.lang.Object
com.commercetools.api.models.shipping_method.ShippingMethodResourceIdentifierBuilder
- All Implemented Interfaces:
Builder<ShippingMethodResourceIdentifier>
public class ShippingMethodResourceIdentifierBuilder
extends Object
implements Builder<ShippingMethodResourceIdentifier>
ShippingMethodResourceIdentifierBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodResourceIdentifier shippingMethodResourceIdentifier = ShippingMethodResourceIdentifier.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShippingMethodResourceIdentifier with checking for non-null required valuesbuilds ShippingMethodResourceIdentifier without checking for non-null required valuesgetId()
Unique identifier of the referenced ShippingMethod.getKey()
User-defined unique identifier of the referenced ShippingMethod.Unique identifier of the referenced ShippingMethod.User-defined unique identifier of the referenced ShippingMethod.of()
factory method for an instance of ShippingMethodResourceIdentifierBuilderof
(ShippingMethodResourceIdentifier template) create builder for ShippingMethodResourceIdentifier instance
-
Constructor Details
-
ShippingMethodResourceIdentifierBuilder
public ShippingMethodResourceIdentifierBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced ShippingMethod. Required if
key
is absent.- Parameters:
id
- value to be set- Returns:
- Builder
-
key
User-defined unique identifier of the referenced ShippingMethod. Required if
id
is absent.- Parameters:
key
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced ShippingMethod. Required if
key
is absent.- Returns:
- id
-
getKey
User-defined unique identifier of the referenced ShippingMethod. Required if
id
is absent.- Returns:
- key
-
build
builds ShippingMethodResourceIdentifier with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShippingMethodResourceIdentifier>
- Returns:
- ShippingMethodResourceIdentifier
-
buildUnchecked
builds ShippingMethodResourceIdentifier without checking for non-null required values- Returns:
- ShippingMethodResourceIdentifier
-
of
factory method for an instance of ShippingMethodResourceIdentifierBuilder- Returns:
- builder
-
of
create builder for ShippingMethodResourceIdentifier instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-