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

commonMain.aws.sdk.kotlin.services.route53recoveryreadiness.model.ResourceSetOutput.kt Maven / Gradle / Ivy

There is a newer version: 1.3.35
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.route53recoveryreadiness.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * A collection of resources of the same type.
 */
public class ResourceSetOutput private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) for the resource set.
     */
    public val resourceSetArn: kotlin.String? = builder.resourceSetArn
    /**
     * The name of the resource set.
     */
    public val resourceSetName: kotlin.String? = builder.resourceSetName
    /**
     * The resource type of the resources in the resource set. Enter one of the following values for resource type:
     *
     * AWS::ApiGateway::Stage, AWS::ApiGatewayV2::Stage, AWS::AutoScaling::AutoScalingGroup, AWS::CloudWatch::Alarm, AWS::EC2::CustomerGateway, AWS::DynamoDB::Table, AWS::EC2::Volume, AWS::ElasticLoadBalancing::LoadBalancer, AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::Lambda::Function, AWS::MSK::Cluster, AWS::RDS::DBCluster, AWS::Route53::HealthCheck, AWS::SQS::Queue, AWS::SNS::Topic, AWS::SNS::Subscription, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway, AWS::Route53RecoveryReadiness::DNSTargetResource
     */
    public val resourceSetType: kotlin.String? = builder.resourceSetType
    /**
     * A list of resource objects.
     */
    public val resources: List? = builder.resources
    /**
     * A collection of tags associated with a resource.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("ResourceSetOutput(")
        append("resourceSetArn=$resourceSetArn,")
        append("resourceSetName=$resourceSetName,")
        append("resourceSetType=$resourceSetType,")
        append("resources=$resources,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = resourceSetArn?.hashCode() ?: 0
        result = 31 * result + (resourceSetName?.hashCode() ?: 0)
        result = 31 * result + (resourceSetType?.hashCode() ?: 0)
        result = 31 * result + (resources?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 ResourceSetOutput

        if (resourceSetArn != other.resourceSetArn) return false
        if (resourceSetName != other.resourceSetName) return false
        if (resourceSetType != other.resourceSetType) return false
        if (resources != other.resources) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Name (ARN) for the resource set.
         */
        public var resourceSetArn: kotlin.String? = null
        /**
         * The name of the resource set.
         */
        public var resourceSetName: kotlin.String? = null
        /**
         * The resource type of the resources in the resource set. Enter one of the following values for resource type:
         *
         * AWS::ApiGateway::Stage, AWS::ApiGatewayV2::Stage, AWS::AutoScaling::AutoScalingGroup, AWS::CloudWatch::Alarm, AWS::EC2::CustomerGateway, AWS::DynamoDB::Table, AWS::EC2::Volume, AWS::ElasticLoadBalancing::LoadBalancer, AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::Lambda::Function, AWS::MSK::Cluster, AWS::RDS::DBCluster, AWS::Route53::HealthCheck, AWS::SQS::Queue, AWS::SNS::Topic, AWS::SNS::Subscription, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway, AWS::Route53RecoveryReadiness::DNSTargetResource
         */
        public var resourceSetType: kotlin.String? = null
        /**
         * A list of resource objects.
         */
        public var resources: List? = null
        /**
         * A collection of tags associated with a resource.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.route53recoveryreadiness.model.ResourceSetOutput) : this() {
            this.resourceSetArn = x.resourceSetArn
            this.resourceSetName = x.resourceSetName
            this.resourceSetType = x.resourceSetType
            this.resources = x.resources
            this.tags = x.tags
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.route53recoveryreadiness.model.ResourceSetOutput = ResourceSetOutput(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy