All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.redshift.model.DescribeEndpointAccessRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.redshift.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DescribeEndpointAccessRequest private constructor(builder: Builder) {
    /**
     * The cluster identifier associated with the described endpoint.
     */
    public val clusterIdentifier: kotlin.String? = builder.clusterIdentifier
    /**
     * The name of the endpoint to be described.
     */
    public val endpointName: kotlin.String? = builder.endpointName
    /**
     * An optional pagination token provided by a previous `DescribeEndpointAccess` request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by the `MaxRecords` parameter.
     */
    public val marker: kotlin.String? = builder.marker
    /**
     * The maximum number of records to include in the response. If more records exist than the specified `MaxRecords` value, a pagination token called a `Marker` is included in the response so that the remaining results can be retrieved.
     */
    public val maxRecords: kotlin.Int? = builder.maxRecords
    /**
     * The Amazon Web Services account ID of the owner of the cluster.
     */
    public val resourceOwner: kotlin.String? = builder.resourceOwner
    /**
     * The virtual private cloud (VPC) identifier with access to the cluster.
     */
    public val vpcId: kotlin.String? = builder.vpcId

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshift.model.DescribeEndpointAccessRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DescribeEndpointAccessRequest(")
        append("clusterIdentifier=$clusterIdentifier,")
        append("endpointName=$endpointName,")
        append("marker=$marker,")
        append("maxRecords=$maxRecords,")
        append("resourceOwner=$resourceOwner,")
        append("vpcId=$vpcId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clusterIdentifier?.hashCode() ?: 0
        result = 31 * result + (endpointName?.hashCode() ?: 0)
        result = 31 * result + (marker?.hashCode() ?: 0)
        result = 31 * result + (maxRecords ?: 0)
        result = 31 * result + (resourceOwner?.hashCode() ?: 0)
        result = 31 * result + (vpcId?.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 DescribeEndpointAccessRequest

        if (clusterIdentifier != other.clusterIdentifier) return false
        if (endpointName != other.endpointName) return false
        if (marker != other.marker) return false
        if (maxRecords != other.maxRecords) return false
        if (resourceOwner != other.resourceOwner) return false
        if (vpcId != other.vpcId) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshift.model.DescribeEndpointAccessRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The cluster identifier associated with the described endpoint.
         */
        public var clusterIdentifier: kotlin.String? = null
        /**
         * The name of the endpoint to be described.
         */
        public var endpointName: kotlin.String? = null
        /**
         * An optional pagination token provided by a previous `DescribeEndpointAccess` request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by the `MaxRecords` parameter.
         */
        public var marker: kotlin.String? = null
        /**
         * The maximum number of records to include in the response. If more records exist than the specified `MaxRecords` value, a pagination token called a `Marker` is included in the response so that the remaining results can be retrieved.
         */
        public var maxRecords: kotlin.Int? = null
        /**
         * The Amazon Web Services account ID of the owner of the cluster.
         */
        public var resourceOwner: kotlin.String? = null
        /**
         * The virtual private cloud (VPC) identifier with access to the cluster.
         */
        public var vpcId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.redshift.model.DescribeEndpointAccessRequest) : this() {
            this.clusterIdentifier = x.clusterIdentifier
            this.endpointName = x.endpointName
            this.marker = x.marker
            this.maxRecords = x.maxRecords
            this.resourceOwner = x.resourceOwner
            this.vpcId = x.vpcId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.redshift.model.DescribeEndpointAccessRequest = DescribeEndpointAccessRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy