
commonMain.aws.sdk.kotlin.services.iam.model.CreateSamlProviderResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iam.model
/**
* Contains the response to a successful CreateSAMLProvider request.
*/
public class CreateSamlProviderResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the new SAML provider resource in IAM.
*/
public val samlProviderArn: kotlin.String? = builder.samlProviderArn
/**
* A list of tags that are attached to the new IAM SAML provider. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the *IAM User Guide*.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iam.model.CreateSamlProviderResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateSamlProviderResponse(")
append("samlProviderArn=$samlProviderArn,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = samlProviderArn?.hashCode() ?: 0
result = 31 * result + (tags?.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 CreateSamlProviderResponse
if (samlProviderArn != other.samlProviderArn) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iam.model.CreateSamlProviderResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Resource Name (ARN) of the new SAML provider resource in IAM.
*/
public var samlProviderArn: kotlin.String? = null
/**
* A list of tags that are attached to the new IAM SAML provider. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the *IAM User Guide*.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iam.model.CreateSamlProviderResponse) : this() {
this.samlProviderArn = x.samlProviderArn
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iam.model.CreateSamlProviderResponse = CreateSamlProviderResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy