![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.insights.kotlin.outputs.LogSettingsResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.insights.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
* Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log.
* @property category Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
* @property categoryGroup Name of a Diagnostic Log category group for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
* @property enabled a value indicating whether this log is enabled.
* @property retentionPolicy the retention policy for this log.
*/
public data class LogSettingsResponse(
public val category: String? = null,
public val categoryGroup: String? = null,
public val enabled: Boolean,
public val retentionPolicy: RetentionPolicyResponse? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.insights.outputs.LogSettingsResponse): LogSettingsResponse = LogSettingsResponse(
category = javaType.category().map({ args0 -> args0 }).orElse(null),
categoryGroup = javaType.categoryGroup().map({ args0 -> args0 }).orElse(null),
enabled = javaType.enabled(),
retentionPolicy = javaType.retentionPolicy().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.insights.kotlin.outputs.RetentionPolicyResponse.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy