contentDelivery

Sets the CDN configuration for the Builder instance.

Return

The Builder instance with the configured CDN, allowing for method chaining.

Parameters

contentDelivery

The CDN configuration to be applied. This parameter defines the content delivery network properties such as URL and formatting strategy used in the configuration.


Configures the CDN settings for the builder.

This method applies the provided configuration to the CDN by using the CDN.Builder class. It allows the caller to set various properties for the CDN, such as URL or formatter, and then builds the resulting CDN instance. The method enhances the builder's setup by enabling configuration of CDN-related attributes.

Parameters

builder

A lambda with a receiver of type CDN.Builder that defines the configuration for the CDN instance. Inside this lambda, you can call the available methods on CDN.Builder to set up the desired CDN properties.


Configures the content delivery settings for the Builder instance.

Sets up a Content Delivery Network (CDN) by providing a URL and a configuration lambda. The lambda uses a CDN.Builder receiver to apply various CDN settings, which are then built and assigned to the builder.

Parameters

url

The URL for the Content Delivery Network to be used.

builder

A lambda with a receiver of type CDN.Builder to define the configuration for the CDN. Inside this lambda, you can customize various CDN properties.


Represents the content delivery network (CDN) configuration associated with the builder.

This variable holds a CDN instance that defines the CDN URL and formatting strategy for handling translations or related content. The configuration can be directly assigned or built using a fluent API provided by the CDN.Builder class.

By default, this variable is initialized to a new instance of CDN with default values. It can be customized using the cdn(cdn: CDN) or cdn(builder: CDN.Builder.() -> Unit) methods.

The value of this property is incorporated into the resulting configuration when the build() method is invoked.