Class FeatureCreateParams.FeatureCreateBuilder
java.lang.Object
com.chargebee.v4.models.feature.params.FeatureCreateParams.FeatureCreateBuilder
- Enclosing class:
- FeatureCreateParams
-
Method Summary
Modifier and TypeMethodDescriptionbuild()customField(String fieldName, String value) Add a custom field to the request.customFields(Map<String, String> customFields) Add multiple custom fields to the request.description(String value) type(FeatureCreateParams.Type value)
-
Method Details
-
id
-
name
-
description
-
type
-
unit
-
levels
public FeatureCreateParams.FeatureCreateBuilder levels(List<FeatureCreateParams.LevelsParams> value) -
customField
Add a custom field to the request. Custom fields must start with "cf_".- Parameters:
fieldName- the name of the custom field (e.g., "cf_custom_field_name")value- the value of the custom field- Returns:
- this builder
- Throws:
IllegalArgumentException- if fieldName doesn't start with "cf_"
-
customFields
Add multiple custom fields to the request. All field names must start with "cf_".- Parameters:
customFields- map of custom field names to values- Returns:
- this builder
- Throws:
IllegalArgumentException- if any field name doesn't start with "cf_"
-
build
-