Class QuoteRequestResourceIdentifierBuilder
java.lang.Object
com.commercetools.api.models.quote_request.QuoteRequestResourceIdentifierBuilder
- All Implemented Interfaces:
Builder<QuoteRequestResourceIdentifier>
public class QuoteRequestResourceIdentifierBuilder
extends Object
implements Builder<QuoteRequestResourceIdentifier>
QuoteRequestResourceIdentifierBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
QuoteRequestResourceIdentifier quoteRequestResourceIdentifier = QuoteRequestResourceIdentifier.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds QuoteRequestResourceIdentifier with checking for non-null required valuesbuilds QuoteRequestResourceIdentifier 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 QuoteRequestResourceIdentifierBuilderof
(QuoteRequestResourceIdentifier template) create builder for QuoteRequestResourceIdentifier instance
-
Constructor Details
-
QuoteRequestResourceIdentifierBuilder
public QuoteRequestResourceIdentifierBuilder()
-
-
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 QuoteRequestResourceIdentifier with checking for non-null required values- Specified by:
build
in interfaceBuilder<QuoteRequestResourceIdentifier>
- Returns:
- QuoteRequestResourceIdentifier
-
buildUnchecked
builds QuoteRequestResourceIdentifier without checking for non-null required values- Returns:
- QuoteRequestResourceIdentifier
-
of
factory method for an instance of QuoteRequestResourceIdentifierBuilder- Returns:
- builder
-
of
create builder for QuoteRequestResourceIdentifier instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-