Class GetCallerIdentityResponse
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.sts.v20180813.models.GetCallerIdentityResponse
-
public class GetCallerIdentityResponse extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAccountId()Get 当前调用者所属主账号Uin。StringgetArn()Get 当前调用者ARN。StringgetPrincipalId()Get 密钥所属账号Uin。 1.StringgetRequestId()Get 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。StringgetType()Get 身份类型。StringgetUserId()Get 身份标识。 1.voidsetAccountId(String AccountId)Set 当前调用者所属主账号Uin。voidsetArn(String Arn)Set 当前调用者ARN。voidsetPrincipalId(String PrincipalId)Set 密钥所属账号Uin。 1.voidsetRequestId(String RequestId)Set 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。voidsetType(String Type)Set 身份类型。voidsetUserId(String UserId)Set 身份标识。 1.voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
GetCallerIdentityResponse
public GetCallerIdentityResponse()
-
GetCallerIdentityResponse
public 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.
-
-
Method Detail
-
getArn
public String getArn()
Get 当前调用者ARN。- Returns:
- Arn 当前调用者ARN。
-
setArn
public void setArn(String Arn)
Set 当前调用者ARN。- Parameters:
Arn- 当前调用者ARN。
-
getAccountId
public String getAccountId()
Get 当前调用者所属主账号Uin。- Returns:
- AccountId 当前调用者所属主账号Uin。
-
setAccountId
public void setAccountId(String AccountId)
Set 当前调用者所属主账号Uin。- Parameters:
AccountId- 当前调用者所属主账号Uin。
-
getUserId
public String getUserId()
Get 身份标识。 1. 调用者是云账号时,返回的是当前账号Uin 2. 调用者是角色时,返回的是roleId:roleSessionName 3. 调用者是联合身份时,返回的是uin:federatedUserName- Returns:
- UserId 身份标识。 1. 调用者是云账号时,返回的是当前账号Uin 2. 调用者是角色时,返回的是roleId:roleSessionName 3. 调用者是联合身份时,返回的是uin:federatedUserName
-
setUserId
public void setUserId(String UserId)
Set 身份标识。 1. 调用者是云账号时,返回的是当前账号Uin 2. 调用者是角色时,返回的是roleId:roleSessionName 3. 调用者是联合身份时,返回的是uin:federatedUserName- Parameters:
UserId- 身份标识。 1. 调用者是云账号时,返回的是当前账号Uin 2. 调用者是角色时,返回的是roleId:roleSessionName 3. 调用者是联合身份时,返回的是uin:federatedUserName
-
getPrincipalId
public String getPrincipalId()
Get 密钥所属账号Uin。 1. 调用者是云账号,返回的当前账号Uin 2, 调用者是角色,返回的申请角色密钥的账号Uin- Returns:
- PrincipalId 密钥所属账号Uin。 1. 调用者是云账号,返回的当前账号Uin 2, 调用者是角色,返回的申请角色密钥的账号Uin
-
setPrincipalId
public void setPrincipalId(String PrincipalId)
Set 密钥所属账号Uin。 1. 调用者是云账号,返回的当前账号Uin 2, 调用者是角色,返回的申请角色密钥的账号Uin- Parameters:
PrincipalId- 密钥所属账号Uin。 1. 调用者是云账号,返回的当前账号Uin 2, 调用者是角色,返回的申请角色密钥的账号Uin
-
getType
public String getType()
Get 身份类型。- Returns:
- Type 身份类型。
-
setType
public void setType(String Type)
Set 身份类型。- Parameters:
Type- 身份类型。
-
getRequestId
public String getRequestId()
Get 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。- Returns:
- RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
-
setRequestId
public void setRequestId(String RequestId)
Set 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。- Parameters:
RequestId- 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
-
-