com.aliyuncs.oos.transform.v20190601.GetTemplateResponseUnmarshaller Maven / Gradle / Ivy
/*
* 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.oos.transform.v20190601;
import com.aliyuncs.oos.model.v20190601.GetTemplateResponse;
import com.aliyuncs.oos.model.v20190601.GetTemplateResponse.Template;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetTemplateResponseUnmarshaller {
public static GetTemplateResponse unmarshall(GetTemplateResponse getTemplateResponse, UnmarshallerContext _ctx) {
getTemplateResponse.setRequestId(_ctx.stringValue("GetTemplateResponse.RequestId"));
getTemplateResponse.setContent(_ctx.stringValue("GetTemplateResponse.Content"));
Template template = new Template();
template.setHash(_ctx.stringValue("GetTemplateResponse.Template.Hash"));
template.setUpdatedDate(_ctx.stringValue("GetTemplateResponse.Template.UpdatedDate"));
template.setUpdatedBy(_ctx.stringValue("GetTemplateResponse.Template.UpdatedBy"));
template.setTemplateType(_ctx.stringValue("GetTemplateResponse.Template.TemplateType"));
template.setTags(_ctx.mapValue("GetTemplateResponse.Template.Tags"));
template.setTemplateName(_ctx.stringValue("GetTemplateResponse.Template.TemplateName"));
template.setTemplateVersion(_ctx.stringValue("GetTemplateResponse.Template.TemplateVersion"));
template.setTemplateFormat(_ctx.stringValue("GetTemplateResponse.Template.TemplateFormat"));
template.setDescription(_ctx.stringValue("GetTemplateResponse.Template.Description"));
template.setResourceGroupId(_ctx.stringValue("GetTemplateResponse.Template.ResourceGroupId"));
template.setCreatedBy(_ctx.stringValue("GetTemplateResponse.Template.CreatedBy"));
template.setCreatedDate(_ctx.stringValue("GetTemplateResponse.Template.CreatedDate"));
template.setVersionName(_ctx.stringValue("GetTemplateResponse.Template.VersionName"));
template.setTemplateId(_ctx.stringValue("GetTemplateResponse.Template.TemplateId"));
template.setHasTrigger(_ctx.booleanValue("GetTemplateResponse.Template.HasTrigger"));
template.setShareType(_ctx.stringValue("GetTemplateResponse.Template.ShareType"));
getTemplateResponse.setTemplate(template);
return getTemplateResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy