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