commonMain.aws.sdk.kotlin.services.datazone.model.ProjectPolicyGrantPrincipal.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datazone-jvm Show documentation
Show all versions of datazone-jvm Show documentation
The AWS SDK for Kotlin client for DataZone
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datazone.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The project policy grant principal.
*/
public class ProjectPolicyGrantPrincipal private constructor(builder: Builder) {
/**
* The project designation of the project policy grant principal.
*/
public val projectDesignation: aws.sdk.kotlin.services.datazone.model.ProjectDesignation = requireNotNull(builder.projectDesignation) { "A non-null value must be provided for projectDesignation" }
/**
* The project grant filter of the project policy grant principal.
*/
public val projectGrantFilter: aws.sdk.kotlin.services.datazone.model.ProjectGrantFilter? = builder.projectGrantFilter
/**
* The project ID of the project policy grant principal.
*/
public val projectIdentifier: kotlin.String? = builder.projectIdentifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.ProjectPolicyGrantPrincipal = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProjectPolicyGrantPrincipal(")
append("projectDesignation=$projectDesignation,")
append("projectGrantFilter=$projectGrantFilter,")
append("projectIdentifier=$projectIdentifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = projectDesignation.hashCode()
result = 31 * result + (projectGrantFilter?.hashCode() ?: 0)
result = 31 * result + (projectIdentifier?.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 ProjectPolicyGrantPrincipal
if (projectDesignation != other.projectDesignation) return false
if (projectGrantFilter != other.projectGrantFilter) return false
if (projectIdentifier != other.projectIdentifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.ProjectPolicyGrantPrincipal = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The project designation of the project policy grant principal.
*/
public var projectDesignation: aws.sdk.kotlin.services.datazone.model.ProjectDesignation? = null
/**
* The project grant filter of the project policy grant principal.
*/
public var projectGrantFilter: aws.sdk.kotlin.services.datazone.model.ProjectGrantFilter? = null
/**
* The project ID of the project policy grant principal.
*/
public var projectIdentifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.ProjectPolicyGrantPrincipal) : this() {
this.projectDesignation = x.projectDesignation
this.projectGrantFilter = x.projectGrantFilter
this.projectIdentifier = x.projectIdentifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.ProjectPolicyGrantPrincipal = ProjectPolicyGrantPrincipal(this)
internal fun correctErrors(): Builder {
if (projectDesignation == null) projectDesignation = ProjectDesignation.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy