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

com.pulumi.azure.monitoring.kotlin.outputs.AutoscaleSettingProfile.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.monitoring.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property capacity A `capacity` block as defined below.
 * @property fixedDate A `fixed_date` block as defined below. This cannot be specified if a `recurrence` block is specified.
 * @property name Specifies the name of the profile.
 * @property recurrence A `recurrence` block as defined below. This cannot be specified if a `fixed_date` block is specified.
 * @property rules One or more (up to 10) `rule` blocks as defined below.
 */
public data class AutoscaleSettingProfile(
    public val capacity: AutoscaleSettingProfileCapacity,
    public val fixedDate: AutoscaleSettingProfileFixedDate? = null,
    public val name: String,
    public val recurrence: AutoscaleSettingProfileRecurrence? = null,
    public val rules: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.monitoring.outputs.AutoscaleSettingProfile):
            AutoscaleSettingProfile = AutoscaleSettingProfile(
            capacity = javaType.capacity().let({ args0 ->
                com.pulumi.azure.monitoring.kotlin.outputs.AutoscaleSettingProfileCapacity.Companion.toKotlin(args0)
            }),
            fixedDate = javaType.fixedDate().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.AutoscaleSettingProfileFixedDate.Companion.toKotlin(args0)
                })
            }).orElse(null),
            name = javaType.name(),
            recurrence = javaType.recurrence().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.AutoscaleSettingProfileRecurrence.Companion.toKotlin(args0)
                })
            }).orElse(null),
            rules = javaType.rules().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.AutoscaleSettingProfileRule.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy