
commonMain.aws.sdk.kotlin.services.ssm.model.DescribeDocumentPermissionResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeDocumentPermissionResponse private constructor(builder: Builder) {
/**
* The account IDs that have permission to use this document. The ID can be either an Amazon Web Services account or *All*.
*/
public val accountIds: List? = builder.accountIds
/**
* A list of Amazon Web Services accounts where the current document is shared and the version shared with each account.
*/
public val accountSharingInfoList: List? = builder.accountSharingInfoList
/**
* The token for the next set of items to return. Use this token to get the next set of results.
*/
public val nextToken: kotlin.String? = builder.nextToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.DescribeDocumentPermissionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeDocumentPermissionResponse(")
append("accountIds=$accountIds,")
append("accountSharingInfoList=$accountSharingInfoList,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountIds?.hashCode() ?: 0
result = 31 * result + (accountSharingInfoList?.hashCode() ?: 0)
result = 31 * result + (nextToken?.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 DescribeDocumentPermissionResponse
if (accountIds != other.accountIds) return false
if (accountSharingInfoList != other.accountSharingInfoList) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.DescribeDocumentPermissionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The account IDs that have permission to use this document. The ID can be either an Amazon Web Services account or *All*.
*/
public var accountIds: List? = null
/**
* A list of Amazon Web Services accounts where the current document is shared and the version shared with each account.
*/
public var accountSharingInfoList: List? = null
/**
* The token for the next set of items to return. Use this token to get the next set of results.
*/
public var nextToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.DescribeDocumentPermissionResponse) : this() {
this.accountIds = x.accountIds
this.accountSharingInfoList = x.accountSharingInfoList
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.DescribeDocumentPermissionResponse = DescribeDocumentPermissionResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy