
commonMain.aws.sdk.kotlin.services.verifiedpermissions.model.BatchIsAuthorizedRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.verifiedpermissions.model
public class BatchIsAuthorizedRequest private constructor(builder: Builder) {
/**
* Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies.
*
* You can include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
*/
public val entities: aws.sdk.kotlin.services.verifiedpermissions.model.EntitiesDefinition? = builder.entities
/**
* Specifies the ID of the policy store. Policies in this policy store will be used to make the authorization decisions for the input.
*/
public val policyStoreId: kotlin.String? = builder.policyStoreId
/**
* An array of up to 30 requests that you want Verified Permissions to evaluate.
*/
public val requests: List? = builder.requests
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.verifiedpermissions.model.BatchIsAuthorizedRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchIsAuthorizedRequest(")
append("entities=$entities,")
append("policyStoreId=$policyStoreId,")
append("requests=$requests")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = entities?.hashCode() ?: 0
result = 31 * result + (policyStoreId?.hashCode() ?: 0)
result = 31 * result + (requests?.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 BatchIsAuthorizedRequest
if (entities != other.entities) return false
if (policyStoreId != other.policyStoreId) return false
if (requests != other.requests) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.verifiedpermissions.model.BatchIsAuthorizedRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies.
*
* You can include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
*/
public var entities: aws.sdk.kotlin.services.verifiedpermissions.model.EntitiesDefinition? = null
/**
* Specifies the ID of the policy store. Policies in this policy store will be used to make the authorization decisions for the input.
*/
public var policyStoreId: kotlin.String? = null
/**
* An array of up to 30 requests that you want Verified Permissions to evaluate.
*/
public var requests: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.verifiedpermissions.model.BatchIsAuthorizedRequest) : this() {
this.entities = x.entities
this.policyStoreId = x.policyStoreId
this.requests = x.requests
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.verifiedpermissions.model.BatchIsAuthorizedRequest = BatchIsAuthorizedRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy