
commonMain.aws.sdk.kotlin.services.ssm.model.S3OutputLocation.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An S3 bucket where you want to store the results of this request.
*/
public class S3OutputLocation private constructor(builder: Builder) {
/**
* The name of the S3 bucket.
*/
public val outputS3BucketName: kotlin.String? = builder.outputS3BucketName
/**
* The S3 bucket subfolder.
*/
public val outputS3KeyPrefix: kotlin.String? = builder.outputS3KeyPrefix
/**
* The Amazon Web Services Region of the S3 bucket.
*/
public val outputS3Region: kotlin.String? = builder.outputS3Region
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.S3OutputLocation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("S3OutputLocation(")
append("outputS3BucketName=$outputS3BucketName,")
append("outputS3KeyPrefix=$outputS3KeyPrefix,")
append("outputS3Region=$outputS3Region")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = outputS3BucketName?.hashCode() ?: 0
result = 31 * result + (outputS3KeyPrefix?.hashCode() ?: 0)
result = 31 * result + (outputS3Region?.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 S3OutputLocation
if (outputS3BucketName != other.outputS3BucketName) return false
if (outputS3KeyPrefix != other.outputS3KeyPrefix) return false
if (outputS3Region != other.outputS3Region) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.S3OutputLocation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the S3 bucket.
*/
public var outputS3BucketName: kotlin.String? = null
/**
* The S3 bucket subfolder.
*/
public var outputS3KeyPrefix: kotlin.String? = null
/**
* The Amazon Web Services Region of the S3 bucket.
*/
public var outputS3Region: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.S3OutputLocation) : this() {
this.outputS3BucketName = x.outputS3BucketName
this.outputS3KeyPrefix = x.outputS3KeyPrefix
this.outputS3Region = x.outputS3Region
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.S3OutputLocation = S3OutputLocation(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy