![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.advisor.kotlin.inputs.GetRecommendationsPlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.advisor.kotlin.inputs
import com.pulumi.azure.advisor.inputs.GetRecommendationsPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getRecommendations.
* @property filterByCategories Specifies a list of categories in which the Advisor Recommendations will be listed. Possible values are `HighAvailability`, `Security`, `Performance`, `Cost` and `OperationalExcellence`.
* @property filterByResourceGroups Specifies a list of resource groups about which the Advisor Recommendations will be listed.
*/
public data class GetRecommendationsPlainArgs(
public val filterByCategories: List? = null,
public val filterByResourceGroups: List? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.advisor.inputs.GetRecommendationsPlainArgs =
com.pulumi.azure.advisor.inputs.GetRecommendationsPlainArgs.builder()
.filterByCategories(filterByCategories?.let({ args0 -> args0.map({ args0 -> args0 }) }))
.filterByResourceGroups(
filterByResourceGroups?.let({ args0 ->
args0.map({ args0 ->
args0
})
}),
).build()
}
/**
* Builder for [GetRecommendationsPlainArgs].
*/
@PulumiTagMarker
public class GetRecommendationsPlainArgsBuilder internal constructor() {
private var filterByCategories: List? = null
private var filterByResourceGroups: List? = null
/**
* @param value Specifies a list of categories in which the Advisor Recommendations will be listed. Possible values are `HighAvailability`, `Security`, `Performance`, `Cost` and `OperationalExcellence`.
*/
@JvmName("nqhgopbdicsmuexm")
public suspend fun filterByCategories(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.filterByCategories = mapped
}
/**
* @param values Specifies a list of categories in which the Advisor Recommendations will be listed. Possible values are `HighAvailability`, `Security`, `Performance`, `Cost` and `OperationalExcellence`.
*/
@JvmName("flqhvjsworepythw")
public suspend fun filterByCategories(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.filterByCategories = mapped
}
/**
* @param value Specifies a list of resource groups about which the Advisor Recommendations will be listed.
*/
@JvmName("pseomlesmthhubul")
public suspend fun filterByResourceGroups(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.filterByResourceGroups = mapped
}
/**
* @param values Specifies a list of resource groups about which the Advisor Recommendations will be listed.
*/
@JvmName("fwynqjeyocmyglsp")
public suspend fun filterByResourceGroups(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.filterByResourceGroups = mapped
}
internal fun build(): GetRecommendationsPlainArgs = GetRecommendationsPlainArgs(
filterByCategories = filterByCategories,
filterByResourceGroups = filterByResourceGroups,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy