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