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