
commonMain.aws.sdk.kotlin.services.iam.model.GetAccountAuthorizationDetailsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iam.model
/**
* Contains the response to a successful GetAccountAuthorizationDetails request.
*/
public class GetAccountAuthorizationDetailsResponse private constructor(builder: Builder) {
/**
* A list containing information about IAM groups.
*/
public val groupDetailList: List? = builder.groupDetailList
/**
* A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the `Marker` request parameter to retrieve more items. Note that IAM might return fewer than the `MaxItems` number of results even when there are more results available. We recommend that you check `IsTruncated` after every call to ensure that you receive all your results.
*/
public val isTruncated: kotlin.Boolean = builder.isTruncated
/**
* When `IsTruncated` is `true`, this element is present and contains the value to use for the `Marker` parameter in a subsequent pagination request.
*/
public val marker: kotlin.String? = builder.marker
/**
* A list containing information about managed policies.
*/
public val policies: List? = builder.policies
/**
* A list containing information about IAM roles.
*/
public val roleDetailList: List? = builder.roleDetailList
/**
* A list containing information about IAM users.
*/
public val userDetailList: List? = builder.userDetailList
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iam.model.GetAccountAuthorizationDetailsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetAccountAuthorizationDetailsResponse(")
append("groupDetailList=$groupDetailList,")
append("isTruncated=$isTruncated,")
append("marker=$marker,")
append("policies=$policies,")
append("roleDetailList=$roleDetailList,")
append("userDetailList=$userDetailList")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = groupDetailList?.hashCode() ?: 0
result = 31 * result + (isTruncated.hashCode())
result = 31 * result + (marker?.hashCode() ?: 0)
result = 31 * result + (policies?.hashCode() ?: 0)
result = 31 * result + (roleDetailList?.hashCode() ?: 0)
result = 31 * result + (userDetailList?.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 GetAccountAuthorizationDetailsResponse
if (groupDetailList != other.groupDetailList) return false
if (isTruncated != other.isTruncated) return false
if (marker != other.marker) return false
if (policies != other.policies) return false
if (roleDetailList != other.roleDetailList) return false
if (userDetailList != other.userDetailList) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iam.model.GetAccountAuthorizationDetailsResponse = Builder(this).apply(block).build()
public class Builder {
/**
* A list containing information about IAM groups.
*/
public var groupDetailList: List? = null
/**
* A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the `Marker` request parameter to retrieve more items. Note that IAM might return fewer than the `MaxItems` number of results even when there are more results available. We recommend that you check `IsTruncated` after every call to ensure that you receive all your results.
*/
public var isTruncated: kotlin.Boolean = false
/**
* When `IsTruncated` is `true`, this element is present and contains the value to use for the `Marker` parameter in a subsequent pagination request.
*/
public var marker: kotlin.String? = null
/**
* A list containing information about managed policies.
*/
public var policies: List? = null
/**
* A list containing information about IAM roles.
*/
public var roleDetailList: List? = null
/**
* A list containing information about IAM users.
*/
public var userDetailList: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iam.model.GetAccountAuthorizationDetailsResponse) : this() {
this.groupDetailList = x.groupDetailList
this.isTruncated = x.isTruncated
this.marker = x.marker
this.policies = x.policies
this.roleDetailList = x.roleDetailList
this.userDetailList = x.userDetailList
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iam.model.GetAccountAuthorizationDetailsResponse = GetAccountAuthorizationDetailsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy