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