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

com.pulumi.azure.cdn.kotlin.outputs.FrontdoorRuleActionsResponseHeaderAction.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.cdn.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property headerAction The action to be taken on the specified `header_name`. Possible values include `Append`, `Overwrite` or `Delete`.
 * > **NOTE:** `Append` causes the specified header to be added to the request with the specified value. If the header is already present, the value is appended to the existing header value using string concatenation. No delimiters are added. `Overwrite` causes specified header to be added to the request with the specified value. If the header is already present, the specified value overwrites the existing value. `Delete` causes the header to be deleted from the request.
 * @property headerName The name of the header to modify.
 * @property value The value to append or overwrite.
 * ->**NOTE:** `value` is required if the `header_action` is set to `Append` or `Overwrite`.
 */
public data class FrontdoorRuleActionsResponseHeaderAction(
    public val headerAction: String,
    public val headerName: String,
    public val `value`: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.cdn.outputs.FrontdoorRuleActionsResponseHeaderAction): FrontdoorRuleActionsResponseHeaderAction = FrontdoorRuleActionsResponseHeaderAction(
            headerAction = javaType.headerAction(),
            headerName = javaType.headerName(),
            `value` = javaType.`value`().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy