
commonMain.aws.sdk.kotlin.services.emrcontainers.model.GetManagedEndpointSessionCredentialsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emrcontainers.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetManagedEndpointSessionCredentialsRequest private constructor(builder: Builder) {
/**
* The client idempotency token of the job run request.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* Type of the token requested. Currently supported and default value of this field is “TOKEN.”
*/
public val credentialType: kotlin.String? = builder.credentialType
/**
* Duration in seconds for which the session token is valid. The default duration is 15 minutes and the maximum is 12 hours.
*/
public val durationInSeconds: kotlin.Int? = builder.durationInSeconds
/**
* The ARN of the managed endpoint for which the request is submitted.
*/
public val endpointIdentifier: kotlin.String? = builder.endpointIdentifier
/**
* The IAM Execution Role ARN that will be used by the job run.
*/
public val executionRoleArn: kotlin.String? = builder.executionRoleArn
/**
* String identifier used to separate sections of the execution logs uploaded to S3.
*/
public val logContext: kotlin.String? = builder.logContext
/**
* The ARN of the Virtual Cluster which the Managed Endpoint belongs to.
*/
public val virtualClusterIdentifier: kotlin.String? = builder.virtualClusterIdentifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emrcontainers.model.GetManagedEndpointSessionCredentialsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetManagedEndpointSessionCredentialsRequest(")
append("clientToken=$clientToken,")
append("credentialType=$credentialType,")
append("durationInSeconds=$durationInSeconds,")
append("endpointIdentifier=$endpointIdentifier,")
append("executionRoleArn=$executionRoleArn,")
append("logContext=$logContext,")
append("virtualClusterIdentifier=$virtualClusterIdentifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (credentialType?.hashCode() ?: 0)
result = 31 * result + (durationInSeconds ?: 0)
result = 31 * result + (endpointIdentifier?.hashCode() ?: 0)
result = 31 * result + (executionRoleArn?.hashCode() ?: 0)
result = 31 * result + (logContext?.hashCode() ?: 0)
result = 31 * result + (virtualClusterIdentifier?.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 GetManagedEndpointSessionCredentialsRequest
if (clientToken != other.clientToken) return false
if (credentialType != other.credentialType) return false
if (durationInSeconds != other.durationInSeconds) return false
if (endpointIdentifier != other.endpointIdentifier) return false
if (executionRoleArn != other.executionRoleArn) return false
if (logContext != other.logContext) return false
if (virtualClusterIdentifier != other.virtualClusterIdentifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emrcontainers.model.GetManagedEndpointSessionCredentialsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The client idempotency token of the job run request.
*/
public var clientToken: kotlin.String? = null
/**
* Type of the token requested. Currently supported and default value of this field is “TOKEN.”
*/
public var credentialType: kotlin.String? = null
/**
* Duration in seconds for which the session token is valid. The default duration is 15 minutes and the maximum is 12 hours.
*/
public var durationInSeconds: kotlin.Int? = null
/**
* The ARN of the managed endpoint for which the request is submitted.
*/
public var endpointIdentifier: kotlin.String? = null
/**
* The IAM Execution Role ARN that will be used by the job run.
*/
public var executionRoleArn: kotlin.String? = null
/**
* String identifier used to separate sections of the execution logs uploaded to S3.
*/
public var logContext: kotlin.String? = null
/**
* The ARN of the Virtual Cluster which the Managed Endpoint belongs to.
*/
public var virtualClusterIdentifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emrcontainers.model.GetManagedEndpointSessionCredentialsRequest) : this() {
this.clientToken = x.clientToken
this.credentialType = x.credentialType
this.durationInSeconds = x.durationInSeconds
this.endpointIdentifier = x.endpointIdentifier
this.executionRoleArn = x.executionRoleArn
this.logContext = x.logContext
this.virtualClusterIdentifier = x.virtualClusterIdentifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emrcontainers.model.GetManagedEndpointSessionCredentialsRequest = GetManagedEndpointSessionCredentialsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy