All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.media.kotlin.StreamingLocatorArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.media.kotlin

import com.pulumi.azure.media.StreamingLocatorArgs.builder
import com.pulumi.azure.media.kotlin.inputs.StreamingLocatorContentKeyArgs
import com.pulumi.azure.media.kotlin.inputs.StreamingLocatorContentKeyArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Manages a Media Streaming Locator.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "media-resources",
 *     location: "West Europe",
 * });
 * const exampleAccount = new azure.storage.Account("example", {
 *     name: "examplestoracc",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     accountTier: "Standard",
 *     accountReplicationType: "GRS",
 * });
 * const exampleServiceAccount = new azure.media.ServiceAccount("example", {
 *     name: "examplemediaacc",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     storageAccounts: [{
 *         id: exampleAccount.id,
 *         isPrimary: true,
 *     }],
 * });
 * const exampleAccountFilter = new azure.media.AccountFilter("example", {
 *     name: "Filter1",
 *     resourceGroupName: example.name,
 *     mediaServicesAccountName: exampleServiceAccount.name,
 * });
 * const exampleAsset = new azure.media.Asset("example", {
 *     name: "Asset1",
 *     resourceGroupName: example.name,
 *     mediaServicesAccountName: exampleServiceAccount.name,
 *     description: "Asset description",
 * });
 * const exampleStreamingLocator = new azure.media.StreamingLocator("example", {
 *     name: "example",
 *     resourceGroupName: example.name,
 *     mediaServicesAccountName: exampleServiceAccount.name,
 *     assetName: exampleAsset.name,
 *     streamingPolicyName: "Predefined_ClearStreamingOnly",
 *     filterNames: [exampleAccountFilter.name],
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="media-resources",
 *     location="West Europe")
 * example_account = azure.storage.Account("example",
 *     name="examplestoracc",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     account_tier="Standard",
 *     account_replication_type="GRS")
 * example_service_account = azure.media.ServiceAccount("example",
 *     name="examplemediaacc",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     storage_accounts=[{
 *         "id": example_account.id,
 *         "is_primary": True,
 *     }])
 * example_account_filter = azure.media.AccountFilter("example",
 *     name="Filter1",
 *     resource_group_name=example.name,
 *     media_services_account_name=example_service_account.name)
 * example_asset = azure.media.Asset("example",
 *     name="Asset1",
 *     resource_group_name=example.name,
 *     media_services_account_name=example_service_account.name,
 *     description="Asset description")
 * example_streaming_locator = azure.media.StreamingLocator("example",
 *     name="example",
 *     resource_group_name=example.name,
 *     media_services_account_name=example_service_account.name,
 *     asset_name=example_asset.name,
 *     streaming_policy_name="Predefined_ClearStreamingOnly",
 *     filter_names=[example_account_filter.name])
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "media-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleAccount = new Azure.Storage.Account("example", new()
 *     {
 *         Name = "examplestoracc",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         AccountTier = "Standard",
 *         AccountReplicationType = "GRS",
 *     });
 *     var exampleServiceAccount = new Azure.Media.ServiceAccount("example", new()
 *     {
 *         Name = "examplemediaacc",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         StorageAccounts = new[]
 *         {
 *             new Azure.Media.Inputs.ServiceAccountStorageAccountArgs
 *             {
 *                 Id = exampleAccount.Id,
 *                 IsPrimary = true,
 *             },
 *         },
 *     });
 *     var exampleAccountFilter = new Azure.Media.AccountFilter("example", new()
 *     {
 *         Name = "Filter1",
 *         ResourceGroupName = example.Name,
 *         MediaServicesAccountName = exampleServiceAccount.Name,
 *     });
 *     var exampleAsset = new Azure.Media.Asset("example", new()
 *     {
 *         Name = "Asset1",
 *         ResourceGroupName = example.Name,
 *         MediaServicesAccountName = exampleServiceAccount.Name,
 *         Description = "Asset description",
 *     });
 *     var exampleStreamingLocator = new Azure.Media.StreamingLocator("example", new()
 *     {
 *         Name = "example",
 *         ResourceGroupName = example.Name,
 *         MediaServicesAccountName = exampleServiceAccount.Name,
 *         AssetName = exampleAsset.Name,
 *         StreamingPolicyName = "Predefined_ClearStreamingOnly",
 *         FilterNames = new[]
 *         {
 *             exampleAccountFilter.Name,
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/media"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("media-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
 * 			Name:                   pulumi.String("examplestoracc"),
 * 			ResourceGroupName:      example.Name,
 * 			Location:               example.Location,
 * 			AccountTier:            pulumi.String("Standard"),
 * 			AccountReplicationType: pulumi.String("GRS"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleServiceAccount, err := media.NewServiceAccount(ctx, "example", &media.ServiceAccountArgs{
 * 			Name:              pulumi.String("examplemediaacc"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			StorageAccounts: media.ServiceAccountStorageAccountArray{
 * 				&media.ServiceAccountStorageAccountArgs{
 * 					Id:        exampleAccount.ID(),
 * 					IsPrimary: pulumi.Bool(true),
 * 				},
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleAccountFilter, err := media.NewAccountFilter(ctx, "example", &media.AccountFilterArgs{
 * 			Name:                     pulumi.String("Filter1"),
 * 			ResourceGroupName:        example.Name,
 * 			MediaServicesAccountName: exampleServiceAccount.Name,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleAsset, err := media.NewAsset(ctx, "example", &media.AssetArgs{
 * 			Name:                     pulumi.String("Asset1"),
 * 			ResourceGroupName:        example.Name,
 * 			MediaServicesAccountName: exampleServiceAccount.Name,
 * 			Description:              pulumi.String("Asset description"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = media.NewStreamingLocator(ctx, "example", &media.StreamingLocatorArgs{
 * 			Name:                     pulumi.String("example"),
 * 			ResourceGroupName:        example.Name,
 * 			MediaServicesAccountName: exampleServiceAccount.Name,
 * 			AssetName:                exampleAsset.Name,
 * 			StreamingPolicyName:      pulumi.String("Predefined_ClearStreamingOnly"),
 * 			FilterNames: pulumi.StringArray{
 * 				exampleAccountFilter.Name,
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.storage.Account;
 * import com.pulumi.azure.storage.AccountArgs;
 * import com.pulumi.azure.media.ServiceAccount;
 * import com.pulumi.azure.media.ServiceAccountArgs;
 * import com.pulumi.azure.media.inputs.ServiceAccountStorageAccountArgs;
 * import com.pulumi.azure.media.AccountFilter;
 * import com.pulumi.azure.media.AccountFilterArgs;
 * import com.pulumi.azure.media.Asset;
 * import com.pulumi.azure.media.AssetArgs;
 * import com.pulumi.azure.media.StreamingLocator;
 * import com.pulumi.azure.media.StreamingLocatorArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("media-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("examplestoracc")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .accountTier("Standard")
 *             .accountReplicationType("GRS")
 *             .build());
 *         var exampleServiceAccount = new ServiceAccount("exampleServiceAccount", ServiceAccountArgs.builder()
 *             .name("examplemediaacc")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .storageAccounts(ServiceAccountStorageAccountArgs.builder()
 *                 .id(exampleAccount.id())
 *                 .isPrimary(true)
 *                 .build())
 *             .build());
 *         var exampleAccountFilter = new AccountFilter("exampleAccountFilter", AccountFilterArgs.builder()
 *             .name("Filter1")
 *             .resourceGroupName(example.name())
 *             .mediaServicesAccountName(exampleServiceAccount.name())
 *             .build());
 *         var exampleAsset = new Asset("exampleAsset", AssetArgs.builder()
 *             .name("Asset1")
 *             .resourceGroupName(example.name())
 *             .mediaServicesAccountName(exampleServiceAccount.name())
 *             .description("Asset description")
 *             .build());
 *         var exampleStreamingLocator = new StreamingLocator("exampleStreamingLocator", StreamingLocatorArgs.builder()
 *             .name("example")
 *             .resourceGroupName(example.name())
 *             .mediaServicesAccountName(exampleServiceAccount.name())
 *             .assetName(exampleAsset.name())
 *             .streamingPolicyName("Predefined_ClearStreamingOnly")
 *             .filterNames(exampleAccountFilter.name())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: media-resources
 *       location: West Europe
 *   exampleAccount:
 *     type: azure:storage:Account
 *     name: example
 *     properties:
 *       name: examplestoracc
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       accountTier: Standard
 *       accountReplicationType: GRS
 *   exampleServiceAccount:
 *     type: azure:media:ServiceAccount
 *     name: example
 *     properties:
 *       name: examplemediaacc
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       storageAccounts:
 *         - id: ${exampleAccount.id}
 *           isPrimary: true
 *   exampleAccountFilter:
 *     type: azure:media:AccountFilter
 *     name: example
 *     properties:
 *       name: Filter1
 *       resourceGroupName: ${example.name}
 *       mediaServicesAccountName: ${exampleServiceAccount.name}
 *   exampleAsset:
 *     type: azure:media:Asset
 *     name: example
 *     properties:
 *       name: Asset1
 *       resourceGroupName: ${example.name}
 *       mediaServicesAccountName: ${exampleServiceAccount.name}
 *       description: Asset description
 *   exampleStreamingLocator:
 *     type: azure:media:StreamingLocator
 *     name: example
 *     properties:
 *       name: example
 *       resourceGroupName: ${example.name}
 *       mediaServicesAccountName: ${exampleServiceAccount.name}
 *       assetName: ${exampleAsset.name}
 *       streamingPolicyName: Predefined_ClearStreamingOnly
 *       filterNames:
 *         - ${exampleAccountFilter.name}
 * ```
 * 
 * ## Import
 * Streaming Locators can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:media/streamingLocator:StreamingLocator example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Media/mediaServices/account1/streamingLocators/locator1
 * ```
 * @property alternativeMediaId Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
 * @property assetName Asset Name. Changing this forces a new Streaming Locator to be created.
 * @property contentKeys One or more `content_key` blocks as defined below. Changing this forces a new Streaming Locator to be created.
 * @property defaultContentKeyPolicyName Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
 * @property endTime The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
 * @property filterNames A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
 * @property mediaServicesAccountName The Media Services account name. Changing this forces a new Streaming Locator to be created.
 * @property name The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
 * @property resourceGroupName The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
 * @property startTime The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
 * @property streamingLocatorId The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
 * @property streamingPolicyName Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: `Predefined_DownloadOnly`, `Predefined_ClearStreamingOnly`, `Predefined_DownloadAndClearStreaming`, `Predefined_ClearKey`, `Predefined_MultiDrmCencStreaming` and `Predefined_MultiDrmStreaming`. Changing this forces a new Streaming Locator to be created.
 */
public data class StreamingLocatorArgs(
    public val alternativeMediaId: Output? = null,
    public val assetName: Output? = null,
    public val contentKeys: Output>? = null,
    public val defaultContentKeyPolicyName: Output? = null,
    public val endTime: Output? = null,
    public val filterNames: Output>? = null,
    public val mediaServicesAccountName: Output? = null,
    public val name: Output? = null,
    public val resourceGroupName: Output? = null,
    public val startTime: Output? = null,
    public val streamingLocatorId: Output? = null,
    public val streamingPolicyName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.media.StreamingLocatorArgs =
        com.pulumi.azure.media.StreamingLocatorArgs.builder()
            .alternativeMediaId(alternativeMediaId?.applyValue({ args0 -> args0 }))
            .assetName(assetName?.applyValue({ args0 -> args0 }))
            .contentKeys(
                contentKeys?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .defaultContentKeyPolicyName(defaultContentKeyPolicyName?.applyValue({ args0 -> args0 }))
            .endTime(endTime?.applyValue({ args0 -> args0 }))
            .filterNames(filterNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .mediaServicesAccountName(mediaServicesAccountName?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .startTime(startTime?.applyValue({ args0 -> args0 }))
            .streamingLocatorId(streamingLocatorId?.applyValue({ args0 -> args0 }))
            .streamingPolicyName(streamingPolicyName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [StreamingLocatorArgs].
 */
@PulumiTagMarker
public class StreamingLocatorArgsBuilder internal constructor() {
    private var alternativeMediaId: Output? = null

    private var assetName: Output? = null

    private var contentKeys: Output>? = null

    private var defaultContentKeyPolicyName: Output? = null

    private var endTime: Output? = null

    private var filterNames: Output>? = null

    private var mediaServicesAccountName: Output? = null

    private var name: Output? = null

    private var resourceGroupName: Output? = null

    private var startTime: Output? = null

    private var streamingLocatorId: Output? = null

    private var streamingPolicyName: Output? = null

    /**
     * @param value Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("hhevngfhyxefantm")
    public suspend fun alternativeMediaId(`value`: Output) {
        this.alternativeMediaId = value
    }

    /**
     * @param value Asset Name. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("tlcxkmpkmhffmdyu")
    public suspend fun assetName(`value`: Output) {
        this.assetName = value
    }

    /**
     * @param value One or more `content_key` blocks as defined below. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("fpyngkvsqioarwch")
    public suspend fun contentKeys(`value`: Output>) {
        this.contentKeys = value
    }

    @JvmName("wwjauxobyvdkdree")
    public suspend fun contentKeys(vararg values: Output) {
        this.contentKeys = Output.all(values.asList())
    }

    /**
     * @param values One or more `content_key` blocks as defined below. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("jkdkdgskcnqosspc")
    public suspend fun contentKeys(values: List>) {
        this.contentKeys = Output.all(values)
    }

    /**
     * @param value Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("oubkwpakolvpegve")
    public suspend fun defaultContentKeyPolicyName(`value`: Output) {
        this.defaultContentKeyPolicyName = value
    }

    /**
     * @param value The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("bovpfehkqtihdewj")
    public suspend fun endTime(`value`: Output) {
        this.endTime = value
    }

    /**
     * @param value A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("asfhuligqcksrybd")
    public suspend fun filterNames(`value`: Output>) {
        this.filterNames = value
    }

    @JvmName("cyrtnbjvctlimtpv")
    public suspend fun filterNames(vararg values: Output) {
        this.filterNames = Output.all(values.asList())
    }

    /**
     * @param values A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("drjjjeaevdtcrmdc")
    public suspend fun filterNames(values: List>) {
        this.filterNames = Output.all(values)
    }

    /**
     * @param value The Media Services account name. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("flcehatijlqikqwd")
    public suspend fun mediaServicesAccountName(`value`: Output) {
        this.mediaServicesAccountName = value
    }

    /**
     * @param value The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("ndckxguwebpkppik")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("fdmjwsbshclqdtvf")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("barchvdltkohspqp")
    public suspend fun startTime(`value`: Output) {
        this.startTime = value
    }

    /**
     * @param value The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("njmnvutpdkqpljdx")
    public suspend fun streamingLocatorId(`value`: Output) {
        this.streamingLocatorId = value
    }

    /**
     * @param value Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: `Predefined_DownloadOnly`, `Predefined_ClearStreamingOnly`, `Predefined_DownloadAndClearStreaming`, `Predefined_ClearKey`, `Predefined_MultiDrmCencStreaming` and `Predefined_MultiDrmStreaming`. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("usjfjlpbllmhnbxx")
    public suspend fun streamingPolicyName(`value`: Output) {
        this.streamingPolicyName = value
    }

    /**
     * @param value Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("itinbjhjerrieaso")
    public suspend fun alternativeMediaId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.alternativeMediaId = mapped
    }

    /**
     * @param value Asset Name. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("nscuuapdskpilmyy")
    public suspend fun assetName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.assetName = mapped
    }

    /**
     * @param value One or more `content_key` blocks as defined below. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("hxqsmfojfrcdjypt")
    public suspend fun contentKeys(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contentKeys = mapped
    }

    /**
     * @param argument One or more `content_key` blocks as defined below. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("rmlbbdyqlhqfxfyx")
    public suspend fun contentKeys(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            StreamingLocatorContentKeyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.contentKeys = mapped
    }

    /**
     * @param argument One or more `content_key` blocks as defined below. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("uiqcxruvmguuwsam")
    public suspend fun contentKeys(vararg argument: suspend StreamingLocatorContentKeyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            StreamingLocatorContentKeyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.contentKeys = mapped
    }

    /**
     * @param argument One or more `content_key` blocks as defined below. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("bruyqtmedxlahxki")
    public suspend fun contentKeys(argument: suspend StreamingLocatorContentKeyArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            StreamingLocatorContentKeyArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.contentKeys = mapped
    }

    /**
     * @param values One or more `content_key` blocks as defined below. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("exuhdkcfdtgvkptq")
    public suspend fun contentKeys(vararg values: StreamingLocatorContentKeyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.contentKeys = mapped
    }

    /**
     * @param value Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("oqlygwdpjcscuulg")
    public suspend fun defaultContentKeyPolicyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultContentKeyPolicyName = mapped
    }

    /**
     * @param value The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("jplxswesffvtyjvt")
    public suspend fun endTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endTime = mapped
    }

    /**
     * @param value A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("xjptlcmwvpbijnsw")
    public suspend fun filterNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filterNames = mapped
    }

    /**
     * @param values A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("xpxerqkkwdrmlbvb")
    public suspend fun filterNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.filterNames = mapped
    }

    /**
     * @param value The Media Services account name. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("rupevdtmxspurkys")
    public suspend fun mediaServicesAccountName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mediaServicesAccountName = mapped
    }

    /**
     * @param value The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("woamlybqntxdgyym")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("fnwsadkplepulttg")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("nxjlndgybkmqstur")
    public suspend fun startTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.startTime = mapped
    }

    /**
     * @param value The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("ytrgniwtkfmbqxnd")
    public suspend fun streamingLocatorId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.streamingLocatorId = mapped
    }

    /**
     * @param value Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: `Predefined_DownloadOnly`, `Predefined_ClearStreamingOnly`, `Predefined_DownloadAndClearStreaming`, `Predefined_ClearKey`, `Predefined_MultiDrmCencStreaming` and `Predefined_MultiDrmStreaming`. Changing this forces a new Streaming Locator to be created.
     */
    @JvmName("ffggrmbqspidayop")
    public suspend fun streamingPolicyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.streamingPolicyName = mapped
    }

    internal fun build(): StreamingLocatorArgs = StreamingLocatorArgs(
        alternativeMediaId = alternativeMediaId,
        assetName = assetName,
        contentKeys = contentKeys,
        defaultContentKeyPolicyName = defaultContentKeyPolicyName,
        endTime = endTime,
        filterNames = filterNames,
        mediaServicesAccountName = mediaServicesAccountName,
        name = name,
        resourceGroupName = resourceGroupName,
        startTime = startTime,
        streamingLocatorId = streamingLocatorId,
        streamingPolicyName = streamingPolicyName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy