commonMain.aws.sdk.kotlin.services.chimesdkmeetings.model.CreateMeetingWithAttendeesResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chimesdkmeetings-jvm Show documentation
Show all versions of chimesdkmeetings-jvm Show documentation
The AWS SDK for Kotlin client for Chime SDK Meetings
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.chimesdkmeetings.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateMeetingWithAttendeesResponse private constructor(builder: Builder) {
/**
* The attendee information, including attendees' IDs and join tokens.
*/
public val attendees: List? = builder.attendees
/**
* If the action fails for one or more of the attendees in the request, a list of the attendees is returned, along with error codes and error messages.
*/
public val errors: List? = builder.errors
/**
* The meeting information, including the meeting ID and `MediaPlacement`.
*/
public val meeting: aws.sdk.kotlin.services.chimesdkmeetings.model.Meeting? = builder.meeting
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmeetings.model.CreateMeetingWithAttendeesResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateMeetingWithAttendeesResponse(")
append("attendees=$attendees,")
append("errors=$errors,")
append("meeting=$meeting")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = attendees?.hashCode() ?: 0
result = 31 * result + (errors?.hashCode() ?: 0)
result = 31 * result + (meeting?.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 CreateMeetingWithAttendeesResponse
if (attendees != other.attendees) return false
if (errors != other.errors) return false
if (meeting != other.meeting) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmeetings.model.CreateMeetingWithAttendeesResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The attendee information, including attendees' IDs and join tokens.
*/
public var attendees: List? = null
/**
* If the action fails for one or more of the attendees in the request, a list of the attendees is returned, along with error codes and error messages.
*/
public var errors: List? = null
/**
* The meeting information, including the meeting ID and `MediaPlacement`.
*/
public var meeting: aws.sdk.kotlin.services.chimesdkmeetings.model.Meeting? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmeetings.model.CreateMeetingWithAttendeesResponse) : this() {
this.attendees = x.attendees
this.errors = x.errors
this.meeting = x.meeting
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmeetings.model.CreateMeetingWithAttendeesResponse = CreateMeetingWithAttendeesResponse(this)
/**
* construct an [aws.sdk.kotlin.services.chimesdkmeetings.model.Meeting] inside the given [block]
*/
public fun meeting(block: aws.sdk.kotlin.services.chimesdkmeetings.model.Meeting.Builder.() -> kotlin.Unit) {
this.meeting = aws.sdk.kotlin.services.chimesdkmeetings.model.Meeting.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}