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

com.pulumi.googlenative.healthcare.v1.kotlin.enums.ConsentState.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.healthcare.v1.kotlin.enums

import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress

/**
 * Required. Indicates the current state of this Consent.
 */
public enum class ConsentState(
    public val javaValue: com.pulumi.googlenative.healthcare.v1.enums.ConsentState,
) : ConvertibleToJava {
    /**
     * No state specified. Treated as ACTIVE only at the time of resource creation.
     */
    StateUnspecified(com.pulumi.googlenative.healthcare.v1.enums.ConsentState.StateUnspecified),

    /**
     * The Consent is active and is considered when evaluating a user's consent on resources.
     */
    Active(com.pulumi.googlenative.healthcare.v1.enums.ConsentState.Active),

    /**
     * The archived state is currently not being used.
     */
    Archived(com.pulumi.googlenative.healthcare.v1.enums.ConsentState.Archived),

    /**
     * A revoked Consent is not considered when evaluating a user's consent on resources.
     */
    Revoked(com.pulumi.googlenative.healthcare.v1.enums.ConsentState.Revoked),

    /**
     * A draft Consent is not considered when evaluating a user's consent on resources unless explicitly specified.
     */
    Draft(com.pulumi.googlenative.healthcare.v1.enums.ConsentState.Draft),

    /**
     * When a draft Consent is rejected by a user, it is set to a rejected state. A rejected Consent is not considered when evaluating a user's consent on resources.
     */
    Rejected(com.pulumi.googlenative.healthcare.v1.enums.ConsentState.Rejected),
    ;

    override fun toJava(): com.pulumi.googlenative.healthcare.v1.enums.ConsentState = javaValue

    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.healthcare.v1.enums.ConsentState): ConsentState = ConsentState.values().first { it.javaValue == javaType }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy