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

commonMain.aws.sdk.kotlin.services.cloudwatchlogs.model.DescribeConfigurationTemplatesRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.cloudwatchlogs.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DescribeConfigurationTemplatesRequest private constructor(builder: Builder) {
    /**
     * Use this parameter to filter the response to include only the configuration templates that apply to the delivery destination types that you specify here.
     */
    public val deliveryDestinationTypes: List? = builder.deliveryDestinationTypes
    /**
     * Use this parameter to limit the number of configuration templates that are returned in the response.
     */
    public val limit: kotlin.Int? = builder.limit
    /**
     * Use this parameter to filter the response to include only the configuration templates that apply to the log types that you specify here.
     */
    public val logTypes: List? = builder.logTypes
    /**
     * The token for the next set of items to return. The token expires after 24 hours.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * Use this parameter to filter the response to include only the configuration templates that apply to the resource types that you specify here.
     */
    public val resourceTypes: List? = builder.resourceTypes
    /**
     * Use this parameter to filter the response to include only the configuration templates that apply to the Amazon Web Services service that you specify here.
     */
    public val service: kotlin.String? = builder.service

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeConfigurationTemplatesRequest(")
        append("deliveryDestinationTypes=$deliveryDestinationTypes,")
        append("limit=$limit,")
        append("logTypes=$logTypes,")
        append("nextToken=$nextToken,")
        append("resourceTypes=$resourceTypes,")
        append("service=$service")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = deliveryDestinationTypes?.hashCode() ?: 0
        result = 31 * result + (limit ?: 0)
        result = 31 * result + (logTypes?.hashCode() ?: 0)
        result = 31 * result + (nextToken?.hashCode() ?: 0)
        result = 31 * result + (resourceTypes?.hashCode() ?: 0)
        result = 31 * result + (service?.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 DescribeConfigurationTemplatesRequest

        if (deliveryDestinationTypes != other.deliveryDestinationTypes) return false
        if (limit != other.limit) return false
        if (logTypes != other.logTypes) return false
        if (nextToken != other.nextToken) return false
        if (resourceTypes != other.resourceTypes) return false
        if (service != other.service) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Use this parameter to filter the response to include only the configuration templates that apply to the delivery destination types that you specify here.
         */
        public var deliveryDestinationTypes: List? = null
        /**
         * Use this parameter to limit the number of configuration templates that are returned in the response.
         */
        public var limit: kotlin.Int? = null
        /**
         * Use this parameter to filter the response to include only the configuration templates that apply to the log types that you specify here.
         */
        public var logTypes: List? = null
        /**
         * The token for the next set of items to return. The token expires after 24 hours.
         */
        public var nextToken: kotlin.String? = null
        /**
         * Use this parameter to filter the response to include only the configuration templates that apply to the resource types that you specify here.
         */
        public var resourceTypes: List? = null
        /**
         * Use this parameter to filter the response to include only the configuration templates that apply to the Amazon Web Services service that you specify here.
         */
        public var service: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cloudwatchlogs.model.DescribeConfigurationTemplatesRequest) : this() {
            this.deliveryDestinationTypes = x.deliveryDestinationTypes
            this.limit = x.limit
            this.logTypes = x.logTypes
            this.nextToken = x.nextToken
            this.resourceTypes = x.resourceTypes
            this.service = x.service
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy