public static final class AttachPolicyToRoleRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
AttachPolicyToRoleRequest |
build() |
AttachPolicyToRoleRequest.Builder |
policyName(String policyName)
The name of the policy.
|
AttachPolicyToRoleRequest.Builder |
policyType(String policyType)
The type of the policy.
|
AttachPolicyToRoleRequest.Builder |
roleName(String roleName)
The name of the RAM role.
|
public AttachPolicyToRoleRequest.Builder policyName(String policyName)
The name of the policy.
example:OSS-Administrator
public AttachPolicyToRoleRequest.Builder policyType(String policyType)
The type of the policy. Valid values: System and Custom.
Custom
public AttachPolicyToRoleRequest.Builder roleName(String roleName)
The name of the RAM role.
example:OSSAdminRole
public AttachPolicyToRoleRequest build()
Copyright © 2025. All rights reserved.