commonMain.aws.sdk.kotlin.services.resourcegroups.model.GroupingStatusesItem.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* The information about a grouping or ungrouping resource action.
*/
public class GroupingStatusesItem private constructor(builder: Builder) {
/**
* Describes the resource grouping action with values of `GROUP` or `UNGROUP`.
*/
public val action: aws.sdk.kotlin.services.resourcegroups.model.GroupingType? = builder.action
/**
* Specifies the error code that was raised.
*/
public val errorCode: kotlin.String? = builder.errorCode
/**
* A message that explains the `ErrorCode`.
*/
public val errorMessage: kotlin.String? = builder.errorMessage
/**
* The Amazon resource name (ARN) of a resource.
*/
public val resourceArn: kotlin.String? = builder.resourceArn
/**
* Describes the resource grouping status with values of `SUCCESS`, `FAILED`, `IN_PROGRESS`, or `SKIPPED`.
*/
public val status: aws.sdk.kotlin.services.resourcegroups.model.GroupingStatus? = builder.status
/**
* A timestamp of when the status was last updated.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.resourcegroups.model.GroupingStatusesItem = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GroupingStatusesItem(")
append("action=$action,")
append("errorCode=$errorCode,")
append("errorMessage=$errorMessage,")
append("resourceArn=$resourceArn,")
append("status=$status,")
append("updatedAt=$updatedAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = action?.hashCode() ?: 0
result = 31 * result + (errorCode?.hashCode() ?: 0)
result = 31 * result + (errorMessage?.hashCode() ?: 0)
result = 31 * result + (resourceArn?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (updatedAt?.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 GroupingStatusesItem
if (action != other.action) return false
if (errorCode != other.errorCode) return false
if (errorMessage != other.errorMessage) return false
if (resourceArn != other.resourceArn) return false
if (status != other.status) return false
if (updatedAt != other.updatedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.resourcegroups.model.GroupingStatusesItem = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Describes the resource grouping action with values of `GROUP` or `UNGROUP`.
*/
public var action: aws.sdk.kotlin.services.resourcegroups.model.GroupingType? = null
/**
* Specifies the error code that was raised.
*/
public var errorCode: kotlin.String? = null
/**
* A message that explains the `ErrorCode`.
*/
public var errorMessage: kotlin.String? = null
/**
* The Amazon resource name (ARN) of a resource.
*/
public var resourceArn: kotlin.String? = null
/**
* Describes the resource grouping status with values of `SUCCESS`, `FAILED`, `IN_PROGRESS`, or `SKIPPED`.
*/
public var status: aws.sdk.kotlin.services.resourcegroups.model.GroupingStatus? = null
/**
* A timestamp of when the status was last updated.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.resourcegroups.model.GroupingStatusesItem) : this() {
this.action = x.action
this.errorCode = x.errorCode
this.errorMessage = x.errorMessage
this.resourceArn = x.resourceArn
this.status = x.status
this.updatedAt = x.updatedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.resourcegroups.model.GroupingStatusesItem = GroupingStatusesItem(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy