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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds Attribution with checking for non-null required valuesbuilds Attribution without checking for non-null required valuesidof the API Client that created or modified the resource.idof the API Client that created or modified the resource.Method used to initiate the creation or modification of the resource.static AttributionBuilderof()factory method for an instance of AttributionBuilderstatic AttributionBuilderof(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
idof 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
idof 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:
buildin 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
-