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

commonMain.aws.sdk.kotlin.services.applicationinsights.model.DescribeLogPatternResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.applicationinsights.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DescribeLogPatternResponse private constructor(builder: Builder) {
    /**
     * The AWS account ID for the resource group owner.
     */
    public val accountId: kotlin.String? = builder.accountId
    /**
     * The successfully created log pattern.
     */
    public val logPattern: aws.sdk.kotlin.services.applicationinsights.model.LogPattern? = builder.logPattern
    /**
     * The name of the resource group.
     */
    public val resourceGroupName: kotlin.String? = builder.resourceGroupName

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeLogPatternResponse(")
        append("accountId=$accountId,")
        append("logPattern=$logPattern,")
        append("resourceGroupName=$resourceGroupName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = accountId?.hashCode() ?: 0
        result = 31 * result + (logPattern?.hashCode() ?: 0)
        result = 31 * result + (resourceGroupName?.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 DescribeLogPatternResponse

        if (accountId != other.accountId) return false
        if (logPattern != other.logPattern) return false
        if (resourceGroupName != other.resourceGroupName) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The AWS account ID for the resource group owner.
         */
        public var accountId: kotlin.String? = null
        /**
         * The successfully created log pattern.
         */
        public var logPattern: aws.sdk.kotlin.services.applicationinsights.model.LogPattern? = null
        /**
         * The name of the resource group.
         */
        public var resourceGroupName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.applicationinsights.model.DescribeLogPatternResponse) : this() {
            this.accountId = x.accountId
            this.logPattern = x.logPattern
            this.resourceGroupName = x.resourceGroupName
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.applicationinsights.model.LogPattern] inside the given [block]
         */
        public fun logPattern(block: aws.sdk.kotlin.services.applicationinsights.model.LogPattern.Builder.() -> kotlin.Unit) {
            this.logPattern = aws.sdk.kotlin.services.applicationinsights.model.LogPattern.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy