
commonMain.aws.sdk.kotlin.services.iam.model.UpdateGroupRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iam.model
public class UpdateGroupRequest private constructor(builder: Builder) {
/**
* Name of the IAM group to update. If you're changing the name of the group, this is the original name.
*
* 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
/**
* New name for the IAM group. Only include this if changing the group's name.
*
* IAM user, group, role, and policy names must be unique within the account. Names are not distinguished by case. For example, you cannot create resources named both "MyResource" and "myresource".
*/
public val newGroupName: kotlin.String? = builder.newGroupName
/**
* New path for the IAM group. Only include this if changing the group's path.
*
* This parameter allows (through its [regex pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (`\u0021`) through the DEL character (`\u007F`), including most punctuation characters, digits, and upper and lowercased letters.
*/
public val newPath: kotlin.String? = builder.newPath
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iam.model.UpdateGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateGroupRequest(")
append("groupName=$groupName,")
append("newGroupName=$newGroupName,")
append("newPath=$newPath")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = groupName?.hashCode() ?: 0
result = 31 * result + (newGroupName?.hashCode() ?: 0)
result = 31 * result + (newPath?.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 UpdateGroupRequest
if (groupName != other.groupName) return false
if (newGroupName != other.newGroupName) return false
if (newPath != other.newPath) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iam.model.UpdateGroupRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Name of the IAM group to update. If you're changing the name of the group, this is the original name.
*
* 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
/**
* New name for the IAM group. Only include this if changing the group's name.
*
* IAM user, group, role, and policy names must be unique within the account. Names are not distinguished by case. For example, you cannot create resources named both "MyResource" and "myresource".
*/
public var newGroupName: kotlin.String? = null
/**
* New path for the IAM group. Only include this if changing the group's path.
*
* This parameter allows (through its [regex pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (`\u0021`) through the DEL character (`\u007F`), including most punctuation characters, digits, and upper and lowercased letters.
*/
public var newPath: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iam.model.UpdateGroupRequest) : this() {
this.groupName = x.groupName
this.newGroupName = x.newGroupName
this.newPath = x.newPath
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iam.model.UpdateGroupRequest = UpdateGroupRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy