
commonMain.aws.sdk.kotlin.services.configservice.model.PutOrganizationConfigRuleRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.model
class PutOrganizationConfigRuleRequest private constructor(builder: Builder) {
/**
* A comma-separated list of accounts that you want to exclude from an organization Config rule.
*/
val excludedAccounts: List? = builder.excludedAccounts
/**
* The name that you assign to an organization Config rule.
*/
val organizationConfigRuleName: kotlin.String? = builder.organizationConfigRuleName
/**
* An object that specifies metadata for your organization's Config Custom Policy rule. The metadata includes the runtime system in use, which accounts have debug logging enabled, and other custom rule metadata, such as resource type, resource ID of Amazon Web Services resource, and organization trigger types that initiate Config to evaluate Amazon Web Services resources against a rule.
*/
val organizationCustomPolicyRuleMetadata: aws.sdk.kotlin.services.configservice.model.OrganizationCustomPolicyRuleMetadata? = builder.organizationCustomPolicyRuleMetadata
/**
* An `OrganizationCustomRuleMetadata` object.
*/
val organizationCustomRuleMetadata: aws.sdk.kotlin.services.configservice.model.OrganizationCustomRuleMetadata? = builder.organizationCustomRuleMetadata
/**
* An `OrganizationManagedRuleMetadata` object.
*/
val organizationManagedRuleMetadata: aws.sdk.kotlin.services.configservice.model.OrganizationManagedRuleMetadata? = builder.organizationManagedRuleMetadata
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.PutOrganizationConfigRuleRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutOrganizationConfigRuleRequest(")
append("excludedAccounts=$excludedAccounts,")
append("organizationConfigRuleName=$organizationConfigRuleName,")
append("organizationCustomPolicyRuleMetadata=$organizationCustomPolicyRuleMetadata,")
append("organizationCustomRuleMetadata=$organizationCustomRuleMetadata,")
append("organizationManagedRuleMetadata=$organizationManagedRuleMetadata)")
}
override fun hashCode(): kotlin.Int {
var result = excludedAccounts?.hashCode() ?: 0
result = 31 * result + (organizationConfigRuleName?.hashCode() ?: 0)
result = 31 * result + (organizationCustomPolicyRuleMetadata?.hashCode() ?: 0)
result = 31 * result + (organizationCustomRuleMetadata?.hashCode() ?: 0)
result = 31 * result + (organizationManagedRuleMetadata?.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 PutOrganizationConfigRuleRequest
if (excludedAccounts != other.excludedAccounts) return false
if (organizationConfigRuleName != other.organizationConfigRuleName) return false
if (organizationCustomPolicyRuleMetadata != other.organizationCustomPolicyRuleMetadata) return false
if (organizationCustomRuleMetadata != other.organizationCustomRuleMetadata) return false
if (organizationManagedRuleMetadata != other.organizationManagedRuleMetadata) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.PutOrganizationConfigRuleRequest = Builder(this).apply(block).build()
class Builder {
/**
* A comma-separated list of accounts that you want to exclude from an organization Config rule.
*/
var excludedAccounts: List? = null
/**
* The name that you assign to an organization Config rule.
*/
var organizationConfigRuleName: kotlin.String? = null
/**
* An object that specifies metadata for your organization's Config Custom Policy rule. The metadata includes the runtime system in use, which accounts have debug logging enabled, and other custom rule metadata, such as resource type, resource ID of Amazon Web Services resource, and organization trigger types that initiate Config to evaluate Amazon Web Services resources against a rule.
*/
var organizationCustomPolicyRuleMetadata: aws.sdk.kotlin.services.configservice.model.OrganizationCustomPolicyRuleMetadata? = null
/**
* An `OrganizationCustomRuleMetadata` object.
*/
var organizationCustomRuleMetadata: aws.sdk.kotlin.services.configservice.model.OrganizationCustomRuleMetadata? = null
/**
* An `OrganizationManagedRuleMetadata` object.
*/
var organizationManagedRuleMetadata: aws.sdk.kotlin.services.configservice.model.OrganizationManagedRuleMetadata? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.PutOrganizationConfigRuleRequest) : this() {
this.excludedAccounts = x.excludedAccounts
this.organizationConfigRuleName = x.organizationConfigRuleName
this.organizationCustomPolicyRuleMetadata = x.organizationCustomPolicyRuleMetadata
this.organizationCustomRuleMetadata = x.organizationCustomRuleMetadata
this.organizationManagedRuleMetadata = x.organizationManagedRuleMetadata
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.PutOrganizationConfigRuleRequest = PutOrganizationConfigRuleRequest(this)
/**
* construct an [aws.sdk.kotlin.services.configservice.model.OrganizationCustomPolicyRuleMetadata] inside the given [block]
*/
fun organizationCustomPolicyRuleMetadata(block: aws.sdk.kotlin.services.configservice.model.OrganizationCustomPolicyRuleMetadata.Builder.() -> kotlin.Unit) {
this.organizationCustomPolicyRuleMetadata = aws.sdk.kotlin.services.configservice.model.OrganizationCustomPolicyRuleMetadata.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.configservice.model.OrganizationCustomRuleMetadata] inside the given [block]
*/
fun organizationCustomRuleMetadata(block: aws.sdk.kotlin.services.configservice.model.OrganizationCustomRuleMetadata.Builder.() -> kotlin.Unit) {
this.organizationCustomRuleMetadata = aws.sdk.kotlin.services.configservice.model.OrganizationCustomRuleMetadata.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.configservice.model.OrganizationManagedRuleMetadata] inside the given [block]
*/
fun organizationManagedRuleMetadata(block: aws.sdk.kotlin.services.configservice.model.OrganizationManagedRuleMetadata.Builder.() -> kotlin.Unit) {
this.organizationManagedRuleMetadata = aws.sdk.kotlin.services.configservice.model.OrganizationManagedRuleMetadata.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy