Class ChangeSubscriptionBuilder
java.lang.Object
com.commercetools.api.models.subscription.ChangeSubscriptionBuilder
- All Implemented Interfaces:
Builder<ChangeSubscription>
ChangeSubscriptionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChangeSubscription changeSubscription = ChangeSubscription.builder()
.resourceTypeId(ChangeSubscriptionResourceTypeId.APPROVAL_FLOW)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ChangeSubscription with checking for non-null required valuesbuilds ChangeSubscription without checking for non-null required valuesUnique identifier for the type of resource, for example,cart
.static ChangeSubscriptionBuilder
of()
factory method for an instance of ChangeSubscriptionBuilderstatic ChangeSubscriptionBuilder
of
(ChangeSubscription template) create builder for ChangeSubscription instanceresourceTypeId
(ChangeSubscriptionResourceTypeId resourceTypeId) Unique identifier for the type of resource, for example,cart
.
-
Constructor Details
-
ChangeSubscriptionBuilder
public ChangeSubscriptionBuilder()
-
-
Method Details
-
resourceTypeId
Unique identifier for the type of resource, for example,
cart
.- Parameters:
resourceTypeId
- value to be set- Returns:
- Builder
-
getResourceTypeId
Unique identifier for the type of resource, for example,
cart
.- Returns:
- resourceTypeId
-
build
builds ChangeSubscription with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChangeSubscription>
- Returns:
- ChangeSubscription
-
buildUnchecked
builds ChangeSubscription without checking for non-null required values- Returns:
- ChangeSubscription
-
of
factory method for an instance of ChangeSubscriptionBuilder- Returns:
- builder
-
of
create builder for ChangeSubscription instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-