commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.EventDescription.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticbeanstalk-jvm Show documentation
Show all versions of elasticbeanstalk-jvm Show documentation
The AWS SDK for Kotlin client for Elastic Beanstalk
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elasticbeanstalk.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Describes an event.
*/
public class EventDescription private constructor(builder: Builder) {
/**
* The application associated with the event.
*/
public val applicationName: kotlin.String? = builder.applicationName
/**
* The name of the environment associated with this event.
*/
public val environmentName: kotlin.String? = builder.environmentName
/**
* The date when the event occurred.
*/
public val eventDate: aws.smithy.kotlin.runtime.time.Instant? = builder.eventDate
/**
* The event message.
*/
public val message: kotlin.String? = builder.message
/**
* The ARN of the platform version.
*/
public val platformArn: kotlin.String? = builder.platformArn
/**
* The web service request ID for the activity of this event.
*/
public val requestId: kotlin.String? = builder.requestId
/**
* The severity level of this event.
*/
public val severity: aws.sdk.kotlin.services.elasticbeanstalk.model.EventSeverity? = builder.severity
/**
* The name of the configuration associated with this event.
*/
public val templateName: kotlin.String? = builder.templateName
/**
* The release label for the application version associated with this event.
*/
public val versionLabel: kotlin.String? = builder.versionLabel
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticbeanstalk.model.EventDescription = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EventDescription(")
append("applicationName=$applicationName,")
append("environmentName=$environmentName,")
append("eventDate=$eventDate,")
append("message=$message,")
append("platformArn=$platformArn,")
append("requestId=$requestId,")
append("severity=$severity,")
append("templateName=$templateName,")
append("versionLabel=$versionLabel")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationName?.hashCode() ?: 0
result = 31 * result + (environmentName?.hashCode() ?: 0)
result = 31 * result + (eventDate?.hashCode() ?: 0)
result = 31 * result + (message?.hashCode() ?: 0)
result = 31 * result + (platformArn?.hashCode() ?: 0)
result = 31 * result + (requestId?.hashCode() ?: 0)
result = 31 * result + (severity?.hashCode() ?: 0)
result = 31 * result + (templateName?.hashCode() ?: 0)
result = 31 * result + (versionLabel?.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 EventDescription
if (applicationName != other.applicationName) return false
if (environmentName != other.environmentName) return false
if (eventDate != other.eventDate) return false
if (message != other.message) return false
if (platformArn != other.platformArn) return false
if (requestId != other.requestId) return false
if (severity != other.severity) return false
if (templateName != other.templateName) return false
if (versionLabel != other.versionLabel) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticbeanstalk.model.EventDescription = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The application associated with the event.
*/
public var applicationName: kotlin.String? = null
/**
* The name of the environment associated with this event.
*/
public var environmentName: kotlin.String? = null
/**
* The date when the event occurred.
*/
public var eventDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The event message.
*/
public var message: kotlin.String? = null
/**
* The ARN of the platform version.
*/
public var platformArn: kotlin.String? = null
/**
* The web service request ID for the activity of this event.
*/
public var requestId: kotlin.String? = null
/**
* The severity level of this event.
*/
public var severity: aws.sdk.kotlin.services.elasticbeanstalk.model.EventSeverity? = null
/**
* The name of the configuration associated with this event.
*/
public var templateName: kotlin.String? = null
/**
* The release label for the application version associated with this event.
*/
public var versionLabel: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticbeanstalk.model.EventDescription) : this() {
this.applicationName = x.applicationName
this.environmentName = x.environmentName
this.eventDate = x.eventDate
this.message = x.message
this.platformArn = x.platformArn
this.requestId = x.requestId
this.severity = x.severity
this.templateName = x.templateName
this.versionLabel = x.versionLabel
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticbeanstalk.model.EventDescription = EventDescription(this)
internal fun correctErrors(): Builder {
return this
}
}
}