Class PaymentKeyReferenceBuilder
java.lang.Object
com.commercetools.importapi.models.common.PaymentKeyReferenceBuilder
- All Implemented Interfaces:
Builder<PaymentKeyReference>
PaymentKeyReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentKeyReference paymentKeyReference = PaymentKeyReference.builder()
.key("{key}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentKeyReference with checking for non-null required valuesbuilds PaymentKeyReference without checking for non-null required valuesgetKey()
value of key}set the value to the keystatic PaymentKeyReferenceBuilder
of()
factory method for an instance of PaymentKeyReferenceBuilderstatic PaymentKeyReferenceBuilder
of
(PaymentKeyReference template) create builder for PaymentKeyReference instance
-
Constructor Details
-
PaymentKeyReferenceBuilder
public PaymentKeyReferenceBuilder()
-
-
Method Details
-
key
set the value to the key- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
value of key}- Returns:
- key
-
build
builds PaymentKeyReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentKeyReference>
- Returns:
- PaymentKeyReference
-
buildUnchecked
builds PaymentKeyReference without checking for non-null required values- Returns:
- PaymentKeyReference
-
of
factory method for an instance of PaymentKeyReferenceBuilder- Returns:
- builder
-
of
create builder for PaymentKeyReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-