Class VariantBulkUpdateSuccessResultBuilder
java.lang.Object
com.commercetools.api.models.variant.VariantBulkUpdateSuccessResultBuilder
- All Implemented Interfaces:
Builder<VariantBulkUpdateSuccessResult>
public class VariantBulkUpdateSuccessResultBuilder
extends Object
implements Builder<VariantBulkUpdateSuccessResult>
VariantBulkUpdateSuccessResultBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
VariantBulkUpdateSuccessResult variantBulkUpdateSuccessResult = VariantBulkUpdateSuccessResult.builder()
.resource(resourceBuilder -> resourceBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds VariantBulkUpdateSuccessResult with checking for non-null required valuesbuilds VariantBulkUpdateSuccessResult without checking for non-null required valuesgetId()Unique identifier of the Variant from the request.getKey()User-defined unique identifier of the Variant from the request.A lightweight reference containing theidand updatedversionof the Variant.Unique identifier of the Variant from the request.User-defined unique identifier of the Variant from the request.of()factory method for an instance of VariantBulkUpdateSuccessResultBuilderof(VariantBulkUpdateSuccessResult template) create builder for VariantBulkUpdateSuccessResult instanceresource(VariantBulkUpdateResource resource) A lightweight reference containing theidand updatedversionof the Variant.A lightweight reference containing theidand updatedversionof the Variant.A lightweight reference containing theidand updatedversionof the Variant.
-
Constructor Details
-
VariantBulkUpdateSuccessResultBuilder
public VariantBulkUpdateSuccessResultBuilder()
-
-
Method Details
-
id
Unique identifier of the Variant from the request. Present when the Variant was identified by
id.- Parameters:
id- value to be set- Returns:
- Builder
-
key
User-defined unique identifier of the Variant from the request. Present when the Variant was identified by
key.- Parameters:
key- value to be set- Returns:
- Builder
-
resource
public VariantBulkUpdateSuccessResultBuilder resource(Function<VariantBulkUpdateResourceBuilder, VariantBulkUpdateResourceBuilder> builder) A lightweight reference containing the
idand updatedversionof the Variant.- Parameters:
builder- function to build the resource value- Returns:
- Builder
-
withResource
public VariantBulkUpdateSuccessResultBuilder withResource(Function<VariantBulkUpdateResourceBuilder, VariantBulkUpdateResource> builder) A lightweight reference containing the
idand updatedversionof the Variant.- Parameters:
builder- function to build the resource value- Returns:
- Builder
-
resource
A lightweight reference containing the
idand updatedversionof the Variant.- Parameters:
resource- value to be set- Returns:
- Builder
-
getId
Unique identifier of the Variant from the request. Present when the Variant was identified by
id.- Returns:
- id
-
getKey
User-defined unique identifier of the Variant from the request. Present when the Variant was identified by
key.- Returns:
- key
-
getResource
A lightweight reference containing the
idand updatedversionof the Variant.- Returns:
- resource
-
build
builds VariantBulkUpdateSuccessResult with checking for non-null required values- Specified by:
buildin interfaceBuilder<VariantBulkUpdateSuccessResult>- Returns:
- VariantBulkUpdateSuccessResult
-
buildUnchecked
builds VariantBulkUpdateSuccessResult without checking for non-null required values- Returns:
- VariantBulkUpdateSuccessResult
-
of
factory method for an instance of VariantBulkUpdateSuccessResultBuilder- Returns:
- builder
-
of
create builder for VariantBulkUpdateSuccessResult instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-