commonMain.aws.sdk.kotlin.services.iotfleetwise.model.UpdateCampaignResponse.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
public class UpdateCampaignResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the campaign.
*/
public val arn: kotlin.String? = builder.arn
/**
* The name of the updated campaign.
*/
public val name: kotlin.String? = builder.name
/**
* The state of a campaign. The status can be one of:
* + `CREATING` - Amazon Web Services IoT FleetWise is processing your request to create the campaign.
* + `WAITING_FOR_APPROVAL` - After a campaign is created, it enters the `WAITING_FOR_APPROVAL` state. To allow Amazon Web Services IoT FleetWise to deploy the campaign to the target vehicle or fleet, use the API operation to approve the campaign.
* + `RUNNING` - The campaign is active.
* + `SUSPENDED` - The campaign is suspended. To resume the campaign, use the API operation.
*/
public val status: aws.sdk.kotlin.services.iotfleetwise.model.CampaignStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotfleetwise.model.UpdateCampaignResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateCampaignResponse(")
append("arn=$arn,")
append("name=$name,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (status?.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 UpdateCampaignResponse
if (arn != other.arn) return false
if (name != other.name) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotfleetwise.model.UpdateCampaignResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the campaign.
*/
public var arn: kotlin.String? = null
/**
* The name of the updated campaign.
*/
public var name: kotlin.String? = null
/**
* The state of a campaign. The status can be one of:
* + `CREATING` - Amazon Web Services IoT FleetWise is processing your request to create the campaign.
* + `WAITING_FOR_APPROVAL` - After a campaign is created, it enters the `WAITING_FOR_APPROVAL` state. To allow Amazon Web Services IoT FleetWise to deploy the campaign to the target vehicle or fleet, use the API operation to approve the campaign.
* + `RUNNING` - The campaign is active.
* + `SUSPENDED` - The campaign is suspended. To resume the campaign, use the API operation.
*/
public var status: aws.sdk.kotlin.services.iotfleetwise.model.CampaignStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotfleetwise.model.UpdateCampaignResponse) : this() {
this.arn = x.arn
this.name = x.name
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotfleetwise.model.UpdateCampaignResponse = UpdateCampaignResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy