commonMain.aws.sdk.kotlin.services.greengrass.model.GetGroupCertificateAuthorityRequest.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 GetGroupCertificateAuthorityRequest private constructor(builder: Builder) {
/**
* The ID of the certificate authority.
*/
public val certificateAuthorityId: kotlin.String? = builder.certificateAuthorityId
/**
* The ID of the Greengrass group.
*/
public val groupId: kotlin.String? = builder.groupId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.greengrass.model.GetGroupCertificateAuthorityRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetGroupCertificateAuthorityRequest(")
append("certificateAuthorityId=$certificateAuthorityId,")
append("groupId=$groupId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = certificateAuthorityId?.hashCode() ?: 0
result = 31 * result + (groupId?.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 GetGroupCertificateAuthorityRequest
if (certificateAuthorityId != other.certificateAuthorityId) return false
if (groupId != other.groupId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.greengrass.model.GetGroupCertificateAuthorityRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the certificate authority.
*/
public var certificateAuthorityId: kotlin.String? = null
/**
* The ID of the Greengrass group.
*/
public var groupId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.greengrass.model.GetGroupCertificateAuthorityRequest) : this() {
this.certificateAuthorityId = x.certificateAuthorityId
this.groupId = x.groupId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.greengrass.model.GetGroupCertificateAuthorityRequest = GetGroupCertificateAuthorityRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}