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

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

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

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



public class PutOrganizationConformancePackRequest private constructor(builder: Builder) {
    /**
     * A list of `ConformancePackInputParameter` objects.
     */
    public val conformancePackInputParameters: List? = builder.conformancePackInputParameters
    /**
     * The name of the Amazon S3 bucket where Config stores conformance pack templates.
     *
     * This field is optional. If used, it must be prefixed with `awsconfigconforms`.
     */
    public val deliveryS3Bucket: kotlin.String? = builder.deliveryS3Bucket
    /**
     * The prefix for the Amazon S3 bucket.
     *
     * This field is optional.
     */
    public val deliveryS3KeyPrefix: kotlin.String? = builder.deliveryS3KeyPrefix
    /**
     * A list of Amazon Web Services accounts to be excluded from an organization conformance pack while deploying a conformance pack.
     */
    public val excludedAccounts: List? = builder.excludedAccounts
    /**
     * Name of the organization conformance pack you want to create.
     */
    public val organizationConformancePackName: kotlin.String? = builder.organizationConformancePackName
    /**
     * 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.
     */
    public val templateBody: kotlin.String? = builder.templateBody
    /**
     * Location of file containing the template body. The uri must point to the conformance pack template (max size: 300 KB).
     *
     * You must have access to read Amazon S3 bucket. In addition, in order to ensure a successful deployment, the template object must not be in an [archived storage class](https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-class-intro.html) if this parameter is passed.
     */
    public val templateS3Uri: kotlin.String? = builder.templateS3Uri

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

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

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

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

        return true
    }

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

    public class Builder {
        /**
         * A list of `ConformancePackInputParameter` objects.
         */
        public var conformancePackInputParameters: List? = null
        /**
         * The name of the Amazon S3 bucket where Config stores conformance pack templates.
         *
         * This field is optional. If used, it must be prefixed with `awsconfigconforms`.
         */
        public var deliveryS3Bucket: kotlin.String? = null
        /**
         * The prefix for the Amazon S3 bucket.
         *
         * This field is optional.
         */
        public var deliveryS3KeyPrefix: kotlin.String? = null
        /**
         * A list of Amazon Web Services accounts to be excluded from an organization conformance pack while deploying a conformance pack.
         */
        public var excludedAccounts: List? = null
        /**
         * Name of the organization conformance pack you want to create.
         */
        public var organizationConformancePackName: 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.
         */
        public var templateBody: kotlin.String? = null
        /**
         * Location of file containing the template body. The uri must point to the conformance pack template (max size: 300 KB).
         *
         * You must have access to read Amazon S3 bucket. In addition, in order to ensure a successful deployment, the template object must not be in an [archived storage class](https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-class-intro.html) if this parameter is passed.
         */
        public var templateS3Uri: kotlin.String? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy