
commonMain.aws.sdk.kotlin.services.wellarchitected.model.ProfileNotificationSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
/**
* The profile notification summary.
*/
public class ProfileNotificationSummary private constructor(builder: Builder) {
/**
* The current profile version.
*/
public val currentProfileVersion: kotlin.String? = builder.currentProfileVersion
/**
* The latest profile version.
*/
public val latestProfileVersion: kotlin.String? = builder.latestProfileVersion
/**
* The profile ARN.
*/
public val profileArn: kotlin.String? = builder.profileArn
/**
* The profile name.
*/
public val profileName: kotlin.String? = builder.profileName
/**
* Type of notification.
*/
public val type: aws.sdk.kotlin.services.wellarchitected.model.ProfileNotificationType? = builder.type
/**
* The ID assigned to the workload. This ID is unique within an Amazon Web Services Region.
*/
public val workloadId: kotlin.String? = builder.workloadId
/**
* The name of the workload.
*
* The name must be unique within an account within an Amazon Web Services Region. Spaces and capitalization are ignored when checking for uniqueness.
*/
public val workloadName: kotlin.String? = builder.workloadName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.ProfileNotificationSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProfileNotificationSummary(")
append("currentProfileVersion=$currentProfileVersion,")
append("latestProfileVersion=$latestProfileVersion,")
append("profileArn=$profileArn,")
append("profileName=$profileName,")
append("type=$type,")
append("workloadId=$workloadId,")
append("workloadName=$workloadName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = currentProfileVersion?.hashCode() ?: 0
result = 31 * result + (latestProfileVersion?.hashCode() ?: 0)
result = 31 * result + (profileArn?.hashCode() ?: 0)
result = 31 * result + (profileName?.hashCode() ?: 0)
result = 31 * result + (type?.hashCode() ?: 0)
result = 31 * result + (workloadId?.hashCode() ?: 0)
result = 31 * result + (workloadName?.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 ProfileNotificationSummary
if (currentProfileVersion != other.currentProfileVersion) return false
if (latestProfileVersion != other.latestProfileVersion) return false
if (profileArn != other.profileArn) return false
if (profileName != other.profileName) return false
if (type != other.type) return false
if (workloadId != other.workloadId) return false
if (workloadName != other.workloadName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.ProfileNotificationSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The current profile version.
*/
public var currentProfileVersion: kotlin.String? = null
/**
* The latest profile version.
*/
public var latestProfileVersion: kotlin.String? = null
/**
* The profile ARN.
*/
public var profileArn: kotlin.String? = null
/**
* The profile name.
*/
public var profileName: kotlin.String? = null
/**
* Type of notification.
*/
public var type: aws.sdk.kotlin.services.wellarchitected.model.ProfileNotificationType? = null
/**
* The ID assigned to the workload. This ID is unique within an Amazon Web Services Region.
*/
public var workloadId: kotlin.String? = null
/**
* The name of the workload.
*
* The name must be unique within an account within an Amazon Web Services Region. Spaces and capitalization are ignored when checking for uniqueness.
*/
public var workloadName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.ProfileNotificationSummary) : this() {
this.currentProfileVersion = x.currentProfileVersion
this.latestProfileVersion = x.latestProfileVersion
this.profileArn = x.profileArn
this.profileName = x.profileName
this.type = x.type
this.workloadId = x.workloadId
this.workloadName = x.workloadName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.ProfileNotificationSummary = ProfileNotificationSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy