commonMain.aws.sdk.kotlin.services.glue.model.GetConnectionsRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetConnectionsRequest private constructor(builder: Builder) {
/**
* The ID of the Data Catalog in which the connections reside. If none is provided, the Amazon Web Services account ID is used by default.
*/
public val catalogId: kotlin.String? = builder.catalogId
/**
* A filter that controls which connections are returned.
*/
public val filter: aws.sdk.kotlin.services.glue.model.GetConnectionsFilter? = builder.filter
/**
* Allows you to retrieve the connection metadata without returning the password. For instance, the Glue console uses this flag to retrieve the connection, and does not display the password. Set this parameter when the caller might not have permission to use the KMS key to decrypt the password, but it does have permission to access the rest of the connection properties.
*/
public val hidePassword: kotlin.Boolean? = builder.hidePassword
/**
* The maximum number of connections to return in one response.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* A continuation token, if this is a continuation call.
*/
public val nextToken: kotlin.String? = builder.nextToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.GetConnectionsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetConnectionsRequest(")
append("catalogId=$catalogId,")
append("filter=$filter,")
append("hidePassword=$hidePassword,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = catalogId?.hashCode() ?: 0
result = 31 * result + (filter?.hashCode() ?: 0)
result = 31 * result + (hidePassword?.hashCode() ?: 0)
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nextToken?.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 GetConnectionsRequest
if (catalogId != other.catalogId) return false
if (filter != other.filter) return false
if (hidePassword != other.hidePassword) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.GetConnectionsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the Data Catalog in which the connections reside. If none is provided, the Amazon Web Services account ID is used by default.
*/
public var catalogId: kotlin.String? = null
/**
* A filter that controls which connections are returned.
*/
public var filter: aws.sdk.kotlin.services.glue.model.GetConnectionsFilter? = null
/**
* Allows you to retrieve the connection metadata without returning the password. For instance, the Glue console uses this flag to retrieve the connection, and does not display the password. Set this parameter when the caller might not have permission to use the KMS key to decrypt the password, but it does have permission to access the rest of the connection properties.
*/
public var hidePassword: kotlin.Boolean? = null
/**
* The maximum number of connections to return in one response.
*/
public var maxResults: kotlin.Int? = null
/**
* A continuation token, if this is a continuation call.
*/
public var nextToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.GetConnectionsRequest) : this() {
this.catalogId = x.catalogId
this.filter = x.filter
this.hidePassword = x.hidePassword
this.maxResults = x.maxResults
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.GetConnectionsRequest = GetConnectionsRequest(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.GetConnectionsFilter] inside the given [block]
*/
public fun filter(block: aws.sdk.kotlin.services.glue.model.GetConnectionsFilter.Builder.() -> kotlin.Unit) {
this.filter = aws.sdk.kotlin.services.glue.model.GetConnectionsFilter.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}