
commonMain.aws.sdk.kotlin.services.grafana.model.AssertionAttributes.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.grafana.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A structure that defines which attributes in the IdP assertion are to be used to define information about the users authenticated by the IdP to use the workspace.
*/
public class AssertionAttributes private constructor(builder: Builder) {
/**
* The name of the attribute within the SAML assertion to use as the email names for SAML users.
*/
public val email: kotlin.String? = builder.email
/**
* The name of the attribute within the SAML assertion to use as the user full "friendly" names for user groups.
*/
public val groups: kotlin.String? = builder.groups
/**
* The name of the attribute within the SAML assertion to use as the login names for SAML users.
*/
public val login: kotlin.String? = builder.login
/**
* The name of the attribute within the SAML assertion to use as the user full "friendly" names for SAML users.
*/
public val name: kotlin.String? = builder.name
/**
* The name of the attribute within the SAML assertion to use as the user full "friendly" names for the users' organizations.
*/
public val org: kotlin.String? = builder.org
/**
* The name of the attribute within the SAML assertion to use as the user roles.
*/
public val role: kotlin.String? = builder.role
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.grafana.model.AssertionAttributes = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AssertionAttributes(")
append("email=$email,")
append("groups=$groups,")
append("login=$login,")
append("name=$name,")
append("org=$org,")
append("role=$role")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = email?.hashCode() ?: 0
result = 31 * result + (groups?.hashCode() ?: 0)
result = 31 * result + (login?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (org?.hashCode() ?: 0)
result = 31 * result + (role?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as AssertionAttributes
if (email != other.email) return false
if (groups != other.groups) return false
if (login != other.login) return false
if (name != other.name) return false
if (org != other.org) return false
if (role != other.role) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.grafana.model.AssertionAttributes = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the attribute within the SAML assertion to use as the email names for SAML users.
*/
public var email: kotlin.String? = null
/**
* The name of the attribute within the SAML assertion to use as the user full "friendly" names for user groups.
*/
public var groups: kotlin.String? = null
/**
* The name of the attribute within the SAML assertion to use as the login names for SAML users.
*/
public var login: kotlin.String? = null
/**
* The name of the attribute within the SAML assertion to use as the user full "friendly" names for SAML users.
*/
public var name: kotlin.String? = null
/**
* The name of the attribute within the SAML assertion to use as the user full "friendly" names for the users' organizations.
*/
public var org: kotlin.String? = null
/**
* The name of the attribute within the SAML assertion to use as the user roles.
*/
public var role: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.grafana.model.AssertionAttributes) : this() {
this.email = x.email
this.groups = x.groups
this.login = x.login
this.name = x.name
this.org = x.org
this.role = x.role
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.grafana.model.AssertionAttributes = AssertionAttributes(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy