
commonMain.aws.sdk.kotlin.services.rekognition.model.DeleteProjectPolicyRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DeleteProjectPolicyRequest private constructor(builder: Builder) {
/**
* The name of the policy that you want to delete.
*/
public val policyName: kotlin.String? = builder.policyName
/**
* The ID of the project policy revision that you want to delete.
*/
public val policyRevisionId: kotlin.String? = builder.policyRevisionId
/**
* The Amazon Resource Name (ARN) of the project that the project policy you want to delete is attached to.
*/
public val projectArn: kotlin.String? = builder.projectArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.DeleteProjectPolicyRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteProjectPolicyRequest(")
append("policyName=$policyName,")
append("policyRevisionId=$policyRevisionId,")
append("projectArn=$projectArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = policyName?.hashCode() ?: 0
result = 31 * result + (policyRevisionId?.hashCode() ?: 0)
result = 31 * result + (projectArn?.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 DeleteProjectPolicyRequest
if (policyName != other.policyName) return false
if (policyRevisionId != other.policyRevisionId) return false
if (projectArn != other.projectArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.DeleteProjectPolicyRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the policy that you want to delete.
*/
public var policyName: kotlin.String? = null
/**
* The ID of the project policy revision that you want to delete.
*/
public var policyRevisionId: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the project that the project policy you want to delete is attached to.
*/
public var projectArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.DeleteProjectPolicyRequest) : this() {
this.policyName = x.policyName
this.policyRevisionId = x.policyRevisionId
this.projectArn = x.projectArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.DeleteProjectPolicyRequest = DeleteProjectPolicyRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy