
commonMain.aws.sdk.kotlin.services.cloudfront.model.GetCloudFrontOriginAccessIdentityConfigResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudfront.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The returned result of the corresponding request.
*/
public class GetCloudFrontOriginAccessIdentityConfigResponse private constructor(builder: Builder) {
/**
* The origin access identity's configuration information.
*/
public val cloudFrontOriginAccessIdentityConfig: aws.sdk.kotlin.services.cloudfront.model.CloudFrontOriginAccessIdentityConfig? = builder.cloudFrontOriginAccessIdentityConfig
/**
* The current version of the configuration. For example: `E2QWRUHAPOMQZL`.
*/
public val eTag: kotlin.String? = builder.eTag
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudfront.model.GetCloudFrontOriginAccessIdentityConfigResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetCloudFrontOriginAccessIdentityConfigResponse(")
append("cloudFrontOriginAccessIdentityConfig=$cloudFrontOriginAccessIdentityConfig,")
append("eTag=$eTag")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cloudFrontOriginAccessIdentityConfig?.hashCode() ?: 0
result = 31 * result + (eTag?.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 GetCloudFrontOriginAccessIdentityConfigResponse
if (cloudFrontOriginAccessIdentityConfig != other.cloudFrontOriginAccessIdentityConfig) return false
if (eTag != other.eTag) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudfront.model.GetCloudFrontOriginAccessIdentityConfigResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The origin access identity's configuration information.
*/
public var cloudFrontOriginAccessIdentityConfig: aws.sdk.kotlin.services.cloudfront.model.CloudFrontOriginAccessIdentityConfig? = null
/**
* The current version of the configuration. For example: `E2QWRUHAPOMQZL`.
*/
public var eTag: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudfront.model.GetCloudFrontOriginAccessIdentityConfigResponse) : this() {
this.cloudFrontOriginAccessIdentityConfig = x.cloudFrontOriginAccessIdentityConfig
this.eTag = x.eTag
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudfront.model.GetCloudFrontOriginAccessIdentityConfigResponse = GetCloudFrontOriginAccessIdentityConfigResponse(this)
/**
* construct an [aws.sdk.kotlin.services.cloudfront.model.CloudFrontOriginAccessIdentityConfig] inside the given [block]
*/
public fun cloudFrontOriginAccessIdentityConfig(block: aws.sdk.kotlin.services.cloudfront.model.CloudFrontOriginAccessIdentityConfig.Builder.() -> kotlin.Unit) {
this.cloudFrontOriginAccessIdentityConfig = aws.sdk.kotlin.services.cloudfront.model.CloudFrontOriginAccessIdentityConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy