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

commonMain.aws.sdk.kotlin.services.mediaconvert.model.DescribeEndpointsRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.mediaconvert.model



/**
 * DescribeEndpointsRequest
 */
@Deprecated("No longer recommended for use. See AWS API documentation for more details.")
public class DescribeEndpointsRequest private constructor(builder: Builder) {
    /**
     * Optional. Max number of endpoints, up to twenty, that will be returned at one time.
     */
    public val maxResults: kotlin.Int? = builder.maxResults
    /**
     * Optional field, defaults to DEFAULT. Specify DEFAULT for this operation to return your endpoints if any exist, or to create an endpoint for you and return it if one doesn't already exist. Specify GET_ONLY to return your endpoints if any exist, or an empty list if none exist.
     */
    public val mode: aws.sdk.kotlin.services.mediaconvert.model.DescribeEndpointsMode? = builder.mode
    /**
     * Use this string, provided with the response to a previous request, to request the next batch of endpoints.
     */
    public val nextToken: kotlin.String? = builder.nextToken

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeEndpointsRequest(")
        append("maxResults=$maxResults,")
        append("mode=$mode,")
        append("nextToken=$nextToken")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = maxResults ?: 0
        result = 31 * result + (mode?.hashCode() ?: 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 DescribeEndpointsRequest

        if (maxResults != other.maxResults) return false
        if (mode != other.mode) return false
        if (nextToken != other.nextToken) return false

        return true
    }

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

    public class Builder {
        /**
         * Optional. Max number of endpoints, up to twenty, that will be returned at one time.
         */
        public var maxResults: kotlin.Int? = null
        /**
         * Optional field, defaults to DEFAULT. Specify DEFAULT for this operation to return your endpoints if any exist, or to create an endpoint for you and return it if one doesn't already exist. Specify GET_ONLY to return your endpoints if any exist, or an empty list if none exist.
         */
        public var mode: aws.sdk.kotlin.services.mediaconvert.model.DescribeEndpointsMode? = null
        /**
         * Use this string, provided with the response to a previous request, to request the next batch of endpoints.
         */
        public var nextToken: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.DescribeEndpointsRequest) : this() {
            this.maxResults = x.maxResults
            this.mode = x.mode
            this.nextToken = x.nextToken
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy