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