commonMain.aws.sdk.kotlin.services.route53recoveryreadiness.model.UpdateResourceSetResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of route53recoveryreadiness-jvm Show documentation
Show all versions of route53recoveryreadiness-jvm Show documentation
The AWS SDK for Kotlin client for Route53 Recovery Readiness
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.route53recoveryreadiness.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateResourceSetResponse 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.UpdateResourceSetResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateResourceSetResponse(")
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 UpdateResourceSetResponse
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.UpdateResourceSetResponse = 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.UpdateResourceSetResponse) : 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.UpdateResourceSetResponse = UpdateResourceSetResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}