commonMain.aws.sdk.kotlin.services.glacier.model.OutputLocation.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glacier.model
/**
* Contains information about the location where the select job results are stored.
*/
public class OutputLocation private constructor(builder: Builder) {
/**
* Describes an S3 location that will receive the results of the job request.
*/
public val s3: aws.sdk.kotlin.services.glacier.model.S3Location? = builder.s3
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glacier.model.OutputLocation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("OutputLocation(")
append("s3=$s3)")
}
override fun hashCode(): kotlin.Int {
var result = s3?.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 OutputLocation
if (s3 != other.s3) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glacier.model.OutputLocation = Builder(this).apply(block).build()
public class Builder {
/**
* Describes an S3 location that will receive the results of the job request.
*/
public var s3: aws.sdk.kotlin.services.glacier.model.S3Location? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glacier.model.OutputLocation) : this() {
this.s3 = x.s3
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glacier.model.OutputLocation = OutputLocation(this)
/**
* construct an [aws.sdk.kotlin.services.glacier.model.S3Location] inside the given [block]
*/
public fun s3(block: aws.sdk.kotlin.services.glacier.model.S3Location.Builder.() -> kotlin.Unit) {
this.s3 = aws.sdk.kotlin.services.glacier.model.S3Location.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy