commonMain.aws.sdk.kotlin.services.fms.model.GetComplianceDetailRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
public class GetComplianceDetailRequest private constructor(builder: Builder) {
/**
* The Amazon Web Services account that owns the resources that you want to get the details for.
*/
public val memberAccount: kotlin.String? = builder.memberAccount
/**
* The ID of the policy that you want to get the details for. `PolicyId` is returned by `PutPolicy` and by `ListPolicies`.
*/
public val policyId: kotlin.String? = builder.policyId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.GetComplianceDetailRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetComplianceDetailRequest(")
append("memberAccount=$memberAccount,")
append("policyId=$policyId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = memberAccount?.hashCode() ?: 0
result = 31 * result + (policyId?.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 GetComplianceDetailRequest
if (memberAccount != other.memberAccount) return false
if (policyId != other.policyId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.GetComplianceDetailRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Web Services account that owns the resources that you want to get the details for.
*/
public var memberAccount: kotlin.String? = null
/**
* The ID of the policy that you want to get the details for. `PolicyId` is returned by `PutPolicy` and by `ListPolicies`.
*/
public var policyId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.GetComplianceDetailRequest) : this() {
this.memberAccount = x.memberAccount
this.policyId = x.policyId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.GetComplianceDetailRequest = GetComplianceDetailRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy