public class AttachAppPolicyToIdentityRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
appId
The ID of the application.
|
String |
identityName
The ID of the RAM user or the name of the RAM role.
|
String |
identityType
The type of the identity.
|
String |
policyNames
The name of the policy.
|
| 构造器和说明 |
|---|
AttachAppPolicyToIdentityRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static AttachAppPolicyToIdentityRequest |
build(Map<String,?> map) |
String |
getAppId() |
String |
getIdentityName() |
String |
getIdentityType() |
String |
getPolicyNames() |
AttachAppPolicyToIdentityRequest |
setAppId(String appId) |
AttachAppPolicyToIdentityRequest |
setIdentityName(String identityName) |
AttachAppPolicyToIdentityRequest |
setIdentityType(String identityType) |
AttachAppPolicyToIdentityRequest |
setPolicyNames(String policyNames) |
@NameInMap(value="AppId") public String appId
The ID of the application. Default value: **app-1000000**. For more information, see [Multi-application service](~~113600~~).
> This parameter is optional only if you set the policy name to VODAppAdministratorAccess.
@NameInMap(value="IdentityName") public String identityName
The ID of the RAM user or the name of the RAM role.
* Specify the ID of the RAM user when the IdentityType parameter is set to RamUser.
* Specify the name of the RAM role when the IdentityType parameter is set to RamRole.
@NameInMap(value="IdentityType") public String identityType
The type of the identity. Valid values:
* **RamUser**: a RAM user
* **RamRole**: a RAM role
@NameInMap(value="PolicyNames") public String policyNames
The name of the policy. Only system policies are supported. Separate multiple policy names with commas (,). Valid values:
* **VODAppFullAccess**: permissions to manage all resources in an application.
* **VODAppReadOnlyAccess**: permissions to read all resources in an application.
* **VODAppAdministratorAccess**: permissions of the application administrator.
public static AttachAppPolicyToIdentityRequest build(Map<String,?> map) throws Exception
Exceptionpublic AttachAppPolicyToIdentityRequest setAppId(String appId)
public String getAppId()
public AttachAppPolicyToIdentityRequest setIdentityName(String identityName)
public String getIdentityName()
public AttachAppPolicyToIdentityRequest setIdentityType(String identityType)
public String getIdentityType()
public AttachAppPolicyToIdentityRequest setPolicyNames(String policyNames)
public String getPolicyNames()
Copyright © 2024. All rights reserved.