
commonMain.aws.sdk.kotlin.services.configservice.model.ConformancePackDetail.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
/**
* Returns details of a conformance pack. A conformance pack is a collection of Config rules and remediation actions that can be easily deployed in an account and a region.
*/
class ConformancePackDetail private constructor(builder: Builder) {
/**
* Amazon Resource Name (ARN) of the conformance pack.
*/
val conformancePackArn: kotlin.String? = builder.conformancePackArn
/**
* ID of the conformance pack.
*/
val conformancePackId: kotlin.String? = builder.conformancePackId
/**
* A list of `ConformancePackInputParameter` objects.
*/
val conformancePackInputParameters: List? = builder.conformancePackInputParameters
/**
* Name of the conformance pack.
*/
val conformancePackName: kotlin.String? = builder.conformancePackName
/**
* Amazon Web Services service that created the conformance pack.
*/
val createdBy: kotlin.String? = builder.createdBy
/**
* 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
/**
* Last time when conformation pack update was requested.
*/
val lastUpdateRequestedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdateRequestedTime
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.ConformancePackDetail = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConformancePackDetail(")
append("conformancePackArn=$conformancePackArn,")
append("conformancePackId=$conformancePackId,")
append("conformancePackInputParameters=$conformancePackInputParameters,")
append("conformancePackName=$conformancePackName,")
append("createdBy=$createdBy,")
append("deliveryS3Bucket=$deliveryS3Bucket,")
append("deliveryS3KeyPrefix=$deliveryS3KeyPrefix,")
append("lastUpdateRequestedTime=$lastUpdateRequestedTime)")
}
override fun hashCode(): kotlin.Int {
var result = conformancePackArn?.hashCode() ?: 0
result = 31 * result + (conformancePackId?.hashCode() ?: 0)
result = 31 * result + (conformancePackInputParameters?.hashCode() ?: 0)
result = 31 * result + (conformancePackName?.hashCode() ?: 0)
result = 31 * result + (createdBy?.hashCode() ?: 0)
result = 31 * result + (deliveryS3Bucket?.hashCode() ?: 0)
result = 31 * result + (deliveryS3KeyPrefix?.hashCode() ?: 0)
result = 31 * result + (lastUpdateRequestedTime?.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 ConformancePackDetail
if (conformancePackArn != other.conformancePackArn) return false
if (conformancePackId != other.conformancePackId) return false
if (conformancePackInputParameters != other.conformancePackInputParameters) return false
if (conformancePackName != other.conformancePackName) return false
if (createdBy != other.createdBy) return false
if (deliveryS3Bucket != other.deliveryS3Bucket) return false
if (deliveryS3KeyPrefix != other.deliveryS3KeyPrefix) return false
if (lastUpdateRequestedTime != other.lastUpdateRequestedTime) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.ConformancePackDetail = Builder(this).apply(block).build()
class Builder {
/**
* Amazon Resource Name (ARN) of the conformance pack.
*/
var conformancePackArn: kotlin.String? = null
/**
* ID of the conformance pack.
*/
var conformancePackId: kotlin.String? = null
/**
* A list of `ConformancePackInputParameter` objects.
*/
var conformancePackInputParameters: List? = null
/**
* Name of the conformance pack.
*/
var conformancePackName: kotlin.String? = null
/**
* Amazon Web Services service that created the conformance pack.
*/
var createdBy: 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
/**
* Last time when conformation pack update was requested.
*/
var lastUpdateRequestedTime: aws.smithy.kotlin.runtime.time.Instant? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.ConformancePackDetail) : this() {
this.conformancePackArn = x.conformancePackArn
this.conformancePackId = x.conformancePackId
this.conformancePackInputParameters = x.conformancePackInputParameters
this.conformancePackName = x.conformancePackName
this.createdBy = x.createdBy
this.deliveryS3Bucket = x.deliveryS3Bucket
this.deliveryS3KeyPrefix = x.deliveryS3KeyPrefix
this.lastUpdateRequestedTime = x.lastUpdateRequestedTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.ConformancePackDetail = ConformancePackDetail(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy