
commonMain.aws.sdk.kotlin.services.rolesanywhere.model.UpdateProfileRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rolesanywhere.model
public class UpdateProfileRequest private constructor(builder: Builder) {
/**
* The number of seconds the vended session credentials are valid for.
*/
public val durationSeconds: kotlin.Int? = builder.durationSeconds
/**
* A list of managed policy ARNs that apply to the vended session credentials.
*/
public val managedPolicyArns: List? = builder.managedPolicyArns
/**
* The name of the profile.
*/
public val name: kotlin.String? = builder.name
/**
* The unique identifier of the profile.
*/
public val profileId: kotlin.String? = requireNotNull(builder.profileId) { "A non-null value must be provided for profileId" }
/**
* A list of IAM roles that this profile can assume in a temporary credential request.
*/
public val roleArns: List? = builder.roleArns
/**
* A session policy that applies to the trust boundary of the vended session credentials.
*/
public val sessionPolicy: kotlin.String? = builder.sessionPolicy
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rolesanywhere.model.UpdateProfileRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateProfileRequest(")
append("durationSeconds=$durationSeconds,")
append("managedPolicyArns=$managedPolicyArns,")
append("name=$name,")
append("profileId=$profileId,")
append("roleArns=$roleArns,")
append("sessionPolicy=$sessionPolicy")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = durationSeconds ?: 0
result = 31 * result + (managedPolicyArns?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (profileId?.hashCode() ?: 0)
result = 31 * result + (roleArns?.hashCode() ?: 0)
result = 31 * result + (sessionPolicy?.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 UpdateProfileRequest
if (durationSeconds != other.durationSeconds) return false
if (managedPolicyArns != other.managedPolicyArns) return false
if (name != other.name) return false
if (profileId != other.profileId) return false
if (roleArns != other.roleArns) return false
if (sessionPolicy != other.sessionPolicy) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rolesanywhere.model.UpdateProfileRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The number of seconds the vended session credentials are valid for.
*/
public var durationSeconds: kotlin.Int? = null
/**
* A list of managed policy ARNs that apply to the vended session credentials.
*/
public var managedPolicyArns: List? = null
/**
* The name of the profile.
*/
public var name: kotlin.String? = null
/**
* The unique identifier of the profile.
*/
public var profileId: kotlin.String? = null
/**
* A list of IAM roles that this profile can assume in a temporary credential request.
*/
public var roleArns: List? = null
/**
* A session policy that applies to the trust boundary of the vended session credentials.
*/
public var sessionPolicy: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rolesanywhere.model.UpdateProfileRequest) : this() {
this.durationSeconds = x.durationSeconds
this.managedPolicyArns = x.managedPolicyArns
this.name = x.name
this.profileId = x.profileId
this.roleArns = x.roleArns
this.sessionPolicy = x.sessionPolicy
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rolesanywhere.model.UpdateProfileRequest = UpdateProfileRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy