
commonMain.aws.sdk.kotlin.services.route53resolver.model.OutpostResolver.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.route53resolver.model
/**
* A complex type that contains settings for an existing Resolver on an Outpost.
*/
public class OutpostResolver private constructor(builder: Builder) {
/**
* The ARN (Amazon Resource Name) for the Resolver on an Outpost.
*/
public val arn: kotlin.String? = builder.arn
/**
* The date and time that the Outpost Resolver was created, in Unix time format and Coordinated Universal Time (UTC).
*/
public val creationTime: kotlin.String? = builder.creationTime
/**
* A unique string that identifies the request that created the Resolver endpoint. The `CreatorRequestId` allows failed requests to be retried without the risk of running the operation twice.
*/
public val creatorRequestId: kotlin.String? = builder.creatorRequestId
/**
* The ID of the Resolver on Outpost.
*/
public val id: kotlin.String? = builder.id
/**
* Amazon EC2 instance count for the Resolver on the Outpost.
*/
public val instanceCount: kotlin.Int? = builder.instanceCount
/**
* The date and time that the Outpost Resolver was modified, in Unix time format and Coordinated Universal Time (UTC).
*/
public val modificationTime: kotlin.String? = builder.modificationTime
/**
* Name of the Resolver.
*/
public val name: kotlin.String? = builder.name
/**
* The ARN (Amazon Resource Name) for the Outpost.
*/
public val outpostArn: kotlin.String? = builder.outpostArn
/**
* The Amazon EC2 instance type.
*/
public val preferredInstanceType: kotlin.String? = builder.preferredInstanceType
/**
* Status of the Resolver.
*/
public val status: aws.sdk.kotlin.services.route53resolver.model.OutpostResolverStatus? = builder.status
/**
* A detailed description of the Resolver.
*/
public val statusMessage: kotlin.String? = builder.statusMessage
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53resolver.model.OutpostResolver = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("OutpostResolver(")
append("arn=$arn,")
append("creationTime=$creationTime,")
append("creatorRequestId=$creatorRequestId,")
append("id=$id,")
append("instanceCount=$instanceCount,")
append("modificationTime=$modificationTime,")
append("name=$name,")
append("outpostArn=$outpostArn,")
append("preferredInstanceType=$preferredInstanceType,")
append("status=$status,")
append("statusMessage=$statusMessage")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (creationTime?.hashCode() ?: 0)
result = 31 * result + (creatorRequestId?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (instanceCount ?: 0)
result = 31 * result + (modificationTime?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (outpostArn?.hashCode() ?: 0)
result = 31 * result + (preferredInstanceType?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (statusMessage?.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 OutpostResolver
if (arn != other.arn) return false
if (creationTime != other.creationTime) return false
if (creatorRequestId != other.creatorRequestId) return false
if (id != other.id) return false
if (instanceCount != other.instanceCount) return false
if (modificationTime != other.modificationTime) return false
if (name != other.name) return false
if (outpostArn != other.outpostArn) return false
if (preferredInstanceType != other.preferredInstanceType) return false
if (status != other.status) return false
if (statusMessage != other.statusMessage) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53resolver.model.OutpostResolver = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN (Amazon Resource Name) for the Resolver on an Outpost.
*/
public var arn: kotlin.String? = null
/**
* The date and time that the Outpost Resolver was created, in Unix time format and Coordinated Universal Time (UTC).
*/
public var creationTime: kotlin.String? = null
/**
* A unique string that identifies the request that created the Resolver endpoint. The `CreatorRequestId` allows failed requests to be retried without the risk of running the operation twice.
*/
public var creatorRequestId: kotlin.String? = null
/**
* The ID of the Resolver on Outpost.
*/
public var id: kotlin.String? = null
/**
* Amazon EC2 instance count for the Resolver on the Outpost.
*/
public var instanceCount: kotlin.Int? = null
/**
* The date and time that the Outpost Resolver was modified, in Unix time format and Coordinated Universal Time (UTC).
*/
public var modificationTime: kotlin.String? = null
/**
* Name of the Resolver.
*/
public var name: kotlin.String? = null
/**
* The ARN (Amazon Resource Name) for the Outpost.
*/
public var outpostArn: kotlin.String? = null
/**
* The Amazon EC2 instance type.
*/
public var preferredInstanceType: kotlin.String? = null
/**
* Status of the Resolver.
*/
public var status: aws.sdk.kotlin.services.route53resolver.model.OutpostResolverStatus? = null
/**
* A detailed description of the Resolver.
*/
public var statusMessage: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53resolver.model.OutpostResolver) : this() {
this.arn = x.arn
this.creationTime = x.creationTime
this.creatorRequestId = x.creatorRequestId
this.id = x.id
this.instanceCount = x.instanceCount
this.modificationTime = x.modificationTime
this.name = x.name
this.outpostArn = x.outpostArn
this.preferredInstanceType = x.preferredInstanceType
this.status = x.status
this.statusMessage = x.statusMessage
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53resolver.model.OutpostResolver = OutpostResolver(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy