commonMain.aws.sdk.kotlin.services.greengrass.model.GetGroupCertificateAuthorityResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of greengrass-jvm Show documentation
Show all versions of greengrass-jvm Show documentation
The AWS SDK for Kotlin client for Greengrass
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.greengrass.model
public class GetGroupCertificateAuthorityResponse private constructor(builder: Builder) {
/**
* The ARN of the certificate authority for the group.
*/
public val groupCertificateAuthorityArn: kotlin.String? = builder.groupCertificateAuthorityArn
/**
* The ID of the certificate authority for the group.
*/
public val groupCertificateAuthorityId: kotlin.String? = builder.groupCertificateAuthorityId
/**
* The PEM encoded certificate for the group.
*/
public val pemEncodedCertificate: kotlin.String? = builder.pemEncodedCertificate
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.greengrass.model.GetGroupCertificateAuthorityResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetGroupCertificateAuthorityResponse(")
append("groupCertificateAuthorityArn=$groupCertificateAuthorityArn,")
append("groupCertificateAuthorityId=$groupCertificateAuthorityId,")
append("pemEncodedCertificate=$pemEncodedCertificate")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = groupCertificateAuthorityArn?.hashCode() ?: 0
result = 31 * result + (groupCertificateAuthorityId?.hashCode() ?: 0)
result = 31 * result + (pemEncodedCertificate?.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 GetGroupCertificateAuthorityResponse
if (groupCertificateAuthorityArn != other.groupCertificateAuthorityArn) return false
if (groupCertificateAuthorityId != other.groupCertificateAuthorityId) return false
if (pemEncodedCertificate != other.pemEncodedCertificate) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.greengrass.model.GetGroupCertificateAuthorityResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN of the certificate authority for the group.
*/
public var groupCertificateAuthorityArn: kotlin.String? = null
/**
* The ID of the certificate authority for the group.
*/
public var groupCertificateAuthorityId: kotlin.String? = null
/**
* The PEM encoded certificate for the group.
*/
public var pemEncodedCertificate: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.greengrass.model.GetGroupCertificateAuthorityResponse) : this() {
this.groupCertificateAuthorityArn = x.groupCertificateAuthorityArn
this.groupCertificateAuthorityId = x.groupCertificateAuthorityId
this.pemEncodedCertificate = x.pemEncodedCertificate
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.greengrass.model.GetGroupCertificateAuthorityResponse = GetGroupCertificateAuthorityResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}