
commonMain.aws.sdk.kotlin.services.ssm.model.CreateOpsMetadataRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
public class CreateOpsMetadataRequest private constructor(builder: Builder) {
/**
* Metadata for a new Application Manager application.
*/
public val metadata: Map? = builder.metadata
/**
* A resource ID for a new Application Manager application.
*/
public val resourceId: kotlin.String? = builder.resourceId
/**
* Optional metadata that you assign to a resource. You can specify a maximum of five tags for an OpsMetadata object. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag an OpsMetadata object to identify an environment or target Amazon Web Services Region. In this case, you could specify the following key-value pairs:
* + `Key=Environment,Value=Production`
* + `Key=Region,Value=us-east-2`
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.CreateOpsMetadataRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateOpsMetadataRequest(")
append("metadata=$metadata,")
append("resourceId=$resourceId,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = metadata?.hashCode() ?: 0
result = 31 * result + (resourceId?.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 CreateOpsMetadataRequest
if (metadata != other.metadata) return false
if (resourceId != other.resourceId) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.CreateOpsMetadataRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Metadata for a new Application Manager application.
*/
public var metadata: Map? = null
/**
* A resource ID for a new Application Manager application.
*/
public var resourceId: kotlin.String? = null
/**
* Optional metadata that you assign to a resource. You can specify a maximum of five tags for an OpsMetadata object. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag an OpsMetadata object to identify an environment or target Amazon Web Services Region. In this case, you could specify the following key-value pairs:
* + `Key=Environment,Value=Production`
* + `Key=Region,Value=us-east-2`
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.CreateOpsMetadataRequest) : this() {
this.metadata = x.metadata
this.resourceId = x.resourceId
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.CreateOpsMetadataRequest = CreateOpsMetadataRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy