commonMain.aws.sdk.kotlin.services.ssooidc.model.StartDeviceAuthorizationRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ssooidc-jvm Show documentation
Show all versions of ssooidc-jvm Show documentation
The AWS SDK for Kotlin client for SSO OIDC
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssooidc.model
import aws.smithy.kotlin.runtime.SdkDsl
public class StartDeviceAuthorizationRequest private constructor(builder: Builder) {
/**
* The unique identifier string for the client that is registered with IAM Identity Center. This value should come from the persisted result of the RegisterClient API operation.
*/
public val clientId: kotlin.String? = builder.clientId
/**
* A secret string that is generated for the client. This value should come from the persisted result of the RegisterClient API operation.
*/
public val clientSecret: kotlin.String? = builder.clientSecret
/**
* The URL for the Amazon Web Services access portal. For more information, see [Using the Amazon Web Services access portal](https://docs.aws.amazon.com/singlesignon/latest/userguide/using-the-portal.html) in the *IAM Identity Center User Guide*.
*/
public val startUrl: kotlin.String? = builder.startUrl
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssooidc.model.StartDeviceAuthorizationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartDeviceAuthorizationRequest(")
append("clientId=$clientId,")
append("clientSecret=*** Sensitive Data Redacted ***,")
append("startUrl=$startUrl")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientId?.hashCode() ?: 0
result = 31 * result + (clientSecret?.hashCode() ?: 0)
result = 31 * result + (startUrl?.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 StartDeviceAuthorizationRequest
if (clientId != other.clientId) return false
if (clientSecret != other.clientSecret) return false
if (startUrl != other.startUrl) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssooidc.model.StartDeviceAuthorizationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique identifier string for the client that is registered with IAM Identity Center. This value should come from the persisted result of the RegisterClient API operation.
*/
public var clientId: kotlin.String? = null
/**
* A secret string that is generated for the client. This value should come from the persisted result of the RegisterClient API operation.
*/
public var clientSecret: kotlin.String? = null
/**
* The URL for the Amazon Web Services access portal. For more information, see [Using the Amazon Web Services access portal](https://docs.aws.amazon.com/singlesignon/latest/userguide/using-the-portal.html) in the *IAM Identity Center User Guide*.
*/
public var startUrl: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssooidc.model.StartDeviceAuthorizationRequest) : this() {
this.clientId = x.clientId
this.clientSecret = x.clientSecret
this.startUrl = x.startUrl
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssooidc.model.StartDeviceAuthorizationRequest = StartDeviceAuthorizationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}