commonMain.aws.sdk.kotlin.services.configservice.model.ResourceDetails.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configservice-jvm Show documentation
Show all versions of configservice-jvm Show documentation
The AWS Kotlin client for Config Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.model
/**
* Returns information about the resource being evaluated.
*/
public class ResourceDetails private constructor(builder: Builder) {
/**
* The resource definition to be evaluated as per the resource configuration schema type.
*/
public val resourceConfiguration: kotlin.String = requireNotNull(builder.resourceConfiguration) { "A non-null value must be provided for resourceConfiguration" }
/**
* The schema type of the resource configuration.
*
* You can find the [Resource type schema](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html), or `CFN_RESOURCE_SCHEMA`, in "*Amazon Web Services public extensions*" within the CloudFormation registry or with the following CLI commmand: `aws cloudformation describe-type --type-name "AWS::S3::Bucket" --type RESOURCE`.
*
* For more information, see [Managing extensions through the CloudFormation registry](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry.html#registry-view) and [Amazon Web Services resource and property types reference](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) in the CloudFormation User Guide.
*/
public val resourceConfigurationSchemaType: aws.sdk.kotlin.services.configservice.model.ResourceConfigurationSchemaType? = builder.resourceConfigurationSchemaType
/**
* A unique resource ID for an evaluation.
*/
public val resourceId: kotlin.String = requireNotNull(builder.resourceId) { "A non-null value must be provided for resourceId" }
/**
* The type of resource being evaluated.
*/
public val resourceType: kotlin.String = requireNotNull(builder.resourceType) { "A non-null value must be provided for resourceType" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.ResourceDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ResourceDetails(")
append("resourceConfiguration=$resourceConfiguration,")
append("resourceConfigurationSchemaType=$resourceConfigurationSchemaType,")
append("resourceId=$resourceId,")
append("resourceType=$resourceType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = resourceConfiguration.hashCode()
result = 31 * result + (resourceConfigurationSchemaType?.hashCode() ?: 0)
result = 31 * result + (resourceId.hashCode())
result = 31 * result + (resourceType.hashCode())
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 ResourceDetails
if (resourceConfiguration != other.resourceConfiguration) return false
if (resourceConfigurationSchemaType != other.resourceConfigurationSchemaType) return false
if (resourceId != other.resourceId) return false
if (resourceType != other.resourceType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.ResourceDetails = Builder(this).apply(block).build()
public class Builder {
/**
* The resource definition to be evaluated as per the resource configuration schema type.
*/
public var resourceConfiguration: kotlin.String? = null
/**
* The schema type of the resource configuration.
*
* You can find the [Resource type schema](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html), or `CFN_RESOURCE_SCHEMA`, in "*Amazon Web Services public extensions*" within the CloudFormation registry or with the following CLI commmand: `aws cloudformation describe-type --type-name "AWS::S3::Bucket" --type RESOURCE`.
*
* For more information, see [Managing extensions through the CloudFormation registry](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry.html#registry-view) and [Amazon Web Services resource and property types reference](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) in the CloudFormation User Guide.
*/
public var resourceConfigurationSchemaType: aws.sdk.kotlin.services.configservice.model.ResourceConfigurationSchemaType? = null
/**
* A unique resource ID for an evaluation.
*/
public var resourceId: kotlin.String? = null
/**
* The type of resource being evaluated.
*/
public var resourceType: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.ResourceDetails) : this() {
this.resourceConfiguration = x.resourceConfiguration
this.resourceConfigurationSchemaType = x.resourceConfigurationSchemaType
this.resourceId = x.resourceId
this.resourceType = x.resourceType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.ResourceDetails = ResourceDetails(this)
internal fun correctErrors(): Builder {
if (resourceConfiguration == null) resourceConfiguration = ""
if (resourceId == null) resourceId = ""
if (resourceType == null) resourceType = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy