
commonMain.aws.sdk.kotlin.services.iam.model.DeleteGroupPolicyRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iam.model
public class DeleteGroupPolicyRequest private constructor(builder: Builder) {
/**
* The name (friendly name, not ARN) identifying the group that the policy is embedded in.
*
* This parameter allows (through its [regex pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
*/
public val groupName: kotlin.String? = builder.groupName
/**
* The name identifying the policy document to delete.
*
* This parameter allows (through its [regex pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
*/
public val policyName: kotlin.String? = builder.policyName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iam.model.DeleteGroupPolicyRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteGroupPolicyRequest(")
append("groupName=$groupName,")
append("policyName=$policyName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = groupName?.hashCode() ?: 0
result = 31 * result + (policyName?.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 DeleteGroupPolicyRequest
if (groupName != other.groupName) return false
if (policyName != other.policyName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iam.model.DeleteGroupPolicyRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The name (friendly name, not ARN) identifying the group that the policy is embedded in.
*
* This parameter allows (through its [regex pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
*/
public var groupName: kotlin.String? = null
/**
* The name identifying the policy document to delete.
*
* This parameter allows (through its [regex pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
*/
public var policyName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iam.model.DeleteGroupPolicyRequest) : this() {
this.groupName = x.groupName
this.policyName = x.policyName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iam.model.DeleteGroupPolicyRequest = DeleteGroupPolicyRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy