![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.appflow.kotlin.outputs.ConnectorProfileOAuth2Credentials.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.appflow.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property accessToken The access token used to access the connector on your behalf.
* @property clientId The identifier for the desired client.
* @property clientSecret The client secret used by the OAuth client to authenticate to the authorization server.
* @property oAuthRequest
* @property refreshToken The refresh token used to refresh an expired access token.
*/
public data class ConnectorProfileOAuth2Credentials(
public val accessToken: String? = null,
public val clientId: String? = null,
public val clientSecret: String? = null,
public val oAuthRequest: ConnectorProfileConnectorOAuthRequest? = null,
public val refreshToken: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.appflow.outputs.ConnectorProfileOAuth2Credentials): ConnectorProfileOAuth2Credentials = ConnectorProfileOAuth2Credentials(
accessToken = javaType.accessToken().map({ args0 -> args0 }).orElse(null),
clientId = javaType.clientId().map({ args0 -> args0 }).orElse(null),
clientSecret = javaType.clientSecret().map({ args0 -> args0 }).orElse(null),
oAuthRequest = javaType.oAuthRequest().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.appflow.kotlin.outputs.ConnectorProfileConnectorOAuthRequest.Companion.toKotlin(args0)
})
}).orElse(null),
refreshToken = javaType.refreshToken().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy