public static final class CreateRoleResponseBody.Role.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
CreateRoleResponseBody.Role.Builder |
arn(String arn)
The Alibaba Cloud Resource Name (ARN) of the role.
|
CreateRoleResponseBody.Role.Builder |
assumeRolePolicyDocument(String assumeRolePolicyDocument)
The trust policy that specifies the trusted entity to assume the RAM role.
|
CreateRoleResponseBody.Role |
build() |
CreateRoleResponseBody.Role.Builder |
createDate(String createDate)
The time when the RAM user was created.
|
CreateRoleResponseBody.Role.Builder |
description(String description)
The description of the RAM role.
|
CreateRoleResponseBody.Role.Builder |
maxSessionDuration(Long maxSessionDuration)
The maximum session duration of the RAM role.
|
CreateRoleResponseBody.Role.Builder |
roleId(String roleId)
The ID of the RAM role.
|
CreateRoleResponseBody.Role.Builder |
roleName(String roleName)
The name of the RAM role.
|
public CreateRoleResponseBody.Role.Builder arn(String arn)
The Alibaba Cloud Resource Name (ARN) of the role.
example:acs:ram::123456789012****:role/ECSAdmin
public CreateRoleResponseBody.Role.Builder assumeRolePolicyDocument(String assumeRolePolicyDocument)
The trust policy that specifies the trusted entity to assume the RAM role.
example:{ "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "RAM": "acs:ram::123456789012****:root" } } ], "Version": "1" }
public CreateRoleResponseBody.Role.Builder createDate(String createDate)
The time when the RAM user was created.
example:2015-01-23T12:33:18Z
public CreateRoleResponseBody.Role.Builder description(String description)
The description of the RAM role.
example:ECS administrator
public CreateRoleResponseBody.Role.Builder maxSessionDuration(Long maxSessionDuration)
The maximum session duration of the RAM role.
example:3600
public CreateRoleResponseBody.Role.Builder roleId(String roleId)
The ID of the RAM role.
example:901234567890****
public CreateRoleResponseBody.Role.Builder roleName(String roleName)
The name of the RAM role.
example:ECSAdmin
public CreateRoleResponseBody.Role build()
Copyright © 2025. All rights reserved.