
commonMain.aws.sdk.kotlin.services.customerprofiles.model.CreateIntegrationWorkflowRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.customerprofiles.model
public class CreateIntegrationWorkflowRequest private constructor(builder: Builder) {
/**
* The unique name of the domain.
*/
public val domainName: kotlin.String? = requireNotNull(builder.domainName) { "A non-null value must be provided for domainName" }
/**
* Configuration data for integration workflow.
*/
public val integrationConfig: aws.sdk.kotlin.services.customerprofiles.model.IntegrationConfig? = builder.integrationConfig
/**
* The name of the profile object type.
*/
public val objectTypeName: kotlin.String? = builder.objectTypeName
/**
* The Amazon Resource Name (ARN) of the IAM role. Customer Profiles assumes this role to create resources on your behalf as part of workflow execution.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The tags used to organize, track, or control access for this resource.
*/
public val tags: Map? = builder.tags
/**
* The type of workflow. The only supported value is APPFLOW_INTEGRATION.
*/
public val workflowType: aws.sdk.kotlin.services.customerprofiles.model.WorkflowType? = builder.workflowType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.customerprofiles.model.CreateIntegrationWorkflowRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateIntegrationWorkflowRequest(")
append("domainName=$domainName,")
append("integrationConfig=$integrationConfig,")
append("objectTypeName=$objectTypeName,")
append("roleArn=$roleArn,")
append("tags=$tags,")
append("workflowType=$workflowType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = domainName?.hashCode() ?: 0
result = 31 * result + (integrationConfig?.hashCode() ?: 0)
result = 31 * result + (objectTypeName?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (workflowType?.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 CreateIntegrationWorkflowRequest
if (domainName != other.domainName) return false
if (integrationConfig != other.integrationConfig) return false
if (objectTypeName != other.objectTypeName) return false
if (roleArn != other.roleArn) return false
if (tags != other.tags) return false
if (workflowType != other.workflowType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.customerprofiles.model.CreateIntegrationWorkflowRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The unique name of the domain.
*/
public var domainName: kotlin.String? = null
/**
* Configuration data for integration workflow.
*/
public var integrationConfig: aws.sdk.kotlin.services.customerprofiles.model.IntegrationConfig? = null
/**
* The name of the profile object type.
*/
public var objectTypeName: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the IAM role. Customer Profiles assumes this role to create resources on your behalf as part of workflow execution.
*/
public var roleArn: kotlin.String? = null
/**
* The tags used to organize, track, or control access for this resource.
*/
public var tags: Map? = null
/**
* The type of workflow. The only supported value is APPFLOW_INTEGRATION.
*/
public var workflowType: aws.sdk.kotlin.services.customerprofiles.model.WorkflowType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.customerprofiles.model.CreateIntegrationWorkflowRequest) : this() {
this.domainName = x.domainName
this.integrationConfig = x.integrationConfig
this.objectTypeName = x.objectTypeName
this.roleArn = x.roleArn
this.tags = x.tags
this.workflowType = x.workflowType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.customerprofiles.model.CreateIntegrationWorkflowRequest = CreateIntegrationWorkflowRequest(this)
/**
* construct an [aws.sdk.kotlin.services.customerprofiles.model.IntegrationConfig] inside the given [block]
*/
public fun integrationConfig(block: aws.sdk.kotlin.services.customerprofiles.model.IntegrationConfig.Builder.() -> kotlin.Unit) {
this.integrationConfig = aws.sdk.kotlin.services.customerprofiles.model.IntegrationConfig.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy