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

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

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

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



class PutConformancePackRequest private constructor(builder: Builder) {
    /**
     * A list of `ConformancePackInputParameter` objects.
     */
    val conformancePackInputParameters: List? = builder.conformancePackInputParameters
    /**
     * Name of the conformance pack you want to create.
     */
    val conformancePackName: kotlin.String? = builder.conformancePackName
    /**
     * The name of the Amazon S3 bucket where Config stores conformance pack templates.
     *
     * This field is optional.
     */
    val deliveryS3Bucket: kotlin.String? = builder.deliveryS3Bucket
    /**
     * The prefix for the Amazon S3 bucket.
     *
     * This field is optional.
     */
    val deliveryS3KeyPrefix: kotlin.String? = builder.deliveryS3KeyPrefix
    /**
     * A string containing full conformance pack template body. Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes.
     *
     * You can only use a YAML template with two resource types: Config rule (`AWS::Config::ConfigRule`) and a remediation action (`AWS::Config::RemediationConfiguration`).
     */
    val templateBody: kotlin.String? = builder.templateBody
    /**
     * Location of file containing the template body (`s3://bucketname/prefix`). The uri must point to the conformance pack template (max size: 300 KB) that is located in an Amazon S3 bucket in the same region as the conformance pack.
     *
     * You must have access to read Amazon S3 bucket.
     */
    val templateS3Uri: kotlin.String? = builder.templateS3Uri

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

    override fun toString(): kotlin.String = buildString {
        append("PutConformancePackRequest(")
        append("conformancePackInputParameters=$conformancePackInputParameters,")
        append("conformancePackName=$conformancePackName,")
        append("deliveryS3Bucket=$deliveryS3Bucket,")
        append("deliveryS3KeyPrefix=$deliveryS3KeyPrefix,")
        append("templateBody=$templateBody,")
        append("templateS3Uri=$templateS3Uri)")
    }

    override fun hashCode(): kotlin.Int {
        var result = conformancePackInputParameters?.hashCode() ?: 0
        result = 31 * result + (conformancePackName?.hashCode() ?: 0)
        result = 31 * result + (deliveryS3Bucket?.hashCode() ?: 0)
        result = 31 * result + (deliveryS3KeyPrefix?.hashCode() ?: 0)
        result = 31 * result + (templateBody?.hashCode() ?: 0)
        result = 31 * result + (templateS3Uri?.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 PutConformancePackRequest

        if (conformancePackInputParameters != other.conformancePackInputParameters) return false
        if (conformancePackName != other.conformancePackName) return false
        if (deliveryS3Bucket != other.deliveryS3Bucket) return false
        if (deliveryS3KeyPrefix != other.deliveryS3KeyPrefix) return false
        if (templateBody != other.templateBody) return false
        if (templateS3Uri != other.templateS3Uri) return false

        return true
    }

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

    class Builder {
        /**
         * A list of `ConformancePackInputParameter` objects.
         */
        var conformancePackInputParameters: List? = null
        /**
         * Name of the conformance pack you want to create.
         */
        var conformancePackName: kotlin.String? = null
        /**
         * The name of the Amazon S3 bucket where Config stores conformance pack templates.
         *
         * This field is optional.
         */
        var deliveryS3Bucket: kotlin.String? = null
        /**
         * The prefix for the Amazon S3 bucket.
         *
         * This field is optional.
         */
        var deliveryS3KeyPrefix: kotlin.String? = null
        /**
         * A string containing full conformance pack template body. Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes.
         *
         * You can only use a YAML template with two resource types: Config rule (`AWS::Config::ConfigRule`) and a remediation action (`AWS::Config::RemediationConfiguration`).
         */
        var templateBody: kotlin.String? = null
        /**
         * Location of file containing the template body (`s3://bucketname/prefix`). The uri must point to the conformance pack template (max size: 300 KB) that is located in an Amazon S3 bucket in the same region as the conformance pack.
         *
         * You must have access to read Amazon S3 bucket.
         */
        var templateS3Uri: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.configservice.model.PutConformancePackRequest) : this() {
            this.conformancePackInputParameters = x.conformancePackInputParameters
            this.conformancePackName = x.conformancePackName
            this.deliveryS3Bucket = x.deliveryS3Bucket
            this.deliveryS3KeyPrefix = x.deliveryS3KeyPrefix
            this.templateBody = x.templateBody
            this.templateS3Uri = x.templateS3Uri
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy