commonMain.aws.sdk.kotlin.services.codedeploy.model.ApplicationInfo.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codedeploy-jvm Show documentation
Show all versions of codedeploy-jvm Show documentation
The AWS SDK for Kotlin client for CodeDeploy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codedeploy.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Information about an application.
*/
public class ApplicationInfo private constructor(builder: Builder) {
/**
* The application ID.
*/
public val applicationId: kotlin.String? = builder.applicationId
/**
* The application name.
*/
public val applicationName: kotlin.String? = builder.applicationName
/**
* The destination platform type for deployment of the application (`Lambda` or `Server`).
*/
public val computePlatform: aws.sdk.kotlin.services.codedeploy.model.ComputePlatform? = builder.computePlatform
/**
* The time at which the application was created.
*/
public val createTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createTime
/**
* The name for a connection to a GitHub account.
*/
public val gitHubAccountName: kotlin.String? = builder.gitHubAccountName
/**
* True if the user has authenticated with GitHub for the specified application. Otherwise, false.
*/
public val linkedToGitHub: kotlin.Boolean = builder.linkedToGitHub
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codedeploy.model.ApplicationInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ApplicationInfo(")
append("applicationId=$applicationId,")
append("applicationName=$applicationName,")
append("computePlatform=$computePlatform,")
append("createTime=$createTime,")
append("gitHubAccountName=$gitHubAccountName,")
append("linkedToGitHub=$linkedToGitHub")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId?.hashCode() ?: 0
result = 31 * result + (applicationName?.hashCode() ?: 0)
result = 31 * result + (computePlatform?.hashCode() ?: 0)
result = 31 * result + (createTime?.hashCode() ?: 0)
result = 31 * result + (gitHubAccountName?.hashCode() ?: 0)
result = 31 * result + (linkedToGitHub.hashCode())
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 ApplicationInfo
if (applicationId != other.applicationId) return false
if (applicationName != other.applicationName) return false
if (computePlatform != other.computePlatform) return false
if (createTime != other.createTime) return false
if (gitHubAccountName != other.gitHubAccountName) return false
if (linkedToGitHub != other.linkedToGitHub) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codedeploy.model.ApplicationInfo = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The application ID.
*/
public var applicationId: kotlin.String? = null
/**
* The application name.
*/
public var applicationName: kotlin.String? = null
/**
* The destination platform type for deployment of the application (`Lambda` or `Server`).
*/
public var computePlatform: aws.sdk.kotlin.services.codedeploy.model.ComputePlatform? = null
/**
* The time at which the application was created.
*/
public var createTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name for a connection to a GitHub account.
*/
public var gitHubAccountName: kotlin.String? = null
/**
* True if the user has authenticated with GitHub for the specified application. Otherwise, false.
*/
public var linkedToGitHub: kotlin.Boolean = false
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codedeploy.model.ApplicationInfo) : this() {
this.applicationId = x.applicationId
this.applicationName = x.applicationName
this.computePlatform = x.computePlatform
this.createTime = x.createTime
this.gitHubAccountName = x.gitHubAccountName
this.linkedToGitHub = x.linkedToGitHub
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codedeploy.model.ApplicationInfo = ApplicationInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}