
commonMain.aws.sdk.kotlin.services.configservice.model.OrganizationConformancePack.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* An organization conformance pack that has information about conformance packs that Config creates in member accounts.
*/
class OrganizationConformancePack private constructor(builder: Builder) {
/**
* A list of `ConformancePackInputParameter` objects.
*/
val conformancePackInputParameters: List? = builder.conformancePackInputParameters
/**
* The name of the Amazon S3 bucket where Config stores conformance pack templates.
*
* This field is optional.
*/
val deliveryS3Bucket: kotlin.String? = builder.deliveryS3Bucket
/**
* Any folder structure you want to add to an Amazon S3 bucket.
*
* This field is optional.
*/
val deliveryS3KeyPrefix: kotlin.String? = builder.deliveryS3KeyPrefix
/**
* A comma-separated list of accounts excluded from organization conformance pack.
*/
val excludedAccounts: List? = builder.excludedAccounts
/**
* Last time when organization conformation pack was updated.
*/
val lastUpdateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdateTime
/**
* Amazon Resource Name (ARN) of organization conformance pack.
*/
val organizationConformancePackArn: kotlin.String? = builder.organizationConformancePackArn
/**
* The name you assign to an organization conformance pack.
*/
val organizationConformancePackName: kotlin.String? = builder.organizationConformancePackName
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.OrganizationConformancePack = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("OrganizationConformancePack(")
append("conformancePackInputParameters=$conformancePackInputParameters,")
append("deliveryS3Bucket=$deliveryS3Bucket,")
append("deliveryS3KeyPrefix=$deliveryS3KeyPrefix,")
append("excludedAccounts=$excludedAccounts,")
append("lastUpdateTime=$lastUpdateTime,")
append("organizationConformancePackArn=$organizationConformancePackArn,")
append("organizationConformancePackName=$organizationConformancePackName)")
}
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 + (lastUpdateTime?.hashCode() ?: 0)
result = 31 * result + (organizationConformancePackArn?.hashCode() ?: 0)
result = 31 * result + (organizationConformancePackName?.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 OrganizationConformancePack
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 (lastUpdateTime != other.lastUpdateTime) return false
if (organizationConformancePackArn != other.organizationConformancePackArn) return false
if (organizationConformancePackName != other.organizationConformancePackName) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.OrganizationConformancePack = Builder(this).apply(block).build()
class Builder {
/**
* A list of `ConformancePackInputParameter` objects.
*/
var conformancePackInputParameters: List? = null
/**
* The name of the Amazon S3 bucket where Config stores conformance pack templates.
*
* This field is optional.
*/
var deliveryS3Bucket: kotlin.String? = null
/**
* Any folder structure you want to add to an Amazon S3 bucket.
*
* This field is optional.
*/
var deliveryS3KeyPrefix: kotlin.String? = null
/**
* A comma-separated list of accounts excluded from organization conformance pack.
*/
var excludedAccounts: List? = null
/**
* Last time when organization conformation pack was updated.
*/
var lastUpdateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Amazon Resource Name (ARN) of organization conformance pack.
*/
var organizationConformancePackArn: kotlin.String? = null
/**
* The name you assign to an organization conformance pack.
*/
var organizationConformancePackName: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.OrganizationConformancePack) : this() {
this.conformancePackInputParameters = x.conformancePackInputParameters
this.deliveryS3Bucket = x.deliveryS3Bucket
this.deliveryS3KeyPrefix = x.deliveryS3KeyPrefix
this.excludedAccounts = x.excludedAccounts
this.lastUpdateTime = x.lastUpdateTime
this.organizationConformancePackArn = x.organizationConformancePackArn
this.organizationConformancePackName = x.organizationConformancePackName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.OrganizationConformancePack = OrganizationConformancePack(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy