Class VariantSetAssetCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<VariantSetAssetCustomFieldAction>
Example to create an instance using the builder pattern
VariantSetAssetCustomFieldAction variantSetAssetCustomFieldAction = VariantSetAssetCustomFieldAction.builder()
.name("{name}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheidof the Asset to update.Thekeyof the Asset to update.build()builds VariantSetAssetCustomFieldAction with checking for non-null required valuesbuilds VariantSetAssetCustomFieldAction without checking for non-null required valuesTheidof the Asset to update.Thekeyof the Asset to update.getName()Name of the Custom Field.Iftrue, only the staged Asset is updated.getValue()Ifvalueis absent ornull, this field will be removed if it exists.Name of the Custom Field.of()factory method for an instance of VariantSetAssetCustomFieldActionBuilderof(VariantSetAssetCustomFieldAction template) create builder for VariantSetAssetCustomFieldAction instanceIftrue, only the staged Asset is updated.Ifvalueis absent ornull, this field will be removed if it exists.
-
Constructor Details
-
VariantSetAssetCustomFieldActionBuilder
public VariantSetAssetCustomFieldActionBuilder()
-
-
Method Details
-
staged
If
true, only the staged Asset is updated. Iffalse, both the current and staged Asset is updated.- Parameters:
staged- value to be set- Returns:
- Builder
-
assetId
The
idof the Asset to update.- Parameters:
assetId- value to be set- Returns:
- Builder
-
assetKey
The
keyof the Asset to update.- 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
-
getStaged
If
true, only the staged Asset is updated. Iffalse, both the current and staged Asset is updated.- Returns:
- staged
-
getAssetId
The
idof the Asset to update.- Returns:
- assetId
-
getAssetKey
The
keyof the Asset to update.- 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 VariantSetAssetCustomFieldAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<VariantSetAssetCustomFieldAction>- Returns:
- VariantSetAssetCustomFieldAction
-
buildUnchecked
builds VariantSetAssetCustomFieldAction without checking for non-null required values- Returns:
- VariantSetAssetCustomFieldAction
-
of
factory method for an instance of VariantSetAssetCustomFieldActionBuilder- Returns:
- builder
-
of
create builder for VariantSetAssetCustomFieldAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-