Class ShippingMethodSetCustomTypeActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ShippingMethodSetCustomTypeAction>
Example to create an instance using the builder pattern
ShippingMethodSetCustomTypeAction shippingMethodSetCustomTypeAction = ShippingMethodSetCustomTypeAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShippingMethodSetCustomTypeAction with checking for non-null required valuesbuilds ShippingMethodSetCustomTypeAction without checking for non-null required valuesfields
(FieldContainer fields) Sets the Custom Fields fields for the ShippingMethod.Sets the Custom Fields fields for the ShippingMethod.Sets the Custom Fields fields for the ShippingMethod.getType()
Defines the Type that extends the ShippingMethod with Custom Fields.of()
factory method for an instance of ShippingMethodSetCustomTypeActionBuilderof
(ShippingMethodSetCustomTypeAction template) create builder for ShippingMethodSetCustomTypeAction instancetype
(TypeResourceIdentifier type) Defines the Type that extends the ShippingMethod with Custom Fields.Defines the Type that extends the ShippingMethod with Custom Fields.Sets the Custom Fields fields for the ShippingMethod.Defines the Type that extends the ShippingMethod with Custom Fields.
-
Constructor Details
-
ShippingMethodSetCustomTypeActionBuilder
-
-
Method Details
-
type
public ShippingMethodSetCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the ShippingMethod with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ShippingMethod.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
withType
public ShippingMethodSetCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the ShippingMethod with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ShippingMethod.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the ShippingMethod with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ShippingMethod.
- Parameters:
type
- value to be set- Returns:
- Builder
-
fields
public ShippingMethodSetCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the ShippingMethod.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
withFields
public ShippingMethodSetCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the ShippingMethod.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the ShippingMethod.
- Parameters:
fields
- value to be set- Returns:
- Builder
-
getType
Defines the Type that extends the ShippingMethod with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ShippingMethod.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the ShippingMethod.
- Returns:
- fields
-
build
builds ShippingMethodSetCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<ShippingMethodSetCustomTypeAction>
- Returns:
- ShippingMethodSetCustomTypeAction
-
buildUnchecked
builds ShippingMethodSetCustomTypeAction without checking for non-null required values- Returns:
- ShippingMethodSetCustomTypeAction
-
of
factory method for an instance of ShippingMethodSetCustomTypeActionBuilder- Returns:
- builder
-
of
public static ShippingMethodSetCustomTypeActionBuilder of(ShippingMethodSetCustomTypeAction template) create builder for ShippingMethodSetCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-