commonMain.aws.sdk.kotlin.services.backup.model.UpdateFrameworkResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.backup.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class UpdateFrameworkResponse private constructor(builder: Builder) {
/**
* The date and time that a framework is created, in ISO 8601 representation. The value of `CreationTime` is accurate to milliseconds. For example, 2020-07-10T15:00:00.000-08:00 represents the 10th of July 2020 at 3:00 PM 8 hours behind UTC.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
*/
public val frameworkArn: kotlin.String? = builder.frameworkArn
/**
* The unique name of a framework. This name is between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
*/
public val frameworkName: kotlin.String? = builder.frameworkName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.backup.model.UpdateFrameworkResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateFrameworkResponse(")
append("creationTime=$creationTime,")
append("frameworkArn=$frameworkArn,")
append("frameworkName=$frameworkName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationTime?.hashCode() ?: 0
result = 31 * result + (frameworkArn?.hashCode() ?: 0)
result = 31 * result + (frameworkName?.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 UpdateFrameworkResponse
if (creationTime != other.creationTime) return false
if (frameworkArn != other.frameworkArn) return false
if (frameworkName != other.frameworkName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.backup.model.UpdateFrameworkResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The date and time that a framework is created, in ISO 8601 representation. The value of `CreationTime` is accurate to milliseconds. For example, 2020-07-10T15:00:00.000-08:00 represents the 10th of July 2020 at 3:00 PM 8 hours behind UTC.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
*/
public var frameworkArn: kotlin.String? = null
/**
* The unique name of a framework. This name is between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
*/
public var frameworkName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.backup.model.UpdateFrameworkResponse) : this() {
this.creationTime = x.creationTime
this.frameworkArn = x.frameworkArn
this.frameworkName = x.frameworkName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.backup.model.UpdateFrameworkResponse = UpdateFrameworkResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}