All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.drs.model.ReplicationConfigurationTemplate.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.drs.model



public class ReplicationConfigurationTemplate private constructor(builder: Builder) {
    /**
     * The Replication Configuration Template ARN.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * Whether to associate the default Elastic Disaster Recovery Security group with the Replication Configuration Template.
     */
    public val associateDefaultSecurityGroup: kotlin.Boolean? = builder.associateDefaultSecurityGroup
    /**
     * Configure bandwidth throttling for the outbound data transfer rate of the Source Server in Mbps.
     */
    public val bandwidthThrottling: kotlin.Long = builder.bandwidthThrottling
    /**
     * Whether to create a Public IP for the Recovery Instance by default.
     */
    public val createPublicIp: kotlin.Boolean? = builder.createPublicIp
    /**
     * The data plane routing mechanism that will be used for replication.
     */
    public val dataPlaneRouting: aws.sdk.kotlin.services.drs.model.ReplicationConfigurationDataPlaneRouting? = builder.dataPlaneRouting
    /**
     * The Staging Disk EBS volume type to be used during replication.
     */
    public val defaultLargeStagingDiskType: aws.sdk.kotlin.services.drs.model.ReplicationConfigurationDefaultLargeStagingDiskType? = builder.defaultLargeStagingDiskType
    /**
     * The type of EBS encryption to be used during replication.
     */
    public val ebsEncryption: aws.sdk.kotlin.services.drs.model.ReplicationConfigurationEbsEncryption? = builder.ebsEncryption
    /**
     * The ARN of the EBS encryption key to be used during replication.
     */
    public val ebsEncryptionKeyArn: kotlin.String? = builder.ebsEncryptionKeyArn
    /**
     * The Point in time (PIT) policy to manage snapshots taken during replication.
     */
    public val pitPolicy: List? = builder.pitPolicy
    /**
     * The Replication Configuration Template ID.
     */
    public val replicationConfigurationTemplateId: kotlin.String? = builder.replicationConfigurationTemplateId
    /**
     * The instance type to be used for the replication server.
     */
    public val replicationServerInstanceType: kotlin.String? = builder.replicationServerInstanceType
    /**
     * The security group IDs that will be used by the replication server.
     */
    public val replicationServersSecurityGroupsIDs: List? = builder.replicationServersSecurityGroupsIDs
    /**
     * The subnet to be used by the replication staging area.
     */
    public val stagingAreaSubnetId: kotlin.String? = builder.stagingAreaSubnetId
    /**
     * A set of tags to be associated with all resources created in the replication staging area: EC2 replication server, EBS volumes, EBS snapshots, etc.
     */
    public val stagingAreaTags: Map? = builder.stagingAreaTags
    /**
     * A set of tags to be associated with the Replication Configuration Template resource.
     */
    public val tags: Map? = builder.tags
    /**
     * Whether to use a dedicated Replication Server in the replication staging area.
     */
    public val useDedicatedReplicationServer: kotlin.Boolean? = builder.useDedicatedReplicationServer

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.drs.model.ReplicationConfigurationTemplate = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ReplicationConfigurationTemplate(")
        append("arn=$arn,")
        append("associateDefaultSecurityGroup=$associateDefaultSecurityGroup,")
        append("bandwidthThrottling=$bandwidthThrottling,")
        append("createPublicIp=$createPublicIp,")
        append("dataPlaneRouting=$dataPlaneRouting,")
        append("defaultLargeStagingDiskType=$defaultLargeStagingDiskType,")
        append("ebsEncryption=$ebsEncryption,")
        append("ebsEncryptionKeyArn=$ebsEncryptionKeyArn,")
        append("pitPolicy=$pitPolicy,")
        append("replicationConfigurationTemplateId=$replicationConfigurationTemplateId,")
        append("replicationServerInstanceType=$replicationServerInstanceType,")
        append("replicationServersSecurityGroupsIDs=$replicationServersSecurityGroupsIDs,")
        append("stagingAreaSubnetId=$stagingAreaSubnetId,")
        append("stagingAreaTags=*** Sensitive Data Redacted ***,")
        append("tags=*** Sensitive Data Redacted ***,")
        append("useDedicatedReplicationServer=$useDedicatedReplicationServer")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (associateDefaultSecurityGroup?.hashCode() ?: 0)
        result = 31 * result + (bandwidthThrottling.hashCode())
        result = 31 * result + (createPublicIp?.hashCode() ?: 0)
        result = 31 * result + (dataPlaneRouting?.hashCode() ?: 0)
        result = 31 * result + (defaultLargeStagingDiskType?.hashCode() ?: 0)
        result = 31 * result + (ebsEncryption?.hashCode() ?: 0)
        result = 31 * result + (ebsEncryptionKeyArn?.hashCode() ?: 0)
        result = 31 * result + (pitPolicy?.hashCode() ?: 0)
        result = 31 * result + (replicationConfigurationTemplateId?.hashCode() ?: 0)
        result = 31 * result + (replicationServerInstanceType?.hashCode() ?: 0)
        result = 31 * result + (replicationServersSecurityGroupsIDs?.hashCode() ?: 0)
        result = 31 * result + (stagingAreaSubnetId?.hashCode() ?: 0)
        result = 31 * result + (stagingAreaTags?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (useDedicatedReplicationServer?.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 ReplicationConfigurationTemplate

        if (arn != other.arn) return false
        if (associateDefaultSecurityGroup != other.associateDefaultSecurityGroup) return false
        if (bandwidthThrottling != other.bandwidthThrottling) return false
        if (createPublicIp != other.createPublicIp) return false
        if (dataPlaneRouting != other.dataPlaneRouting) return false
        if (defaultLargeStagingDiskType != other.defaultLargeStagingDiskType) return false
        if (ebsEncryption != other.ebsEncryption) return false
        if (ebsEncryptionKeyArn != other.ebsEncryptionKeyArn) return false
        if (pitPolicy != other.pitPolicy) return false
        if (replicationConfigurationTemplateId != other.replicationConfigurationTemplateId) return false
        if (replicationServerInstanceType != other.replicationServerInstanceType) return false
        if (replicationServersSecurityGroupsIDs != other.replicationServersSecurityGroupsIDs) return false
        if (stagingAreaSubnetId != other.stagingAreaSubnetId) return false
        if (stagingAreaTags != other.stagingAreaTags) return false
        if (tags != other.tags) return false
        if (useDedicatedReplicationServer != other.useDedicatedReplicationServer) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.drs.model.ReplicationConfigurationTemplate = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The Replication Configuration Template ARN.
         */
        public var arn: kotlin.String? = null
        /**
         * Whether to associate the default Elastic Disaster Recovery Security group with the Replication Configuration Template.
         */
        public var associateDefaultSecurityGroup: kotlin.Boolean? = null
        /**
         * Configure bandwidth throttling for the outbound data transfer rate of the Source Server in Mbps.
         */
        public var bandwidthThrottling: kotlin.Long = 0L
        /**
         * Whether to create a Public IP for the Recovery Instance by default.
         */
        public var createPublicIp: kotlin.Boolean? = null
        /**
         * The data plane routing mechanism that will be used for replication.
         */
        public var dataPlaneRouting: aws.sdk.kotlin.services.drs.model.ReplicationConfigurationDataPlaneRouting? = null
        /**
         * The Staging Disk EBS volume type to be used during replication.
         */
        public var defaultLargeStagingDiskType: aws.sdk.kotlin.services.drs.model.ReplicationConfigurationDefaultLargeStagingDiskType? = null
        /**
         * The type of EBS encryption to be used during replication.
         */
        public var ebsEncryption: aws.sdk.kotlin.services.drs.model.ReplicationConfigurationEbsEncryption? = null
        /**
         * The ARN of the EBS encryption key to be used during replication.
         */
        public var ebsEncryptionKeyArn: kotlin.String? = null
        /**
         * The Point in time (PIT) policy to manage snapshots taken during replication.
         */
        public var pitPolicy: List? = null
        /**
         * The Replication Configuration Template ID.
         */
        public var replicationConfigurationTemplateId: kotlin.String? = null
        /**
         * The instance type to be used for the replication server.
         */
        public var replicationServerInstanceType: kotlin.String? = null
        /**
         * The security group IDs that will be used by the replication server.
         */
        public var replicationServersSecurityGroupsIDs: List? = null
        /**
         * The subnet to be used by the replication staging area.
         */
        public var stagingAreaSubnetId: kotlin.String? = null
        /**
         * A set of tags to be associated with all resources created in the replication staging area: EC2 replication server, EBS volumes, EBS snapshots, etc.
         */
        public var stagingAreaTags: Map? = null
        /**
         * A set of tags to be associated with the Replication Configuration Template resource.
         */
        public var tags: Map? = null
        /**
         * Whether to use a dedicated Replication Server in the replication staging area.
         */
        public var useDedicatedReplicationServer: kotlin.Boolean? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.drs.model.ReplicationConfigurationTemplate) : this() {
            this.arn = x.arn
            this.associateDefaultSecurityGroup = x.associateDefaultSecurityGroup
            this.bandwidthThrottling = x.bandwidthThrottling
            this.createPublicIp = x.createPublicIp
            this.dataPlaneRouting = x.dataPlaneRouting
            this.defaultLargeStagingDiskType = x.defaultLargeStagingDiskType
            this.ebsEncryption = x.ebsEncryption
            this.ebsEncryptionKeyArn = x.ebsEncryptionKeyArn
            this.pitPolicy = x.pitPolicy
            this.replicationConfigurationTemplateId = x.replicationConfigurationTemplateId
            this.replicationServerInstanceType = x.replicationServerInstanceType
            this.replicationServersSecurityGroupsIDs = x.replicationServersSecurityGroupsIDs
            this.stagingAreaSubnetId = x.stagingAreaSubnetId
            this.stagingAreaTags = x.stagingAreaTags
            this.tags = x.tags
            this.useDedicatedReplicationServer = x.useDedicatedReplicationServer
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.drs.model.ReplicationConfigurationTemplate = ReplicationConfigurationTemplate(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy