commonMain.aws.sdk.kotlin.services.appfabric.model.ConnectAppAuthorizationRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appfabric-jvm Show documentation
Show all versions of appfabric-jvm Show documentation
The AWS SDK for Kotlin client for AppFabric
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appfabric.model
import aws.smithy.kotlin.runtime.SdkDsl
public class ConnectAppAuthorizationRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for the request.
*/
public val appAuthorizationIdentifier: kotlin.String? = builder.appAuthorizationIdentifier
/**
* The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle that contains the app authorization to use for the request.
*/
public val appBundleIdentifier: kotlin.String? = builder.appBundleIdentifier
/**
* Contains OAuth2 authorization information.
*
* This is required if the app authorization for the request is configured with an OAuth2 (`oauth2`) authorization type.
*/
public val authRequest: aws.sdk.kotlin.services.appfabric.model.AuthRequest? = builder.authRequest
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appfabric.model.ConnectAppAuthorizationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConnectAppAuthorizationRequest(")
append("appAuthorizationIdentifier=$appAuthorizationIdentifier,")
append("appBundleIdentifier=$appBundleIdentifier,")
append("authRequest=$authRequest")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = appAuthorizationIdentifier?.hashCode() ?: 0
result = 31 * result + (appBundleIdentifier?.hashCode() ?: 0)
result = 31 * result + (authRequest?.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 ConnectAppAuthorizationRequest
if (appAuthorizationIdentifier != other.appAuthorizationIdentifier) return false
if (appBundleIdentifier != other.appBundleIdentifier) return false
if (authRequest != other.authRequest) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appfabric.model.ConnectAppAuthorizationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for the request.
*/
public var appAuthorizationIdentifier: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle that contains the app authorization to use for the request.
*/
public var appBundleIdentifier: kotlin.String? = null
/**
* Contains OAuth2 authorization information.
*
* This is required if the app authorization for the request is configured with an OAuth2 (`oauth2`) authorization type.
*/
public var authRequest: aws.sdk.kotlin.services.appfabric.model.AuthRequest? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appfabric.model.ConnectAppAuthorizationRequest) : this() {
this.appAuthorizationIdentifier = x.appAuthorizationIdentifier
this.appBundleIdentifier = x.appBundleIdentifier
this.authRequest = x.authRequest
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appfabric.model.ConnectAppAuthorizationRequest = ConnectAppAuthorizationRequest(this)
/**
* construct an [aws.sdk.kotlin.services.appfabric.model.AuthRequest] inside the given [block]
*/
public fun authRequest(block: aws.sdk.kotlin.services.appfabric.model.AuthRequest.Builder.() -> kotlin.Unit) {
this.authRequest = aws.sdk.kotlin.services.appfabric.model.AuthRequest.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy