commonMain.aws.sdk.kotlin.services.elasticsearchservice.model.SamlOptionsOutput.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearchservice Show documentation
Show all versions of elasticsearchservice Show documentation
Amazon Elasticsearch Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elasticsearchservice.model
/**
* Describes the SAML application configured for the domain.
*/
public class SamlOptionsOutput private constructor(builder: Builder) {
/**
* True if SAML is enabled.
*/
public val enabled: kotlin.Boolean? = builder.enabled
/**
* Describes the SAML Identity Provider's information.
*/
public val idp: aws.sdk.kotlin.services.elasticsearchservice.model.SamlIdp? = builder.idp
/**
* The key used for matching the SAML Roles attribute.
*/
public val rolesKey: kotlin.String? = builder.rolesKey
/**
* The duration, in minutes, after which a user session becomes inactive.
*/
public val sessionTimeoutMinutes: kotlin.Int? = builder.sessionTimeoutMinutes
/**
* The key used for matching the SAML Subject attribute.
*/
public val subjectKey: kotlin.String? = builder.subjectKey
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticsearchservice.model.SamlOptionsOutput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SamlOptionsOutput(")
append("enabled=$enabled,")
append("idp=$idp,")
append("rolesKey=$rolesKey,")
append("sessionTimeoutMinutes=$sessionTimeoutMinutes,")
append("subjectKey=$subjectKey")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = enabled?.hashCode() ?: 0
result = 31 * result + (idp?.hashCode() ?: 0)
result = 31 * result + (rolesKey?.hashCode() ?: 0)
result = 31 * result + (sessionTimeoutMinutes ?: 0)
result = 31 * result + (subjectKey?.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 SamlOptionsOutput
if (enabled != other.enabled) return false
if (idp != other.idp) return false
if (rolesKey != other.rolesKey) return false
if (sessionTimeoutMinutes != other.sessionTimeoutMinutes) return false
if (subjectKey != other.subjectKey) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticsearchservice.model.SamlOptionsOutput = Builder(this).apply(block).build()
public class Builder {
/**
* True if SAML is enabled.
*/
public var enabled: kotlin.Boolean? = null
/**
* Describes the SAML Identity Provider's information.
*/
public var idp: aws.sdk.kotlin.services.elasticsearchservice.model.SamlIdp? = null
/**
* The key used for matching the SAML Roles attribute.
*/
public var rolesKey: kotlin.String? = null
/**
* The duration, in minutes, after which a user session becomes inactive.
*/
public var sessionTimeoutMinutes: kotlin.Int? = null
/**
* The key used for matching the SAML Subject attribute.
*/
public var subjectKey: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticsearchservice.model.SamlOptionsOutput) : this() {
this.enabled = x.enabled
this.idp = x.idp
this.rolesKey = x.rolesKey
this.sessionTimeoutMinutes = x.sessionTimeoutMinutes
this.subjectKey = x.subjectKey
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticsearchservice.model.SamlOptionsOutput = SamlOptionsOutput(this)
/**
* construct an [aws.sdk.kotlin.services.elasticsearchservice.model.SamlIdp] inside the given [block]
*/
public fun idp(block: aws.sdk.kotlin.services.elasticsearchservice.model.SamlIdp.Builder.() -> kotlin.Unit) {
this.idp = aws.sdk.kotlin.services.elasticsearchservice.model.SamlIdp.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy