Class CategorySetAssetCustomFieldActionBuilder
java.lang.Object
com.commercetools.api.models.category.CategorySetAssetCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<CategorySetAssetCustomFieldAction>
public class CategorySetAssetCustomFieldActionBuilder
extends Object
implements Builder<CategorySetAssetCustomFieldAction>
CategorySetAssetCustomFieldActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CategorySetAssetCustomFieldAction categorySetAssetCustomFieldAction = CategorySetAssetCustomFieldAction.builder()
.name("{name}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionNew value to set.New value to set.build()builds CategorySetAssetCustomFieldAction with checking for non-null required valuesbuilds CategorySetAssetCustomFieldAction without checking for non-null required valuesNew value to set.New value to set.getName()Name of the Custom Field.getValue()Ifvalueis absent ornull, this field will be removed if it exists.Name of the Custom Field.of()factory method for an instance of CategorySetAssetCustomFieldActionBuilderof(CategorySetAssetCustomFieldAction template) create builder for CategorySetAssetCustomFieldAction instanceIfvalueis absent ornull, this field will be removed if it exists.
-
Constructor Details
-
CategorySetAssetCustomFieldActionBuilder
public CategorySetAssetCustomFieldActionBuilder()
-
-
Method Details
-
assetId
New value to set. Either
assetIdorassetKeyis required.- Parameters:
assetId- value to be set- Returns:
- Builder
-
assetKey
New value to set. Either
assetIdorassetKeyis required.- Parameters:
assetKey- value to be set- Returns:
- Builder
-
name
Name of the Custom Field.
- Parameters:
name- value to be set- Returns:
- Builder
-
value
If
valueis absent ornull, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalueis provided, it is set for the field defined byname.- Parameters:
value- value to be set- Returns:
- Builder
-
getAssetId
New value to set. Either
assetIdorassetKeyis required.- Returns:
- assetId
-
getAssetKey
New value to set. Either
assetIdorassetKeyis required.- Returns:
- assetKey
-
getName
Name of the Custom Field.
- Returns:
- name
-
getValue
If
valueis absent ornull, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalueis provided, it is set for the field defined byname.- Returns:
- value
-
build
builds CategorySetAssetCustomFieldAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<CategorySetAssetCustomFieldAction>- Returns:
- CategorySetAssetCustomFieldAction
-
buildUnchecked
builds CategorySetAssetCustomFieldAction without checking for non-null required values- Returns:
- CategorySetAssetCustomFieldAction
-
of
factory method for an instance of CategorySetAssetCustomFieldActionBuilder- Returns:
- builder
-
of
public static CategorySetAssetCustomFieldActionBuilder of(CategorySetAssetCustomFieldAction template) create builder for CategorySetAssetCustomFieldAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-