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

commonMain.aws.sdk.kotlin.services.configservice.model.PutRemediationExceptionsRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.configservice.model

import aws.smithy.kotlin.runtime.time.Instant

public class PutRemediationExceptionsRequest private constructor(builder: Builder) {
    /**
     * The name of the Config rule for which you want to create remediation exception.
     */
    public val configRuleName: kotlin.String? = builder.configRuleName
    /**
     * The exception is automatically deleted after the expiration date.
     */
    public val expirationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.expirationTime
    /**
     * The message contains an explanation of the exception.
     */
    public val message: kotlin.String? = builder.message
    /**
     * An exception list of resource exception keys to be processed with the current request. Config adds exception for each resource key. For example, Config adds 3 exceptions for 3 resource keys.
     */
    public val resourceKeys: List? = builder.resourceKeys

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

    override fun toString(): kotlin.String = buildString {
        append("PutRemediationExceptionsRequest(")
        append("configRuleName=$configRuleName,")
        append("expirationTime=$expirationTime,")
        append("message=$message,")
        append("resourceKeys=$resourceKeys")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = configRuleName?.hashCode() ?: 0
        result = 31 * result + (expirationTime?.hashCode() ?: 0)
        result = 31 * result + (message?.hashCode() ?: 0)
        result = 31 * result + (resourceKeys?.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 PutRemediationExceptionsRequest

        if (configRuleName != other.configRuleName) return false
        if (expirationTime != other.expirationTime) return false
        if (message != other.message) return false
        if (resourceKeys != other.resourceKeys) return false

        return true
    }

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

    public class Builder {
        /**
         * The name of the Config rule for which you want to create remediation exception.
         */
        public var configRuleName: kotlin.String? = null
        /**
         * The exception is automatically deleted after the expiration date.
         */
        public var expirationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The message contains an explanation of the exception.
         */
        public var message: kotlin.String? = null
        /**
         * An exception list of resource exception keys to be processed with the current request. Config adds exception for each resource key. For example, Config adds 3 exceptions for 3 resource keys.
         */
        public var resourceKeys: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.configservice.model.PutRemediationExceptionsRequest) : this() {
            this.configRuleName = x.configRuleName
            this.expirationTime = x.expirationTime
            this.message = x.message
            this.resourceKeys = x.resourceKeys
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy