Class AssetBuilder

java.lang.Object
com.commercetools.api.models.common.AssetBuilder
All Implemented Interfaces:
Builder<Asset>

public class AssetBuilder extends Object implements Builder<Asset>
AssetBuilder
Example to create an instance using the builder pattern

     Asset asset = Asset.builder()
             .id("{id}")
             .plusSources(sourcesBuilder -> sourcesBuilder)
             .name(nameBuilder -> nameBuilder)
             .build()
 
  • Constructor Details

    • AssetBuilder

      public AssetBuilder()
  • Method Details