Class VariantSetAssetCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<VariantSetAssetCustomTypeAction>
Example to create an instance using the builder pattern
VariantSetAssetCustomTypeAction variantSetAssetCustomTypeAction = VariantSetAssetCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheidof the Asset to update.Thekeyof the Asset to update.build()builds VariantSetAssetCustomTypeAction with checking for non-null required valuesbuilds VariantSetAssetCustomTypeAction without checking for non-null required valuesfields(FieldContainer fields) Sets the Custom Fields fields for the Asset.Sets the Custom Fields fields for the Asset.Theidof the Asset to update.Thekeyof the Asset to update.Sets the Custom Fields fields for the Asset.Iftrue, only the staged Asset is updated.getType()Defines the Type that extends the Asset with Custom Fields.of()factory method for an instance of VariantSetAssetCustomTypeActionBuilderof(VariantSetAssetCustomTypeAction template) create builder for VariantSetAssetCustomTypeAction instanceIftrue, only the staged Asset is updated.type(TypeResourceIdentifier type) Defines the Type that extends the Asset with Custom Fields.Defines the Type that extends the Asset with Custom Fields.Sets the Custom Fields fields for the Asset.Defines the Type that extends the Asset with Custom Fields.
-
Constructor Details
-
VariantSetAssetCustomTypeActionBuilder
public VariantSetAssetCustomTypeActionBuilder()
-
-
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
-
type
public VariantSetAssetCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the Asset with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Asset.
- Parameters:
builder- function to build the type value- Returns:
- Builder
-
withType
public VariantSetAssetCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the Asset with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Asset.
- Parameters:
builder- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the Asset with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Asset.
- Parameters:
type- value to be set- Returns:
- Builder
-
fields
public VariantSetAssetCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the Asset.
- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
withFields
public VariantSetAssetCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the Asset.
- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the Asset.
- Parameters:
fields- 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
-
getType
Defines the Type that extends the Asset with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Asset.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Asset.
- Returns:
- fields
-
build
builds VariantSetAssetCustomTypeAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<VariantSetAssetCustomTypeAction>- Returns:
- VariantSetAssetCustomTypeAction
-
buildUnchecked
builds VariantSetAssetCustomTypeAction without checking for non-null required values- Returns:
- VariantSetAssetCustomTypeAction
-
of
factory method for an instance of VariantSetAssetCustomTypeActionBuilder- Returns:
- builder
-
of
create builder for VariantSetAssetCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-