commonMain.aws.sdk.kotlin.services.iotwireless.model.CreateDestinationRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotwireless-jvm Show documentation
Show all versions of iotwireless-jvm Show documentation
The AWS Kotlin client for IoT Wireless
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotwireless.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateDestinationRequest private constructor(builder: Builder) {
/**
* Each resource must have a unique client request token. The client token is used to implement idempotency. It ensures that the request completes no more than one time. If you retry a request with the same token and the same parameters, the request will complete successfully. However, if you try to create a new resource using the same token but different parameters, an HTTP 409 conflict occurs. If you omit this value, AWS SDKs will automatically generate a unique client request. For more information about idempotency, see [Ensuring idempotency in Amazon EC2 API requests](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html).
*/
public val clientRequestToken: kotlin.String? = builder.clientRequestToken
/**
* The description of the new resource.
*/
public val description: kotlin.String? = builder.description
/**
* The rule name or topic rule to send messages to.
*/
public val expression: kotlin.String? = builder.expression
/**
* The type of value in `Expression`.
*/
public val expressionType: aws.sdk.kotlin.services.iotwireless.model.ExpressionType? = builder.expressionType
/**
* The name of the new resource.
*/
public val name: kotlin.String? = builder.name
/**
* The ARN of the IAM Role that authorizes the destination.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The tags to attach to the new destination. Tags are metadata that you can use to manage a resource.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.CreateDestinationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateDestinationRequest(")
append("clientRequestToken=$clientRequestToken,")
append("description=$description,")
append("expression=$expression,")
append("expressionType=$expressionType,")
append("name=$name,")
append("roleArn=$roleArn,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientRequestToken?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (expression?.hashCode() ?: 0)
result = 31 * result + (expressionType?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (roleArn?.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 CreateDestinationRequest
if (clientRequestToken != other.clientRequestToken) return false
if (description != other.description) return false
if (expression != other.expression) return false
if (expressionType != other.expressionType) return false
if (name != other.name) return false
if (roleArn != other.roleArn) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.CreateDestinationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Each resource must have a unique client request token. The client token is used to implement idempotency. It ensures that the request completes no more than one time. If you retry a request with the same token and the same parameters, the request will complete successfully. However, if you try to create a new resource using the same token but different parameters, an HTTP 409 conflict occurs. If you omit this value, AWS SDKs will automatically generate a unique client request. For more information about idempotency, see [Ensuring idempotency in Amazon EC2 API requests](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html).
*/
public var clientRequestToken: kotlin.String? = null
/**
* The description of the new resource.
*/
public var description: kotlin.String? = null
/**
* The rule name or topic rule to send messages to.
*/
public var expression: kotlin.String? = null
/**
* The type of value in `Expression`.
*/
public var expressionType: aws.sdk.kotlin.services.iotwireless.model.ExpressionType? = null
/**
* The name of the new resource.
*/
public var name: kotlin.String? = null
/**
* The ARN of the IAM Role that authorizes the destination.
*/
public var roleArn: kotlin.String? = null
/**
* The tags to attach to the new destination. Tags are metadata that you can use to manage a resource.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.CreateDestinationRequest) : this() {
this.clientRequestToken = x.clientRequestToken
this.description = x.description
this.expression = x.expression
this.expressionType = x.expressionType
this.name = x.name
this.roleArn = x.roleArn
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.CreateDestinationRequest = CreateDestinationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy