Class PaymentMethodReferenceBuilder
java.lang.Object
com.commercetools.api.models.payment_method.PaymentMethodReferenceBuilder
- All Implemented Interfaces:
Builder<PaymentMethodReference>
public class PaymentMethodReferenceBuilder
extends Object
implements Builder<PaymentMethodReference>
PaymentMethodReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentMethodReference paymentMethodReference = PaymentMethodReference.builder()
.id("{id}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentMethodReference with checking for non-null required valuesbuilds PaymentMethodReference without checking for non-null required valuesgetId()
Unique identifier of the referenced PaymentMethod.getObj()
Contains the representation of the expanded PaymentMethod.Unique identifier of the referenced PaymentMethod.obj
(PaymentMethod obj) Contains the representation of the expanded PaymentMethod.obj
(Function<PaymentMethodBuilder, PaymentMethodBuilder> builder) Contains the representation of the expanded PaymentMethod.of()
factory method for an instance of PaymentMethodReferenceBuilderof
(PaymentMethodReference template) create builder for PaymentMethodReference instancewithObj
(Function<PaymentMethodBuilder, PaymentMethod> builder) Contains the representation of the expanded PaymentMethod.
-
Constructor Details
-
PaymentMethodReferenceBuilder
public PaymentMethodReferenceBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced PaymentMethod.
- Parameters:
id
- value to be set- Returns:
- Builder
-
obj
public PaymentMethodReferenceBuilder obj(Function<PaymentMethodBuilder, PaymentMethodBuilder> builder) Contains the representation of the expanded PaymentMethod. Only present in responses to requests with Reference Expansion for PaymentMethods.
- Parameters:
builder
- function to build the obj value- Returns:
- Builder
-
withObj
Contains the representation of the expanded PaymentMethod. Only present in responses to requests with Reference Expansion for PaymentMethods.
- Parameters:
builder
- function to build the obj value- Returns:
- Builder
-
obj
Contains the representation of the expanded PaymentMethod. Only present in responses to requests with Reference Expansion for PaymentMethods.
- Parameters:
obj
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced PaymentMethod.
- Returns:
- id
-
getObj
Contains the representation of the expanded PaymentMethod. Only present in responses to requests with Reference Expansion for PaymentMethods.
- Returns:
- obj
-
build
builds PaymentMethodReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentMethodReference>
- Returns:
- PaymentMethodReference
-
buildUnchecked
builds PaymentMethodReference without checking for non-null required values- Returns:
- PaymentMethodReference
-
of
factory method for an instance of PaymentMethodReferenceBuilder- Returns:
- builder
-
of
create builder for PaymentMethodReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-