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

com.pulumi.azure.netapp.kotlin.SnapshotPolicyArgs.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.netapp.kotlin

import com.pulumi.azure.netapp.SnapshotPolicyArgs.builder
import com.pulumi.azure.netapp.kotlin.inputs.SnapshotPolicyDailyScheduleArgs
import com.pulumi.azure.netapp.kotlin.inputs.SnapshotPolicyDailyScheduleArgsBuilder
import com.pulumi.azure.netapp.kotlin.inputs.SnapshotPolicyHourlyScheduleArgs
import com.pulumi.azure.netapp.kotlin.inputs.SnapshotPolicyHourlyScheduleArgsBuilder
import com.pulumi.azure.netapp.kotlin.inputs.SnapshotPolicyMonthlyScheduleArgs
import com.pulumi.azure.netapp.kotlin.inputs.SnapshotPolicyMonthlyScheduleArgsBuilder
import com.pulumi.azure.netapp.kotlin.inputs.SnapshotPolicyWeeklyScheduleArgs
import com.pulumi.azure.netapp.kotlin.inputs.SnapshotPolicyWeeklyScheduleArgsBuilder
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.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a NetApp Snapshot Policy.
 * ## NetApp Snapshot Policy Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "resource-group-01",
 *     location: "East US",
 * });
 * const exampleAccount = new azure.netapp.Account("example", {
 *     name: "netappaccount-01",
 *     location: example.location,
 *     resourceGroupName: example.name,
 * });
 * const exampleSnapshotPolicy = new azure.netapp.SnapshotPolicy("example", {
 *     name: "snapshotpolicy-01",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     accountName: exampleAccount.name,
 *     enabled: true,
 *     hourlySchedule: {
 *         snapshotsToKeep: 4,
 *         minute: 15,
 *     },
 *     dailySchedule: {
 *         snapshotsToKeep: 2,
 *         hour: 20,
 *         minute: 15,
 *     },
 *     weeklySchedule: {
 *         snapshotsToKeep: 1,
 *         daysOfWeeks: [
 *             "Monday",
 *             "Friday",
 *         ],
 *         hour: 23,
 *         minute: 0,
 *     },
 *     monthlySchedule: {
 *         snapshotsToKeep: 1,
 *         daysOfMonths: [
 *             1,
 *             15,
 *             20,
 *             30,
 *         ],
 *         hour: 5,
 *         minute: 45,
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="resource-group-01",
 *     location="East US")
 * example_account = azure.netapp.Account("example",
 *     name="netappaccount-01",
 *     location=example.location,
 *     resource_group_name=example.name)
 * example_snapshot_policy = azure.netapp.SnapshotPolicy("example",
 *     name="snapshotpolicy-01",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     account_name=example_account.name,
 *     enabled=True,
 *     hourly_schedule=azure.netapp.SnapshotPolicyHourlyScheduleArgs(
 *         snapshots_to_keep=4,
 *         minute=15,
 *     ),
 *     daily_schedule=azure.netapp.SnapshotPolicyDailyScheduleArgs(
 *         snapshots_to_keep=2,
 *         hour=20,
 *         minute=15,
 *     ),
 *     weekly_schedule=azure.netapp.SnapshotPolicyWeeklyScheduleArgs(
 *         snapshots_to_keep=1,
 *         days_of_weeks=[
 *             "Monday",
 *             "Friday",
 *         ],
 *         hour=23,
 *         minute=0,
 *     ),
 *     monthly_schedule=azure.netapp.SnapshotPolicyMonthlyScheduleArgs(
 *         snapshots_to_keep=1,
 *         days_of_months=[
 *             1,
 *             15,
 *             20,
 *             30,
 *         ],
 *         hour=5,
 *         minute=45,
 *     ))
 * ```
 * ```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 = "resource-group-01",
 *         Location = "East US",
 *     });
 *     var exampleAccount = new Azure.NetApp.Account("example", new()
 *     {
 *         Name = "netappaccount-01",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *     });
 *     var exampleSnapshotPolicy = new Azure.NetApp.SnapshotPolicy("example", new()
 *     {
 *         Name = "snapshotpolicy-01",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         AccountName = exampleAccount.Name,
 *         Enabled = true,
 *         HourlySchedule = new Azure.NetApp.Inputs.SnapshotPolicyHourlyScheduleArgs
 *         {
 *             SnapshotsToKeep = 4,
 *             Minute = 15,
 *         },
 *         DailySchedule = new Azure.NetApp.Inputs.SnapshotPolicyDailyScheduleArgs
 *         {
 *             SnapshotsToKeep = 2,
 *             Hour = 20,
 *             Minute = 15,
 *         },
 *         WeeklySchedule = new Azure.NetApp.Inputs.SnapshotPolicyWeeklyScheduleArgs
 *         {
 *             SnapshotsToKeep = 1,
 *             DaysOfWeeks = new[]
 *             {
 *                 "Monday",
 *                 "Friday",
 *             },
 *             Hour = 23,
 *             Minute = 0,
 *         },
 *         MonthlySchedule = new Azure.NetApp.Inputs.SnapshotPolicyMonthlyScheduleArgs
 *         {
 *             SnapshotsToKeep = 1,
 *             DaysOfMonths = new[]
 *             {
 *                 1,
 *                 15,
 *                 20,
 *                 30,
 *             },
 *             Hour = 5,
 *             Minute = 45,
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/netapp"
 * 	"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("resource-group-01"),
 * 			Location: pulumi.String("East US"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleAccount, err := netapp.NewAccount(ctx, "example", &netapp.AccountArgs{
 * 			Name:              pulumi.String("netappaccount-01"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = netapp.NewSnapshotPolicy(ctx, "example", &netapp.SnapshotPolicyArgs{
 * 			Name:              pulumi.String("snapshotpolicy-01"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			AccountName:       exampleAccount.Name,
 * 			Enabled:           pulumi.Bool(true),
 * 			HourlySchedule: &netapp.SnapshotPolicyHourlyScheduleArgs{
 * 				SnapshotsToKeep: pulumi.Int(4),
 * 				Minute:          pulumi.Int(15),
 * 			},
 * 			DailySchedule: &netapp.SnapshotPolicyDailyScheduleArgs{
 * 				SnapshotsToKeep: pulumi.Int(2),
 * 				Hour:            pulumi.Int(20),
 * 				Minute:          pulumi.Int(15),
 * 			},
 * 			WeeklySchedule: &netapp.SnapshotPolicyWeeklyScheduleArgs{
 * 				SnapshotsToKeep: pulumi.Int(1),
 * 				DaysOfWeeks: pulumi.StringArray{
 * 					pulumi.String("Monday"),
 * 					pulumi.String("Friday"),
 * 				},
 * 				Hour:   pulumi.Int(23),
 * 				Minute: pulumi.Int(0),
 * 			},
 * 			MonthlySchedule: &netapp.SnapshotPolicyMonthlyScheduleArgs{
 * 				SnapshotsToKeep: pulumi.Int(1),
 * 				DaysOfMonths: pulumi.IntArray{
 * 					pulumi.Int(1),
 * 					pulumi.Int(15),
 * 					pulumi.Int(20),
 * 					pulumi.Int(30),
 * 				},
 * 				Hour:   pulumi.Int(5),
 * 				Minute: pulumi.Int(45),
 * 			},
 * 		})
 * 		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.netapp.Account;
 * import com.pulumi.azure.netapp.AccountArgs;
 * import com.pulumi.azure.netapp.SnapshotPolicy;
 * import com.pulumi.azure.netapp.SnapshotPolicyArgs;
 * import com.pulumi.azure.netapp.inputs.SnapshotPolicyHourlyScheduleArgs;
 * import com.pulumi.azure.netapp.inputs.SnapshotPolicyDailyScheduleArgs;
 * import com.pulumi.azure.netapp.inputs.SnapshotPolicyWeeklyScheduleArgs;
 * import com.pulumi.azure.netapp.inputs.SnapshotPolicyMonthlyScheduleArgs;
 * 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("resource-group-01")
 *             .location("East US")
 *             .build());
 *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("netappaccount-01")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .build());
 *         var exampleSnapshotPolicy = new SnapshotPolicy("exampleSnapshotPolicy", SnapshotPolicyArgs.builder()
 *             .name("snapshotpolicy-01")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .accountName(exampleAccount.name())
 *             .enabled(true)
 *             .hourlySchedule(SnapshotPolicyHourlyScheduleArgs.builder()
 *                 .snapshotsToKeep(4)
 *                 .minute(15)
 *                 .build())
 *             .dailySchedule(SnapshotPolicyDailyScheduleArgs.builder()
 *                 .snapshotsToKeep(2)
 *                 .hour(20)
 *                 .minute(15)
 *                 .build())
 *             .weeklySchedule(SnapshotPolicyWeeklyScheduleArgs.builder()
 *                 .snapshotsToKeep(1)
 *                 .daysOfWeeks(
 *                     "Monday",
 *                     "Friday")
 *                 .hour(23)
 *                 .minute(0)
 *                 .build())
 *             .monthlySchedule(SnapshotPolicyMonthlyScheduleArgs.builder()
 *                 .snapshotsToKeep(1)
 *                 .daysOfMonths(
 *                     1,
 *                     15,
 *                     20,
 *                     30)
 *                 .hour(5)
 *                 .minute(45)
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: resource-group-01
 *       location: East US
 *   exampleAccount:
 *     type: azure:netapp:Account
 *     name: example
 *     properties:
 *       name: netappaccount-01
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *   exampleSnapshotPolicy:
 *     type: azure:netapp:SnapshotPolicy
 *     name: example
 *     properties:
 *       name: snapshotpolicy-01
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       accountName: ${exampleAccount.name}
 *       enabled: true
 *       hourlySchedule:
 *         snapshotsToKeep: 4
 *         minute: 15
 *       dailySchedule:
 *         snapshotsToKeep: 2
 *         hour: 20
 *         minute: 15
 *       weeklySchedule:
 *         snapshotsToKeep: 1
 *         daysOfWeeks:
 *           - Monday
 *           - Friday
 *         hour: 23
 *         minute: 0
 *       monthlySchedule:
 *         snapshotsToKeep: 1
 *         daysOfMonths:
 *           - 1
 *           - 15
 *           - 20
 *           - 30
 *         hour: 5
 *         minute: 45
 * ```
 * 
 * ## Import
 * NetApp Snapshot Policy can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:netapp/snapshotPolicy:SnapshotPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/snapshotPolicies/snapshotpolicy1
 * ```
 * @property accountName The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
 * @property dailySchedule Sets a daily snapshot schedule. A `daily_schedule` block as defined below.
 * @property enabled Defines that the NetApp Snapshot Policy is enabled or not.
 * @property hourlySchedule Sets an hourly snapshot schedule. A `hourly_schedule` block as defined below.
 * @property location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
 * @property monthlySchedule Sets a monthly snapshot schedule. A `monthly_schedule` block as defined below.
 * @property name The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
 * @property resourceGroupName The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
 * @property tags A mapping of tags to assign to the resource.
 * @property weeklySchedule Sets a weekly snapshot schedule. A `weekly_schedule` block as defined below.
 */
public data class SnapshotPolicyArgs(
    public val accountName: Output? = null,
    public val dailySchedule: Output? = null,
    public val enabled: Output? = null,
    public val hourlySchedule: Output? = null,
    public val location: Output? = null,
    public val monthlySchedule: Output? = null,
    public val name: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
    public val weeklySchedule: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.netapp.SnapshotPolicyArgs =
        com.pulumi.azure.netapp.SnapshotPolicyArgs.builder()
            .accountName(accountName?.applyValue({ args0 -> args0 }))
            .dailySchedule(dailySchedule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .hourlySchedule(hourlySchedule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .location(location?.applyValue({ args0 -> args0 }))
            .monthlySchedule(monthlySchedule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .weeklySchedule(
                weeklySchedule?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [SnapshotPolicyArgs].
 */
@PulumiTagMarker
public class SnapshotPolicyArgsBuilder internal constructor() {
    private var accountName: Output? = null

    private var dailySchedule: Output? = null

    private var enabled: Output? = null

    private var hourlySchedule: Output? = null

    private var location: Output? = null

    private var monthlySchedule: Output? = null

    private var name: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    private var weeklySchedule: Output? = null

    /**
     * @param value The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
     */
    @JvmName("pwhsvmsbgxjtgbqw")
    public suspend fun accountName(`value`: Output) {
        this.accountName = value
    }

    /**
     * @param value Sets a daily snapshot schedule. A `daily_schedule` block as defined below.
     */
    @JvmName("glyeekgmlhwwbgil")
    public suspend fun dailySchedule(`value`: Output) {
        this.dailySchedule = value
    }

    /**
     * @param value Defines that the NetApp Snapshot Policy is enabled or not.
     */
    @JvmName("mjllxqfjcbucugqm")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Sets an hourly snapshot schedule. A `hourly_schedule` block as defined below.
     */
    @JvmName("wprrlnlcjrjhppdv")
    public suspend fun hourlySchedule(`value`: Output) {
        this.hourlySchedule = value
    }

    /**
     * @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    @JvmName("jgipfotitmpktkyg")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Sets a monthly snapshot schedule. A `monthly_schedule` block as defined below.
     */
    @JvmName("mdqdlmkhpmwgoehw")
    public suspend fun monthlySchedule(`value`: Output) {
        this.monthlySchedule = value
    }

    /**
     * @param value The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
     */
    @JvmName("ehfobnqlblbbaviv")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
     */
    @JvmName("jojadmevxrylshyp")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("gtlxwdokepasgscb")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Sets a weekly snapshot schedule. A `weekly_schedule` block as defined below.
     */
    @JvmName("kqsvlvrrwivjbtbl")
    public suspend fun weeklySchedule(`value`: Output) {
        this.weeklySchedule = value
    }

    /**
     * @param value The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
     */
    @JvmName("wdsxrpwfdgmtwoap")
    public suspend fun accountName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountName = mapped
    }

    /**
     * @param value Sets a daily snapshot schedule. A `daily_schedule` block as defined below.
     */
    @JvmName("fwdcubxdknsvbnja")
    public suspend fun dailySchedule(`value`: SnapshotPolicyDailyScheduleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dailySchedule = mapped
    }

    /**
     * @param argument Sets a daily snapshot schedule. A `daily_schedule` block as defined below.
     */
    @JvmName("fwpacivryitmnaal")
    public suspend
    fun dailySchedule(argument: suspend SnapshotPolicyDailyScheduleArgsBuilder.() -> Unit) {
        val toBeMapped = SnapshotPolicyDailyScheduleArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.dailySchedule = mapped
    }

    /**
     * @param value Defines that the NetApp Snapshot Policy is enabled or not.
     */
    @JvmName("klcqbunhlbsjfsbi")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Sets an hourly snapshot schedule. A `hourly_schedule` block as defined below.
     */
    @JvmName("bgcxsrjfwowdwqpf")
    public suspend fun hourlySchedule(`value`: SnapshotPolicyHourlyScheduleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hourlySchedule = mapped
    }

    /**
     * @param argument Sets an hourly snapshot schedule. A `hourly_schedule` block as defined below.
     */
    @JvmName("hmlejqgkigrwmail")
    public suspend
    fun hourlySchedule(argument: suspend SnapshotPolicyHourlyScheduleArgsBuilder.() -> Unit) {
        val toBeMapped = SnapshotPolicyHourlyScheduleArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.hourlySchedule = mapped
    }

    /**
     * @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    @JvmName("qvlcoikgkjkqfecj")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Sets a monthly snapshot schedule. A `monthly_schedule` block as defined below.
     */
    @JvmName("aynvexhrvcflvjhl")
    public suspend fun monthlySchedule(`value`: SnapshotPolicyMonthlyScheduleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.monthlySchedule = mapped
    }

    /**
     * @param argument Sets a monthly snapshot schedule. A `monthly_schedule` block as defined below.
     */
    @JvmName("hhdwwbraxfovxevx")
    public suspend
    fun monthlySchedule(argument: suspend SnapshotPolicyMonthlyScheduleArgsBuilder.() -> Unit) {
        val toBeMapped = SnapshotPolicyMonthlyScheduleArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.monthlySchedule = mapped
    }

    /**
     * @param value The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created.
     */
    @JvmName("ulrecmnxhyujpdtd")
    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 NetApp Snapshot Policy should be created. Changing this forces a new resource to be created.
     */
    @JvmName("wpqsvwjnrpdwfdnv")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("jxokpwwdalaidxax")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags to assign to the resource.
     */
    @JvmName("qewltnuajljygnaf")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Sets a weekly snapshot schedule. A `weekly_schedule` block as defined below.
     */
    @JvmName("qxnnuteaubrwxwsl")
    public suspend fun weeklySchedule(`value`: SnapshotPolicyWeeklyScheduleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.weeklySchedule = mapped
    }

    /**
     * @param argument Sets a weekly snapshot schedule. A `weekly_schedule` block as defined below.
     */
    @JvmName("yscvllqejuvwoybr")
    public suspend
    fun weeklySchedule(argument: suspend SnapshotPolicyWeeklyScheduleArgsBuilder.() -> Unit) {
        val toBeMapped = SnapshotPolicyWeeklyScheduleArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.weeklySchedule = mapped
    }

    internal fun build(): SnapshotPolicyArgs = SnapshotPolicyArgs(
        accountName = accountName,
        dailySchedule = dailySchedule,
        enabled = enabled,
        hourlySchedule = hourlySchedule,
        location = location,
        monthlySchedule = monthlySchedule,
        name = name,
        resourceGroupName = resourceGroupName,
        tags = tags,
        weeklySchedule = weeklySchedule,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy