Class PaymentSetMethodInfoNameActionBuilder
java.lang.Object
com.commercetools.api.models.payment.PaymentSetMethodInfoNameActionBuilder
- All Implemented Interfaces:
Builder<PaymentSetMethodInfoNameAction>
public class PaymentSetMethodInfoNameActionBuilder
extends Object
implements Builder<PaymentSetMethodInfoNameAction>
PaymentSetMethodInfoNameActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentSetMethodInfoNameAction paymentSetMethodInfoNameAction = PaymentSetMethodInfoNameAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentSetMethodInfoNameAction with checking for non-null required valuesbuilds PaymentSetMethodInfoNameAction without checking for non-null required valuesgetName()
Value to set.name
(LocalizedString name) Value to set.Value to set.of()
factory method for an instance of PaymentSetMethodInfoNameActionBuilderof
(PaymentSetMethodInfoNameAction template) create builder for PaymentSetMethodInfoNameAction instanceValue to set.
-
Constructor Details
-
PaymentSetMethodInfoNameActionBuilder
public PaymentSetMethodInfoNameActionBuilder()
-
-
Method Details
-
name
public PaymentSetMethodInfoNameActionBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
public PaymentSetMethodInfoNameActionBuilder withName(Function<LocalizedStringBuilder, LocalizedString> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
name
Value to set. If empty, any existing value will be removed.
- Parameters:
name
- value to be set- Returns:
- Builder
-
getName
Value to set. If empty, any existing value will be removed.
- Returns:
- name
-
build
builds PaymentSetMethodInfoNameAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentSetMethodInfoNameAction>
- Returns:
- PaymentSetMethodInfoNameAction
-
buildUnchecked
builds PaymentSetMethodInfoNameAction without checking for non-null required values- Returns:
- PaymentSetMethodInfoNameAction
-
of
factory method for an instance of PaymentSetMethodInfoNameActionBuilder- Returns:
- builder
-
of
create builder for PaymentSetMethodInfoNameAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-