All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyuncs.v5.auth.sts.GetSessionAccessKeyResponseUnmarshaller Maven / Gradle / Ivy

package com.aliyuncs.v5.auth.sts;

import com.aliyuncs.v5.auth.sts.GenerateSessionAccessKeyResponse.SessionAccessKey;
import com.aliyuncs.v5.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.setSessionAccessKeySecert(context.stringValue("GenerateSessionAccessKeyResponse.SessionAccessKey.SessionAccessKeySecret"));
        credentials.setExpiration(context.stringValue("GenerateSessionAccessKeyResponse.SessionAccessKey.Expiration"));

        getSessionAccessKeyResponse.setSessionAccessKey(credentials);

        return getSessionAccessKeyResponse;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy