
commonMain.aws.sdk.kotlin.services.ssm.model.InstanceAssociationOutputLocation.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
/**
* An S3 bucket where you want to store the results of this request.
*
* For the minimal permissions required to enable Amazon S3 output for an association, see [Create an association (console)](https://docs.aws.amazon.com/systems-manager/latest/userguide/state-manager-associations-creating.html#state-manager-associations-console) in the *Systems Manager User Guide*.
*/
public class InstanceAssociationOutputLocation private constructor(builder: Builder) {
/**
* An S3 bucket where you want to store the results of this request.
*/
public val s3Location: aws.sdk.kotlin.services.ssm.model.S3OutputLocation? = builder.s3Location
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.InstanceAssociationOutputLocation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InstanceAssociationOutputLocation(")
append("s3Location=$s3Location")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = s3Location?.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 InstanceAssociationOutputLocation
if (s3Location != other.s3Location) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.InstanceAssociationOutputLocation = Builder(this).apply(block).build()
public class Builder {
/**
* An S3 bucket where you want to store the results of this request.
*/
public var s3Location: aws.sdk.kotlin.services.ssm.model.S3OutputLocation? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.InstanceAssociationOutputLocation) : this() {
this.s3Location = x.s3Location
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.InstanceAssociationOutputLocation = InstanceAssociationOutputLocation(this)
/**
* construct an [aws.sdk.kotlin.services.ssm.model.S3OutputLocation] inside the given [block]
*/
public fun s3Location(block: aws.sdk.kotlin.services.ssm.model.S3OutputLocation.Builder.() -> kotlin.Unit) {
this.s3Location = aws.sdk.kotlin.services.ssm.model.S3OutputLocation.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy