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

commonMain.aws.sdk.kotlin.services.configservice.model.PutResourceConfigRequest.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



public class PutResourceConfigRequest private constructor(builder: Builder) {
    /**
     * The configuration object of the resource in valid JSON format. It must match the schema registered with CloudFormation.
     *
     * The configuration JSON must not exceed 64 KB.
     */
    public val configuration: kotlin.String? = builder.configuration
    /**
     * Unique identifier of the resource.
     */
    public val resourceId: kotlin.String? = builder.resourceId
    /**
     * Name of the resource.
     */
    public val resourceName: kotlin.String? = builder.resourceName
    /**
     * The type of the resource. The custom resource type must be registered with CloudFormation.
     *
     * You cannot use the organization names “amzn”, “amazon”, “alexa”, “custom” with custom resource types. It is the first part of the ResourceType up to the first ::.
     */
    public val resourceType: kotlin.String? = builder.resourceType
    /**
     * Version of the schema registered for the ResourceType in CloudFormation.
     */
    public val schemaVersionId: kotlin.String? = builder.schemaVersionId
    /**
     * Tags associated with the resource.
     *
     * This field is not to be confused with the Amazon Web Services-wide tag feature for Amazon Web Services resources. Tags for `PutResourceConfig` are tags that you supply for the configuration items of your custom resources.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("PutResourceConfigRequest(")
        append("configuration=$configuration,")
        append("resourceId=$resourceId,")
        append("resourceName=$resourceName,")
        append("resourceType=$resourceType,")
        append("schemaVersionId=$schemaVersionId,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = configuration?.hashCode() ?: 0
        result = 31 * result + (resourceId?.hashCode() ?: 0)
        result = 31 * result + (resourceName?.hashCode() ?: 0)
        result = 31 * result + (resourceType?.hashCode() ?: 0)
        result = 31 * result + (schemaVersionId?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 PutResourceConfigRequest

        if (configuration != other.configuration) return false
        if (resourceId != other.resourceId) return false
        if (resourceName != other.resourceName) return false
        if (resourceType != other.resourceType) return false
        if (schemaVersionId != other.schemaVersionId) return false
        if (tags != other.tags) return false

        return true
    }

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

    public class Builder {
        /**
         * The configuration object of the resource in valid JSON format. It must match the schema registered with CloudFormation.
         *
         * The configuration JSON must not exceed 64 KB.
         */
        public var configuration: kotlin.String? = null
        /**
         * Unique identifier of the resource.
         */
        public var resourceId: kotlin.String? = null
        /**
         * Name of the resource.
         */
        public var resourceName: kotlin.String? = null
        /**
         * The type of the resource. The custom resource type must be registered with CloudFormation.
         *
         * You cannot use the organization names “amzn”, “amazon”, “alexa”, “custom” with custom resource types. It is the first part of the ResourceType up to the first ::.
         */
        public var resourceType: kotlin.String? = null
        /**
         * Version of the schema registered for the ResourceType in CloudFormation.
         */
        public var schemaVersionId: kotlin.String? = null
        /**
         * Tags associated with the resource.
         *
         * This field is not to be confused with the Amazon Web Services-wide tag feature for Amazon Web Services resources. Tags for `PutResourceConfig` are tags that you supply for the configuration items of your custom resources.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.configservice.model.PutResourceConfigRequest) : this() {
            this.configuration = x.configuration
            this.resourceId = x.resourceId
            this.resourceName = x.resourceName
            this.resourceType = x.resourceType
            this.schemaVersionId = x.schemaVersionId
            this.tags = x.tags
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy