Class ContainerAndKeyBuilder
java.lang.Object
com.commercetools.api.models.message.ContainerAndKeyBuilder
- All Implemented Interfaces:
Builder<ContainerAndKey>
ContainerAndKeyBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ContainerAndKey containerAndKey = ContainerAndKey.builder()
.key("{key}")
.container("{container}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ContainerAndKey with checking for non-null required valuesbuilds ContainerAndKey without checking for non-null required valuesNamespace to group Custom Objects.Namespace to group Custom Objects.getKey()
User-defined identifier that is unique within the given container.User-defined identifier that is unique within the given container.static ContainerAndKeyBuilder
of()
factory method for an instance of ContainerAndKeyBuilderstatic ContainerAndKeyBuilder
of
(ContainerAndKey template) create builder for ContainerAndKey instance
-
Constructor Details
-
ContainerAndKeyBuilder
public ContainerAndKeyBuilder()
-
-
Method Details
-
key
User-defined identifier that is unique within the given container.
- Parameters:
key
- value to be set- Returns:
- Builder
-
container
Namespace to group Custom Objects.
- Parameters:
container
- value to be set- Returns:
- Builder
-
getKey
User-defined identifier that is unique within the given container.
- Returns:
- key
-
getContainer
Namespace to group Custom Objects.
- Returns:
- container
-
build
builds ContainerAndKey with checking for non-null required values- Specified by:
build
in interfaceBuilder<ContainerAndKey>
- Returns:
- ContainerAndKey
-
buildUnchecked
builds ContainerAndKey without checking for non-null required values- Returns:
- ContainerAndKey
-
of
factory method for an instance of ContainerAndKeyBuilder- Returns:
- builder
-
of
create builder for ContainerAndKey instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-