public class GrantTemplateAuthorityRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
comment
The reason why you want to grant permissions on resources to the users by using the permission template.
|
String |
expireDate
The time when the permission expires.
|
Long |
templateId
The ID of the permission template.
|
Long |
tid
The ID of the tenant.
|
String |
userIds
The IDs of users to which you want to grant permissions on resources by using the permission template.
|
| 构造器和说明 |
|---|
GrantTemplateAuthorityRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static GrantTemplateAuthorityRequest |
build(Map<String,?> map) |
String |
getComment() |
String |
getExpireDate() |
Long |
getTemplateId() |
Long |
getTid() |
String |
getUserIds() |
GrantTemplateAuthorityRequest |
setComment(String comment) |
GrantTemplateAuthorityRequest |
setExpireDate(String expireDate) |
GrantTemplateAuthorityRequest |
setTemplateId(Long templateId) |
GrantTemplateAuthorityRequest |
setTid(Long tid) |
GrantTemplateAuthorityRequest |
setUserIds(String userIds) |
@NameInMap(value="Comment") public String comment
The reason why you want to grant permissions on resources to the users by using the permission template.
example:Business test.
@NameInMap(value="ExpireDate") public String expireDate
The time when the permission expires. Specify the time in the yyyy-MM-DD HH:mm:ss format.
This parameter is required.
example:2023-03-08 17:58:53
@NameInMap(value="TemplateId") public Long templateId
The ID of the permission template.
This parameter is required.
example:1563
@NameInMap(value="Tid") public Long tid
The ID of the tenant. You can call the GetUserActiveTenant or ListUserTenants operation to query the tenant ID.
example:3***
@NameInMap(value="UserIds") public String userIds
The IDs of users to which you want to grant permissions on resources by using the permission template.
This parameter is required.
example:[12***,34***,56***]
public static GrantTemplateAuthorityRequest build(Map<String,?> map) throws Exception
Exceptionpublic GrantTemplateAuthorityRequest setComment(String comment)
public String getComment()
public GrantTemplateAuthorityRequest setExpireDate(String expireDate)
public String getExpireDate()
public GrantTemplateAuthorityRequest setTemplateId(Long templateId)
public Long getTemplateId()
public GrantTemplateAuthorityRequest setTid(Long tid)
public Long getTid()
public GrantTemplateAuthorityRequest setUserIds(String userIds)
public String getUserIds()
Copyright © 2025. All rights reserved.