commonMain.aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionAuthRequestParameters.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 additional parameters to use for the connection.
*/
public class UpdateConnectionAuthRequestParameters private constructor(builder: Builder) {
/**
* A `UpdateConnectionApiKeyAuthRequestParameters` object that contains the authorization parameters for API key authorization.
*/
public val apiKeyAuthParameters: aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionApiKeyAuthRequestParameters? = builder.apiKeyAuthParameters
/**
* A `UpdateConnectionBasicAuthRequestParameters` object that contains the authorization parameters for Basic authorization.
*/
public val basicAuthParameters: aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionBasicAuthRequestParameters? = builder.basicAuthParameters
/**
* A `ConnectionHttpParameters` object that contains the additional parameters to use for the connection.
*/
public val invocationHttpParameters: aws.sdk.kotlin.services.cloudwatchevents.model.ConnectionHttpParameters? = builder.invocationHttpParameters
/**
* A `UpdateConnectionOAuthRequestParameters` object that contains the authorization parameters for OAuth authorization.
*/
public val oAuthParameters: aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionOAuthRequestParameters? = builder.oAuthParameters
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionAuthRequestParameters = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateConnectionAuthRequestParameters(")
append("apiKeyAuthParameters=$apiKeyAuthParameters,")
append("basicAuthParameters=$basicAuthParameters,")
append("invocationHttpParameters=$invocationHttpParameters,")
append("oAuthParameters=$oAuthParameters")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = apiKeyAuthParameters?.hashCode() ?: 0
result = 31 * result + (basicAuthParameters?.hashCode() ?: 0)
result = 31 * result + (invocationHttpParameters?.hashCode() ?: 0)
result = 31 * result + (oAuthParameters?.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 UpdateConnectionAuthRequestParameters
if (apiKeyAuthParameters != other.apiKeyAuthParameters) return false
if (basicAuthParameters != other.basicAuthParameters) return false
if (invocationHttpParameters != other.invocationHttpParameters) return false
if (oAuthParameters != other.oAuthParameters) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionAuthRequestParameters = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A `UpdateConnectionApiKeyAuthRequestParameters` object that contains the authorization parameters for API key authorization.
*/
public var apiKeyAuthParameters: aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionApiKeyAuthRequestParameters? = null
/**
* A `UpdateConnectionBasicAuthRequestParameters` object that contains the authorization parameters for Basic authorization.
*/
public var basicAuthParameters: aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionBasicAuthRequestParameters? = null
/**
* A `ConnectionHttpParameters` object that contains the additional parameters to use for the connection.
*/
public var invocationHttpParameters: aws.sdk.kotlin.services.cloudwatchevents.model.ConnectionHttpParameters? = null
/**
* A `UpdateConnectionOAuthRequestParameters` object that contains the authorization parameters for OAuth authorization.
*/
public var oAuthParameters: aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionOAuthRequestParameters? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionAuthRequestParameters) : this() {
this.apiKeyAuthParameters = x.apiKeyAuthParameters
this.basicAuthParameters = x.basicAuthParameters
this.invocationHttpParameters = x.invocationHttpParameters
this.oAuthParameters = x.oAuthParameters
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionAuthRequestParameters = UpdateConnectionAuthRequestParameters(this)
/**
* construct an [aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionApiKeyAuthRequestParameters] inside the given [block]
*/
public fun apiKeyAuthParameters(block: aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionApiKeyAuthRequestParameters.Builder.() -> kotlin.Unit) {
this.apiKeyAuthParameters = aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionApiKeyAuthRequestParameters.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionBasicAuthRequestParameters] inside the given [block]
*/
public fun basicAuthParameters(block: aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionBasicAuthRequestParameters.Builder.() -> kotlin.Unit) {
this.basicAuthParameters = aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionBasicAuthRequestParameters.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.cloudwatchevents.model.ConnectionHttpParameters] inside the given [block]
*/
public fun invocationHttpParameters(block: aws.sdk.kotlin.services.cloudwatchevents.model.ConnectionHttpParameters.Builder.() -> kotlin.Unit) {
this.invocationHttpParameters = aws.sdk.kotlin.services.cloudwatchevents.model.ConnectionHttpParameters.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionOAuthRequestParameters] inside the given [block]
*/
public fun oAuthParameters(block: aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionOAuthRequestParameters.Builder.() -> kotlin.Unit) {
this.oAuthParameters = aws.sdk.kotlin.services.cloudwatchevents.model.UpdateConnectionOAuthRequestParameters.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}