commonMain.aws.sdk.kotlin.services.resourcegroups.model.UpdateGroupRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resourcegroups-jvm Show documentation
Show all versions of resourcegroups-jvm Show documentation
The AWS SDK for Kotlin client for Resource Groups
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.resourcegroups.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateGroupRequest private constructor(builder: Builder) {
/**
* The critical rank of the application group on a scale of 1 to 10, with a rank of 1 being the most critical, and a rank of 10 being least critical.
*/
public val criticality: kotlin.Int? = builder.criticality
/**
* The new description that you want to update the resource group with. Descriptions can contain letters, numbers, hyphens, underscores, periods, and spaces.
*/
public val description: kotlin.String? = builder.description
/**
* The name of the application group, which you can change at any time.
*/
public val displayName: kotlin.String? = builder.displayName
/**
* The name or the ARN of the resource group to update.
*/
public val group: kotlin.String? = builder.group
/**
* Don't use this parameter. Use `Group` instead.
*/
@Deprecated("This field is deprecated, use Group instead.")
public val groupName: kotlin.String? = builder.groupName
/**
* A name, email address or other identifier for the person or group who is considered as the owner of this application group within your organization.
*/
public val owner: kotlin.String? = builder.owner
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.resourcegroups.model.UpdateGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateGroupRequest(")
append("criticality=$criticality,")
append("description=$description,")
append("displayName=$displayName,")
append("group=$group,")
append("groupName=$groupName,")
append("owner=$owner")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = criticality ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (displayName?.hashCode() ?: 0)
result = 31 * result + (group?.hashCode() ?: 0)
result = 31 * result + (groupName?.hashCode() ?: 0)
result = 31 * result + (owner?.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 (criticality != other.criticality) return false
if (description != other.description) return false
if (displayName != other.displayName) return false
if (group != other.group) return false
if (groupName != other.groupName) return false
if (owner != other.owner) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.resourcegroups.model.UpdateGroupRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The critical rank of the application group on a scale of 1 to 10, with a rank of 1 being the most critical, and a rank of 10 being least critical.
*/
public var criticality: kotlin.Int? = null
/**
* The new description that you want to update the resource group with. Descriptions can contain letters, numbers, hyphens, underscores, periods, and spaces.
*/
public var description: kotlin.String? = null
/**
* The name of the application group, which you can change at any time.
*/
public var displayName: kotlin.String? = null
/**
* The name or the ARN of the resource group to update.
*/
public var group: kotlin.String? = null
/**
* Don't use this parameter. Use `Group` instead.
*/
@Deprecated("This field is deprecated, use Group instead.")
public var groupName: kotlin.String? = null
/**
* A name, email address or other identifier for the person or group who is considered as the owner of this application group within your organization.
*/
public var owner: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.resourcegroups.model.UpdateGroupRequest) : this() {
this.criticality = x.criticality
this.description = x.description
this.displayName = x.displayName
this.group = x.group
this.groupName = x.groupName
this.owner = x.owner
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.resourcegroups.model.UpdateGroupRequest = UpdateGroupRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy