commonMain.aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionOAuthRequestParameters.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudwatchevents-jvm Show documentation
Show all versions of cloudwatchevents-jvm Show documentation
The AWS SDK for Kotlin client for CloudWatch Events
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudwatchevents.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains the OAuth request parameters to use for the connection.
*/
public class UpdateConnectionOAuthRequestParameters private constructor(builder: Builder) {
/**
* The URL to the authorization endpoint when OAuth is specified as the authorization type.
*/
public val authorizationEndpoint: kotlin.String? = builder.authorizationEndpoint
/**
* A `UpdateConnectionOAuthClientRequestParameters` object that contains the client parameters to use for the connection when OAuth is specified as the authorization type.
*/
public val clientParameters: aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionOAuthClientRequestParameters? = builder.clientParameters
/**
* The method used to connect to the HTTP endpoint.
*/
public val httpMethod: aws.sdk.kotlin.services.cloudwatchevents.model.ConnectionOAuthHttpMethod? = builder.httpMethod
/**
* The additional HTTP parameters used for the OAuth authorization request.
*/
public val oAuthHttpParameters: aws.sdk.kotlin.services.cloudwatchevents.model.ConnectionHttpParameters? = builder.oAuthHttpParameters
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionOAuthRequestParameters = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateConnectionOAuthRequestParameters(")
append("authorizationEndpoint=$authorizationEndpoint,")
append("clientParameters=$clientParameters,")
append("httpMethod=$httpMethod,")
append("oAuthHttpParameters=$oAuthHttpParameters")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = authorizationEndpoint?.hashCode() ?: 0
result = 31 * result + (clientParameters?.hashCode() ?: 0)
result = 31 * result + (httpMethod?.hashCode() ?: 0)
result = 31 * result + (oAuthHttpParameters?.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 UpdateConnectionOAuthRequestParameters
if (authorizationEndpoint != other.authorizationEndpoint) return false
if (clientParameters != other.clientParameters) return false
if (httpMethod != other.httpMethod) return false
if (oAuthHttpParameters != other.oAuthHttpParameters) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionOAuthRequestParameters = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The URL to the authorization endpoint when OAuth is specified as the authorization type.
*/
public var authorizationEndpoint: kotlin.String? = null
/**
* A `UpdateConnectionOAuthClientRequestParameters` object that contains the client parameters to use for the connection when OAuth is specified as the authorization type.
*/
public var clientParameters: aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionOAuthClientRequestParameters? = null
/**
* The method used to connect to the HTTP endpoint.
*/
public var httpMethod: aws.sdk.kotlin.services.cloudwatchevents.model.ConnectionOAuthHttpMethod? = null
/**
* The additional HTTP parameters used for the OAuth authorization request.
*/
public var oAuthHttpParameters: aws.sdk.kotlin.services.cloudwatchevents.model.ConnectionHttpParameters? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionOAuthRequestParameters) : this() {
this.authorizationEndpoint = x.authorizationEndpoint
this.clientParameters = x.clientParameters
this.httpMethod = x.httpMethod
this.oAuthHttpParameters = x.oAuthHttpParameters
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionOAuthRequestParameters = UpdateConnectionOAuthRequestParameters(this)
/**
* construct an [aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionOAuthClientRequestParameters] inside the given [block]
*/
public fun clientParameters(block: aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionOAuthClientRequestParameters.Builder.() -> kotlin.Unit) {
this.clientParameters = aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionOAuthClientRequestParameters.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.cloudwatchevents.model.ConnectionHttpParameters] inside the given [block]
*/
public fun oAuthHttpParameters(block: aws.sdk.kotlin.services.cloudwatchevents.model.ConnectionHttpParameters.Builder.() -> kotlin.Unit) {
this.oAuthHttpParameters = aws.sdk.kotlin.services.cloudwatchevents.model.ConnectionHttpParameters.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}