commonMain.aws.sdk.kotlin.services.iotfleetwise.model.IamResources.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotfleetwise-jvm Show documentation
Show all versions of iotfleetwise-jvm Show documentation
The AWS SDK for Kotlin client for IoTFleetWise
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotfleetwise.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The IAM resource that enables Amazon Web Services IoT FleetWise edge agent software to send data to Amazon Timestream.
*
* For more information, see [IAM roles](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html) in the *Identity and Access Management User Guide*.
*/
public class IamResources private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the IAM resource that allows Amazon Web Services IoT FleetWise to send data to Amazon Timestream. For example, `arn:aws:iam::123456789012:role/SERVICE-ROLE-ARN`.
*/
public val roleArn: kotlin.String = requireNotNull(builder.roleArn) { "A non-null value must be provided for roleArn" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotfleetwise.model.IamResources = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("IamResources(")
append("roleArn=$roleArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = roleArn.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 IamResources
if (roleArn != other.roleArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotfleetwise.model.IamResources = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the IAM resource that allows Amazon Web Services IoT FleetWise to send data to Amazon Timestream. For example, `arn:aws:iam::123456789012:role/SERVICE-ROLE-ARN`.
*/
public var roleArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotfleetwise.model.IamResources) : this() {
this.roleArn = x.roleArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotfleetwise.model.IamResources = IamResources(this)
internal fun correctErrors(): Builder {
if (roleArn == null) roleArn = ""
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy