commonMain.aws.sdk.kotlin.services.codecatalyst.endpoints.CodeCatalystEndpointParameters.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codecatalyst-jvm Show documentation
Show all versions of codecatalyst-jvm Show documentation
The AWS SDK for Kotlin client for CodeCatalyst
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codecatalyst.endpoints
/**
* The set of values necessary for endpoint resolution.
*/
public class CodeCatalystEndpointParameters private constructor(builder: Builder) {
/**
* Override the endpoint used to send this request
*/
public val endpoint: String? = builder.endpoint
/**
* The AWS region used to dispatch the request.
*/
public val region: String? = builder.region
/**
* When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
*/
public val useFips: Boolean? = requireNotNull(builder.useFips) { "endpoint provider parameter #useFips is required" }
public companion object {
public inline operator fun invoke(block: Builder.() -> Unit): CodeCatalystEndpointParameters = Builder().apply(block).build()
}
public override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other !is CodeCatalystEndpointParameters) return false
if (this.endpoint != other.endpoint) return false
if (this.region != other.region) return false
if (this.useFips != other.useFips) return false
return true
}
public override fun hashCode(): Int {
var result = endpoint?.hashCode() ?: 0
result = 31 * result + (region?.hashCode() ?: 0)
result = 31 * result + (useFips?.hashCode() ?: 0)
return result
}
public override fun toString(): String = buildString {
append("CodeCatalystEndpointParameters(")
append("endpoint=$endpoint,")
append("region=$region,")
append("useFips=$useFips)")
}
public fun copy(block: Builder.() -> Unit = {}): CodeCatalystEndpointParameters {
return Builder().apply {
endpoint = [email protected]
region = [email protected]
useFips = [email protected]
block()
}
.build()
}
public class Builder {
/**
* Override the endpoint used to send this request
*/
public var endpoint: String? = null
/**
* The AWS region used to dispatch the request.
*/
public var region: String? = null
/**
* When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
*/
public var useFips: Boolean? = false
public fun build(): CodeCatalystEndpointParameters = CodeCatalystEndpointParameters(this)
}
}