
commonMain.aws.sdk.kotlin.services.codeguruprofiler.model.RemovePermissionResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codeguruprofiler.model
/**
* The structure representing the `removePermissionResponse`.
*/
public class RemovePermissionResponse private constructor(builder: Builder) {
/**
* The JSON-formatted resource-based policy on the profiling group after the specified permissions were removed.
*/
public val policy: kotlin.String? = builder.policy
/**
* A universally unique identifier (UUID) for the revision of the resource-based policy after the specified permissions were removed. The updated JSON-formatted policy is in the `policy` element of the response.
*/
public val revisionId: kotlin.String? = builder.revisionId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codeguruprofiler.model.RemovePermissionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RemovePermissionResponse(")
append("policy=$policy,")
append("revisionId=$revisionId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = policy?.hashCode() ?: 0
result = 31 * result + (revisionId?.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 RemovePermissionResponse
if (policy != other.policy) return false
if (revisionId != other.revisionId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codeguruprofiler.model.RemovePermissionResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The JSON-formatted resource-based policy on the profiling group after the specified permissions were removed.
*/
public var policy: kotlin.String? = null
/**
* A universally unique identifier (UUID) for the revision of the resource-based policy after the specified permissions were removed. The updated JSON-formatted policy is in the `policy` element of the response.
*/
public var revisionId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codeguruprofiler.model.RemovePermissionResponse) : this() {
this.policy = x.policy
this.revisionId = x.revisionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codeguruprofiler.model.RemovePermissionResponse = RemovePermissionResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy