public class GetCallerIdentityResponse extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| GetCallerIdentityResponse() | 
| GetCallerIdentityResponse(GetCallerIdentityResponse source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getAccountId()Get 当前调用者所属主账号Uin。 | 
| String | getArn()Get 当前调用者ARN。 | 
| String | getPrincipalId()Get 密钥所属账号Uin。
1. | 
| String | getRequestId()Get 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 | 
| String | getType()Get 身份类型。 | 
| String | getUserId()Get 身份标识。
1. | 
| void | setAccountId(String AccountId)Set 当前调用者所属主账号Uin。 | 
| void | setArn(String Arn)Set 当前调用者ARN。 | 
| void | setPrincipalId(String PrincipalId)Set 密钥所属账号Uin。
1. | 
| void | setRequestId(String RequestId)Set 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 | 
| void | setType(String Type)Set 身份类型。 | 
| void | setUserId(String UserId)Set 身份标识。
1. | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic GetCallerIdentityResponse()
public GetCallerIdentityResponse(GetCallerIdentityResponse source)
public String getArn()
public void setArn(String Arn)
Arn - 当前调用者ARN。public String getAccountId()
public void setAccountId(String AccountId)
AccountId - 当前调用者所属主账号Uin。public String getUserId()
public void setUserId(String UserId)
UserId - 身份标识。
1. 调用者是云账号时,返回的是当前账号Uin
2. 调用者是角色时,返回的是roleId:roleSessionName
3. 调用者是联合身份时,返回的是uin:federatedUserNamepublic String getPrincipalId()
public void setPrincipalId(String PrincipalId)
PrincipalId - 密钥所属账号Uin。
1. 调用者是云账号,返回的当前账号Uin
2, 调用者是角色,返回的申请角色密钥的账号Uinpublic String getType()
public void setType(String Type)
Type - 身份类型。public String getRequestId()
public void setRequestId(String RequestId)
RequestId - 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。Copyright © 2025. All rights reserved.