com.aliyuncs.cloudauth.transform.v20180916.GetVerifyTokenResponseUnmarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-cloudauth Show documentation
Show all versions of aliyun-java-sdk-cloudauth Show documentation
Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.cloudauth.transform.v20180916;
import com.aliyuncs.cloudauth.model.v20180916.GetVerifyTokenResponse;
import com.aliyuncs.cloudauth.model.v20180916.GetVerifyTokenResponse.Data;
import com.aliyuncs.cloudauth.model.v20180916.GetVerifyTokenResponse.Data.StsToken;
import com.aliyuncs.cloudauth.model.v20180916.GetVerifyTokenResponse.Data.VerifyToken;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetVerifyTokenResponseUnmarshaller {
public static GetVerifyTokenResponse unmarshall(GetVerifyTokenResponse getVerifyTokenResponse, UnmarshallerContext _ctx) {
getVerifyTokenResponse.setRequestId(_ctx.stringValue("GetVerifyTokenResponse.RequestId"));
getVerifyTokenResponse.setSuccess(_ctx.booleanValue("GetVerifyTokenResponse.Success"));
getVerifyTokenResponse.setCode(_ctx.stringValue("GetVerifyTokenResponse.Code"));
getVerifyTokenResponse.setMessage(_ctx.stringValue("GetVerifyTokenResponse.Message"));
Data data = new Data();
data.setCloudauthPageUrl(_ctx.stringValue("GetVerifyTokenResponse.Data.CloudauthPageUrl"));
VerifyToken verifyToken = new VerifyToken();
verifyToken.setToken(_ctx.stringValue("GetVerifyTokenResponse.Data.VerifyToken.Token"));
verifyToken.setDurationSeconds(_ctx.integerValue("GetVerifyTokenResponse.Data.VerifyToken.DurationSeconds"));
data.setVerifyToken(verifyToken);
StsToken stsToken = new StsToken();
stsToken.setAccessKeyId(_ctx.stringValue("GetVerifyTokenResponse.Data.StsToken.AccessKeyId"));
stsToken.setAccessKeySecret(_ctx.stringValue("GetVerifyTokenResponse.Data.StsToken.AccessKeySecret"));
stsToken.setExpiration(_ctx.stringValue("GetVerifyTokenResponse.Data.StsToken.Expiration"));
stsToken.setEndPoint(_ctx.stringValue("GetVerifyTokenResponse.Data.StsToken.EndPoint"));
stsToken.setBucketName(_ctx.stringValue("GetVerifyTokenResponse.Data.StsToken.BucketName"));
stsToken.setPath(_ctx.stringValue("GetVerifyTokenResponse.Data.StsToken.Path"));
stsToken.setToken(_ctx.stringValue("GetVerifyTokenResponse.Data.StsToken.Token"));
data.setStsToken(stsToken);
getVerifyTokenResponse.setData(data);
return getVerifyTokenResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy