Class AttributionBuilder
java.lang.Object
com.commercetools.api.models.common.AttributionBuilder
- All Implemented Interfaces:
Builder<Attribution>
AttributionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
Attribution attribution = Attribution.builder()
.source(AttributionSource.IMPORT)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds Attribution with checking for non-null required valuesbuilds Attribution without checking for non-null required valuesid
of the API Client that created or modified the resource.id
of the API Client that created or modified the resource.Method used to initiate the creation or modification of the resource.static AttributionBuilder
of()
factory method for an instance of AttributionBuilderstatic AttributionBuilder
of
(Attribution template) create builder for Attribution instancesource
(AttributionSource source) Method used to initiate the creation or modification of the resource.
-
Constructor Details
-
AttributionBuilder
public AttributionBuilder()
-
-
Method Details
-
clientId
id
of the API Client that created or modified the resource.- Parameters:
clientId
- value to be set- Returns:
- Builder
-
source
Method used to initiate the creation or modification of the resource.
- Parameters:
source
- value to be set- Returns:
- Builder
-
getClientId
id
of the API Client that created or modified the resource.- Returns:
- clientId
-
getSource
Method used to initiate the creation or modification of the resource.
- Returns:
- source
-
build
builds Attribution with checking for non-null required values- Specified by:
build
in interfaceBuilder<Attribution>
- Returns:
- Attribution
-
buildUnchecked
builds Attribution without checking for non-null required values- Returns:
- Attribution
-
of
factory method for an instance of AttributionBuilder- Returns:
- builder
-
of
create builder for Attribution instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-