
commonMain.aws.sdk.kotlin.services.ssm.model.GetCommandInvocationRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
public class GetCommandInvocationRequest private constructor(builder: Builder) {
/**
* (Required) The parent command ID of the invocation plugin.
*/
public val commandId: kotlin.String? = builder.commandId
/**
* (Required) The ID of the managed node targeted by the command. A *managed node* can be an Amazon Elastic Compute Cloud (Amazon EC2) instance, edge device, and on-premises server or VM in your hybrid environment that is configured for Amazon Web Services Systems Manager.
*/
public val instanceId: kotlin.String? = builder.instanceId
/**
* The name of the step for which you want detailed results. If the document contains only one step, you can omit the name and details for that step. If the document contains more than one step, you must specify the name of the step for which you want to view details. Be sure to specify the name of the step, not the name of a plugin like `aws:RunShellScript`.
*
* To find the `PluginName`, check the document content and find the name of the step you want details for. Alternatively, use ListCommandInvocations with the `CommandId` and `Details` parameters. The `PluginName` is the `Name` attribute of the `CommandPlugin` object in the `CommandPlugins` list.
*/
public val pluginName: kotlin.String? = builder.pluginName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.GetCommandInvocationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetCommandInvocationRequest(")
append("commandId=$commandId,")
append("instanceId=$instanceId,")
append("pluginName=$pluginName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = commandId?.hashCode() ?: 0
result = 31 * result + (instanceId?.hashCode() ?: 0)
result = 31 * result + (pluginName?.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 GetCommandInvocationRequest
if (commandId != other.commandId) return false
if (instanceId != other.instanceId) return false
if (pluginName != other.pluginName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.GetCommandInvocationRequest = Builder(this).apply(block).build()
public class Builder {
/**
* (Required) The parent command ID of the invocation plugin.
*/
public var commandId: kotlin.String? = null
/**
* (Required) The ID of the managed node targeted by the command. A *managed node* can be an Amazon Elastic Compute Cloud (Amazon EC2) instance, edge device, and on-premises server or VM in your hybrid environment that is configured for Amazon Web Services Systems Manager.
*/
public var instanceId: kotlin.String? = null
/**
* The name of the step for which you want detailed results. If the document contains only one step, you can omit the name and details for that step. If the document contains more than one step, you must specify the name of the step for which you want to view details. Be sure to specify the name of the step, not the name of a plugin like `aws:RunShellScript`.
*
* To find the `PluginName`, check the document content and find the name of the step you want details for. Alternatively, use ListCommandInvocations with the `CommandId` and `Details` parameters. The `PluginName` is the `Name` attribute of the `CommandPlugin` object in the `CommandPlugins` list.
*/
public var pluginName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.GetCommandInvocationRequest) : this() {
this.commandId = x.commandId
this.instanceId = x.instanceId
this.pluginName = x.pluginName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.GetCommandInvocationRequest = GetCommandInvocationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy