commonMain.aws.sdk.kotlin.services.configservice.model.OrganizationConformancePack.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configservice-jvm Show documentation
Show all versions of configservice-jvm Show documentation
The AWS Kotlin client for Config Service
// 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.
*/
public class OrganizationConformancePack 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.
*/
public val deliveryS3Bucket: kotlin.String? = builder.deliveryS3Bucket
/**
* Any folder structure you want to add to an Amazon S3 bucket.
*
* This field is optional.
*/
public val deliveryS3KeyPrefix: kotlin.String? = builder.deliveryS3KeyPrefix
/**
* A comma-separated list of accounts excluded from organization conformance pack.
*/
public val excludedAccounts: List? = builder.excludedAccounts
/**
* Last time when organization conformation pack was updated.
*/
public val lastUpdateTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.lastUpdateTime) { "A non-null value must be provided for lastUpdateTime" }
/**
* Amazon Resource Name (ARN) of organization conformance pack.
*/
public val organizationConformancePackArn: kotlin.String = requireNotNull(builder.organizationConformancePackArn) { "A non-null value must be provided for organizationConformancePackArn" }
/**
* The name you assign to an organization conformance pack.
*/
public val organizationConformancePackName: kotlin.String = requireNotNull(builder.organizationConformancePackName) { "A non-null value must be provided for organizationConformancePackName" }
public companion object {
public 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")
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 + (lastUpdateTime.hashCode())
result = 31 * result + (organizationConformancePackArn.hashCode())
result = 31 * result + (organizationConformancePackName.hashCode())
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
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.OrganizationConformancePack = 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.
*/
public var deliveryS3Bucket: kotlin.String? = null
/**
* Any folder structure you want to add to an Amazon S3 bucket.
*
* This field is optional.
*/
public var deliveryS3KeyPrefix: kotlin.String? = null
/**
* A comma-separated list of accounts excluded from organization conformance pack.
*/
public var excludedAccounts: List? = null
/**
* Last time when organization conformation pack was updated.
*/
public var lastUpdateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Amazon Resource Name (ARN) of organization conformance pack.
*/
public var organizationConformancePackArn: kotlin.String? = null
/**
* The name you assign to an organization conformance pack.
*/
public var organizationConformancePackName: kotlin.String? = null
@PublishedApi
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)
internal fun correctErrors(): Builder {
if (lastUpdateTime == null) lastUpdateTime = Instant.fromEpochSeconds(0)
if (organizationConformancePackArn == null) organizationConformancePackArn = ""
if (organizationConformancePackName == null) organizationConformancePackName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy