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
Constructors -
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,order.static ChangeSubscriptionBuilderof()factory method for an instance of ChangeSubscriptionBuilderstatic ChangeSubscriptionBuilderof(ChangeSubscription template) create builder for ChangeSubscription instanceresourceTypeId(ChangeSubscriptionResourceTypeId resourceTypeId) Unique identifier for the type of resource, for example,order.
-
Constructor Details
-
ChangeSubscriptionBuilder
public ChangeSubscriptionBuilder()
-
-
Method Details
-
resourceTypeId
Unique identifier for the type of resource, for example,
order.- Parameters:
resourceTypeId- value to be set- Returns:
- Builder
-
getResourceTypeId
Unique identifier for the type of resource, for example,
order.- Returns:
- resourceTypeId
-
build
builds ChangeSubscription with checking for non-null required values- Specified by:
buildin 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
-