commonMain.aws.sdk.kotlin.services.appconfig.model.ActionInvocation.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appconfig-jvm Show documentation
Show all versions of appconfig-jvm Show documentation
The AWS SDK for Kotlin client for AppConfig
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appconfig.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An extension that was invoked as part of a deployment event.
*/
public class ActionInvocation private constructor(builder: Builder) {
/**
* The name of the action.
*/
public val actionName: kotlin.String? = builder.actionName
/**
* The error code when an extension invocation fails.
*/
public val errorCode: kotlin.String? = builder.errorCode
/**
* The error message when an extension invocation fails.
*/
public val errorMessage: kotlin.String? = builder.errorMessage
/**
* The name, the ID, or the Amazon Resource Name (ARN) of the extension.
*/
public val extensionIdentifier: kotlin.String? = builder.extensionIdentifier
/**
* A system-generated ID for this invocation.
*/
public val invocationId: kotlin.String? = builder.invocationId
/**
* An Amazon Resource Name (ARN) for an Identity and Access Management assume role.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The extension URI associated to the action point in the extension definition. The URI can be an Amazon Resource Name (ARN) for one of the following: an Lambda function, an Amazon Simple Queue Service queue, an Amazon Simple Notification Service topic, or the Amazon EventBridge default event bus.
*/
public val uri: kotlin.String? = builder.uri
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appconfig.model.ActionInvocation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ActionInvocation(")
append("actionName=$actionName,")
append("errorCode=$errorCode,")
append("errorMessage=$errorMessage,")
append("extensionIdentifier=$extensionIdentifier,")
append("invocationId=$invocationId,")
append("roleArn=$roleArn,")
append("uri=$uri")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actionName?.hashCode() ?: 0
result = 31 * result + (errorCode?.hashCode() ?: 0)
result = 31 * result + (errorMessage?.hashCode() ?: 0)
result = 31 * result + (extensionIdentifier?.hashCode() ?: 0)
result = 31 * result + (invocationId?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (uri?.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 ActionInvocation
if (actionName != other.actionName) return false
if (errorCode != other.errorCode) return false
if (errorMessage != other.errorMessage) return false
if (extensionIdentifier != other.extensionIdentifier) return false
if (invocationId != other.invocationId) return false
if (roleArn != other.roleArn) return false
if (uri != other.uri) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appconfig.model.ActionInvocation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the action.
*/
public var actionName: kotlin.String? = null
/**
* The error code when an extension invocation fails.
*/
public var errorCode: kotlin.String? = null
/**
* The error message when an extension invocation fails.
*/
public var errorMessage: kotlin.String? = null
/**
* The name, the ID, or the Amazon Resource Name (ARN) of the extension.
*/
public var extensionIdentifier: kotlin.String? = null
/**
* A system-generated ID for this invocation.
*/
public var invocationId: kotlin.String? = null
/**
* An Amazon Resource Name (ARN) for an Identity and Access Management assume role.
*/
public var roleArn: kotlin.String? = null
/**
* The extension URI associated to the action point in the extension definition. The URI can be an Amazon Resource Name (ARN) for one of the following: an Lambda function, an Amazon Simple Queue Service queue, an Amazon Simple Notification Service topic, or the Amazon EventBridge default event bus.
*/
public var uri: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appconfig.model.ActionInvocation) : this() {
this.actionName = x.actionName
this.errorCode = x.errorCode
this.errorMessage = x.errorMessage
this.extensionIdentifier = x.extensionIdentifier
this.invocationId = x.invocationId
this.roleArn = x.roleArn
this.uri = x.uri
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appconfig.model.ActionInvocation = ActionInvocation(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy