
commonMain.aws.sdk.kotlin.services.opensearch.model.SamlIdp.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
/**
* The SAML identity povider information.
*/
public class SamlIdp private constructor(builder: Builder) {
/**
* The unique entity ID of the application in the SAML identity provider.
*/
public val entityId: kotlin.String = requireNotNull(builder.entityId) { "A non-null value must be provided for entityId" }
/**
* The metadata of the SAML application, in XML format.
*/
public val metadataContent: kotlin.String = requireNotNull(builder.metadataContent) { "A non-null value must be provided for metadataContent" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.SamlIdp = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SamlIdp(")
append("entityId=$entityId,")
append("metadataContent=$metadataContent")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = entityId.hashCode()
result = 31 * result + (metadataContent.hashCode())
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 SamlIdp
if (entityId != other.entityId) return false
if (metadataContent != other.metadataContent) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.SamlIdp = Builder(this).apply(block).build()
public class Builder {
/**
* The unique entity ID of the application in the SAML identity provider.
*/
public var entityId: kotlin.String? = null
/**
* The metadata of the SAML application, in XML format.
*/
public var metadataContent: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.SamlIdp) : this() {
this.entityId = x.entityId
this.metadataContent = x.metadataContent
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.SamlIdp = SamlIdp(this)
internal fun correctErrors(): Builder {
if (entityId == null) entityId = ""
if (metadataContent == null) metadataContent = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy