com.aliyuncs.auth.sts.GetSessionAccessKeyResponseUnmarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-core Show documentation
Show all versions of aliyun-java-sdk-core Show documentation
Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
The newest version!
package com.aliyuncs.auth.sts;
import com.aliyuncs.auth.sts.GenerateSessionAccessKeyResponse.SessionAccessKey;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetSessionAccessKeyResponseUnmarshaller {
public static GenerateSessionAccessKeyResponse unmarshall(GenerateSessionAccessKeyResponse getSessionAccessKeyResponse,
UnmarshallerContext context) {
getSessionAccessKeyResponse.setRequestId(context.stringValue("GenerateSessionAccessKeyResponse.RequestId"));
SessionAccessKey credentials = new SessionAccessKey();
credentials.setSessionAccessKeyId(context.stringValue("GenerateSessionAccessKeyResponse.SessionAccessKey.SessionAccessKeyId"));
credentials.setSessionAccessKeySecret(context.stringValue("GenerateSessionAccessKeyResponse.SessionAccessKey.SessionAccessKeySecret"));
credentials.setExpiration(context.stringValue("GenerateSessionAccessKeyResponse.SessionAccessKey.Expiration"));
getSessionAccessKeyResponse.setSessionAccessKey(credentials);
return getSessionAccessKeyResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy