
commonMain.aws.sdk.kotlin.services.iot.model.SalesforceAction.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* Describes an action to write a message to a Salesforce IoT Cloud Input Stream.
*/
public class SalesforceAction private constructor(builder: Builder) {
/**
* The token used to authenticate access to the Salesforce IoT Cloud Input Stream. The token is available from the Salesforce IoT Cloud platform after creation of the Input Stream.
*/
public val token: kotlin.String = requireNotNull(builder.token) { "A non-null value must be provided for token" }
/**
* The URL exposed by the Salesforce IoT Cloud Input Stream. The URL is available from the Salesforce IoT Cloud platform after creation of the Input Stream.
*/
public val url: kotlin.String = requireNotNull(builder.url) { "A non-null value must be provided for url" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.SalesforceAction = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SalesforceAction(")
append("token=$token,")
append("url=$url")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = token.hashCode()
result = 31 * result + (url.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 SalesforceAction
if (token != other.token) return false
if (url != other.url) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.SalesforceAction = Builder(this).apply(block).build()
public class Builder {
/**
* The token used to authenticate access to the Salesforce IoT Cloud Input Stream. The token is available from the Salesforce IoT Cloud platform after creation of the Input Stream.
*/
public var token: kotlin.String? = null
/**
* The URL exposed by the Salesforce IoT Cloud Input Stream. The URL is available from the Salesforce IoT Cloud platform after creation of the Input Stream.
*/
public var url: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.SalesforceAction) : this() {
this.token = x.token
this.url = x.url
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.SalesforceAction = SalesforceAction(this)
internal fun correctErrors(): Builder {
if (token == null) token = ""
if (url == null) url = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy