Class CartLockBuilder
java.lang.Object
com.commercetools.api.models.cart.CartLockBuilder
CartLockBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartLock cartLock = CartLock.builder()
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.clientId("{clientId}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CartLock with checking for non-null required valuesbuilds CartLock without checking for non-null required valuesidof the API Client that locked the Cart.createdAt(ZonedDateTime createdAt) Date and time (UTC) the Cart was locked.idof the API Client that locked the Cart.Date and time (UTC) the Cart was locked.static CartLockBuilderof()factory method for an instance of CartLockBuilderstatic CartLockBuildercreate builder for CartLock instance
-
Constructor Details
-
CartLockBuilder
public CartLockBuilder()
-
-
Method Details
-
createdAt
Date and time (UTC) the Cart was locked.
- Parameters:
createdAt- value to be set- Returns:
- Builder
-
clientId
idof the API Client that locked the Cart.- Parameters:
clientId- value to be set- Returns:
- Builder
-
getCreatedAt
Date and time (UTC) the Cart was locked.
- Returns:
- createdAt
-
getClientId
idof the API Client that locked the Cart.- Returns:
- clientId
-
build
builds CartLock with checking for non-null required values -
buildUnchecked
builds CartLock without checking for non-null required values- Returns:
- CartLock
-
of
factory method for an instance of CartLockBuilder- Returns:
- builder
-
of
create builder for CartLock instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-