index
int64 | repo_id
string | file_path
string | content
string |
|---|---|---|---|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/GetConfigRuleSummaryByRiskLevelResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.GetConfigRuleSummaryByRiskLevelResponse;
import com.aliyuncs.config.model.v20200907.GetConfigRuleSummaryByRiskLevelResponse.Data;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetConfigRuleSummaryByRiskLevelResponseUnmarshaller {
public static GetConfigRuleSummaryByRiskLevelResponse unmarshall(GetConfigRuleSummaryByRiskLevelResponse getConfigRuleSummaryByRiskLevelResponse, UnmarshallerContext _ctx) {
getConfigRuleSummaryByRiskLevelResponse.setRequestId(_ctx.stringValue("GetConfigRuleSummaryByRiskLevelResponse.RequestId"));
List<Data> configRuleSummaries = new ArrayList<Data>();
for (int i = 0; i < _ctx.lengthValue("GetConfigRuleSummaryByRiskLevelResponse.ConfigRuleSummaries.Length"); i++) {
Data data = new Data();
data.setCompliantCount(_ctx.integerValue("GetConfigRuleSummaryByRiskLevelResponse.ConfigRuleSummaries["+ i +"].CompliantCount"));
data.setNonCompliantCount(_ctx.integerValue("GetConfigRuleSummaryByRiskLevelResponse.ConfigRuleSummaries["+ i +"].NonCompliantCount"));
data.setRiskLevel(_ctx.integerValue("GetConfigRuleSummaryByRiskLevelResponse.ConfigRuleSummaries["+ i +"].RiskLevel"));
configRuleSummaries.add(data);
}
getConfigRuleSummaryByRiskLevelResponse.setConfigRuleSummaries(configRuleSummaries);
return getConfigRuleSummaryByRiskLevelResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/GetConfigRulesReportResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.GetConfigRulesReportResponse;
import com.aliyuncs.config.model.v20200907.GetConfigRulesReportResponse.ConfigRulesReport;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetConfigRulesReportResponseUnmarshaller {
public static GetConfigRulesReportResponse unmarshall(GetConfigRulesReportResponse getConfigRulesReportResponse, UnmarshallerContext _ctx) {
getConfigRulesReportResponse.setRequestId(_ctx.stringValue("GetConfigRulesReportResponse.RequestId"));
ConfigRulesReport configRulesReport = new ConfigRulesReport();
configRulesReport.setReportStatus(_ctx.stringValue("GetConfigRulesReportResponse.ConfigRulesReport.ReportStatus"));
configRulesReport.setReportUrl(_ctx.stringValue("GetConfigRulesReportResponse.ConfigRulesReport.ReportUrl"));
configRulesReport.setAccountId(_ctx.longValue("GetConfigRulesReportResponse.ConfigRulesReport.AccountId"));
configRulesReport.setReportCreateTimestamp(_ctx.longValue("GetConfigRulesReportResponse.ConfigRulesReport.ReportCreateTimestamp"));
configRulesReport.setReportId(_ctx.stringValue("GetConfigRulesReportResponse.ConfigRulesReport.ReportId"));
getConfigRulesReportResponse.setConfigRulesReport(configRulesReport);
return getConfigRulesReportResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/GetConfigurationRecorderResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.GetConfigurationRecorderResponse;
import com.aliyuncs.config.model.v20200907.GetConfigurationRecorderResponse.ConfigurationRecorder;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetConfigurationRecorderResponseUnmarshaller {
public static GetConfigurationRecorderResponse unmarshall(GetConfigurationRecorderResponse getConfigurationRecorderResponse, UnmarshallerContext _ctx) {
getConfigurationRecorderResponse.setRequestId(_ctx.stringValue("GetConfigurationRecorderResponse.RequestId"));
ConfigurationRecorder configurationRecorder = new ConfigurationRecorder();
configurationRecorder.setConfigurationRecorderStatus(_ctx.stringValue("GetConfigurationRecorderResponse.ConfigurationRecorder.ConfigurationRecorderStatus"));
List<String> resourceTypes = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("GetConfigurationRecorderResponse.ConfigurationRecorder.ResourceTypes.Length"); i++) {
resourceTypes.add(_ctx.stringValue("GetConfigurationRecorderResponse.ConfigurationRecorder.ResourceTypes["+ i +"]"));
}
configurationRecorder.setResourceTypes(resourceTypes);
getConfigurationRecorderResponse.setConfigurationRecorder(configurationRecorder);
return getConfigurationRecorderResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/GetDiscoveredResourceCountsGroupByRegionResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.GetDiscoveredResourceCountsGroupByRegionResponse;
import com.aliyuncs.config.model.v20200907.GetDiscoveredResourceCountsGroupByRegionResponse.GroupedResourceCount;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetDiscoveredResourceCountsGroupByRegionResponseUnmarshaller {
public static GetDiscoveredResourceCountsGroupByRegionResponse unmarshall(GetDiscoveredResourceCountsGroupByRegionResponse getDiscoveredResourceCountsGroupByRegionResponse, UnmarshallerContext _ctx) {
getDiscoveredResourceCountsGroupByRegionResponse.setRequestId(_ctx.stringValue("GetDiscoveredResourceCountsGroupByRegionResponse.RequestId"));
List<GroupedResourceCount> discoveredResourceCountsSummary = new ArrayList<GroupedResourceCount>();
for (int i = 0; i < _ctx.lengthValue("GetDiscoveredResourceCountsGroupByRegionResponse.DiscoveredResourceCountsSummary.Length"); i++) {
GroupedResourceCount groupedResourceCount = new GroupedResourceCount();
groupedResourceCount.setResourceCount(_ctx.longValue("GetDiscoveredResourceCountsGroupByRegionResponse.DiscoveredResourceCountsSummary["+ i +"].ResourceCount"));
groupedResourceCount.setGroupName(_ctx.stringValue("GetDiscoveredResourceCountsGroupByRegionResponse.DiscoveredResourceCountsSummary["+ i +"].GroupName"));
groupedResourceCount.setRegion(_ctx.stringValue("GetDiscoveredResourceCountsGroupByRegionResponse.DiscoveredResourceCountsSummary["+ i +"].Region"));
discoveredResourceCountsSummary.add(groupedResourceCount);
}
getDiscoveredResourceCountsGroupByRegionResponse.setDiscoveredResourceCountsSummary(discoveredResourceCountsSummary);
return getDiscoveredResourceCountsGroupByRegionResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/GetDiscoveredResourceCountsGroupByResourceTypeResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.GetDiscoveredResourceCountsGroupByResourceTypeResponse;
import com.aliyuncs.config.model.v20200907.GetDiscoveredResourceCountsGroupByResourceTypeResponse.GroupedResourceCount;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetDiscoveredResourceCountsGroupByResourceTypeResponseUnmarshaller {
public static GetDiscoveredResourceCountsGroupByResourceTypeResponse unmarshall(GetDiscoveredResourceCountsGroupByResourceTypeResponse getDiscoveredResourceCountsGroupByResourceTypeResponse, UnmarshallerContext _ctx) {
getDiscoveredResourceCountsGroupByResourceTypeResponse.setRequestId(_ctx.stringValue("GetDiscoveredResourceCountsGroupByResourceTypeResponse.RequestId"));
List<GroupedResourceCount> discoveredResourceCountsSummary = new ArrayList<GroupedResourceCount>();
for (int i = 0; i < _ctx.lengthValue("GetDiscoveredResourceCountsGroupByResourceTypeResponse.DiscoveredResourceCountsSummary.Length"); i++) {
GroupedResourceCount groupedResourceCount = new GroupedResourceCount();
groupedResourceCount.setResourceCount(_ctx.longValue("GetDiscoveredResourceCountsGroupByResourceTypeResponse.DiscoveredResourceCountsSummary["+ i +"].ResourceCount"));
groupedResourceCount.setGroupName(_ctx.stringValue("GetDiscoveredResourceCountsGroupByResourceTypeResponse.DiscoveredResourceCountsSummary["+ i +"].GroupName"));
groupedResourceCount.setResourceType(_ctx.stringValue("GetDiscoveredResourceCountsGroupByResourceTypeResponse.DiscoveredResourceCountsSummary["+ i +"].ResourceType"));
discoveredResourceCountsSummary.add(groupedResourceCount);
}
getDiscoveredResourceCountsGroupByResourceTypeResponse.setDiscoveredResourceCountsSummary(discoveredResourceCountsSummary);
return getDiscoveredResourceCountsGroupByResourceTypeResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/GetDiscoveredResourceResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.GetDiscoveredResourceResponse;
import com.aliyuncs.config.model.v20200907.GetDiscoveredResourceResponse.DiscoveredResourceDetail;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetDiscoveredResourceResponseUnmarshaller {
public static GetDiscoveredResourceResponse unmarshall(GetDiscoveredResourceResponse getDiscoveredResourceResponse, UnmarshallerContext _ctx) {
getDiscoveredResourceResponse.setRequestId(_ctx.stringValue("GetDiscoveredResourceResponse.RequestId"));
DiscoveredResourceDetail discoveredResourceDetail = new DiscoveredResourceDetail();
discoveredResourceDetail.setAvailabilityZone(_ctx.stringValue("GetDiscoveredResourceResponse.DiscoveredResourceDetail.AvailabilityZone"));
discoveredResourceDetail.setResourceType(_ctx.stringValue("GetDiscoveredResourceResponse.DiscoveredResourceDetail.ResourceType"));
discoveredResourceDetail.setConfiguration(_ctx.stringValue("GetDiscoveredResourceResponse.DiscoveredResourceDetail.Configuration"));
discoveredResourceDetail.setRegion(_ctx.stringValue("GetDiscoveredResourceResponse.DiscoveredResourceDetail.Region"));
discoveredResourceDetail.setResourceCreationTime(_ctx.longValue("GetDiscoveredResourceResponse.DiscoveredResourceDetail.ResourceCreationTime"));
discoveredResourceDetail.setTags(_ctx.stringValue("GetDiscoveredResourceResponse.DiscoveredResourceDetail.Tags"));
discoveredResourceDetail.setAccountId(_ctx.longValue("GetDiscoveredResourceResponse.DiscoveredResourceDetail.AccountId"));
discoveredResourceDetail.setResourceId(_ctx.stringValue("GetDiscoveredResourceResponse.DiscoveredResourceDetail.ResourceId"));
discoveredResourceDetail.setResourceDeleted(_ctx.integerValue("GetDiscoveredResourceResponse.DiscoveredResourceDetail.ResourceDeleted"));
discoveredResourceDetail.setResourceName(_ctx.stringValue("GetDiscoveredResourceResponse.DiscoveredResourceDetail.ResourceName"));
discoveredResourceDetail.setResourceStatus(_ctx.stringValue("GetDiscoveredResourceResponse.DiscoveredResourceDetail.ResourceStatus"));
discoveredResourceDetail.setVersion(_ctx.longValue("GetDiscoveredResourceResponse.DiscoveredResourceDetail.Version"));
discoveredResourceDetail.setComplianceType(_ctx.stringValue("GetDiscoveredResourceResponse.DiscoveredResourceDetail.ComplianceType"));
discoveredResourceDetail.setVpcId(_ctx.stringValue("GetDiscoveredResourceResponse.DiscoveredResourceDetail.VpcId"));
discoveredResourceDetail.setVSwitchId(_ctx.stringValue("GetDiscoveredResourceResponse.DiscoveredResourceDetail.VSwitchId"));
getDiscoveredResourceResponse.setDiscoveredResourceDetail(discoveredResourceDetail);
return getDiscoveredResourceResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/GetIntegratedServiceStatusResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.GetIntegratedServiceStatusResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetIntegratedServiceStatusResponseUnmarshaller {
public static GetIntegratedServiceStatusResponse unmarshall(GetIntegratedServiceStatusResponse getIntegratedServiceStatusResponse, UnmarshallerContext _ctx) {
getIntegratedServiceStatusResponse.setRequestId(_ctx.stringValue("GetIntegratedServiceStatusResponse.RequestId"));
getIntegratedServiceStatusResponse.setData(_ctx.booleanValue("GetIntegratedServiceStatusResponse.Data"));
getIntegratedServiceStatusResponse.setIntegratedTypes(_ctx.stringValue("GetIntegratedServiceStatusResponse.IntegratedTypes"));
getIntegratedServiceStatusResponse.setAggregatorDeliveryDataType(_ctx.stringValue("GetIntegratedServiceStatusResponse.AggregatorDeliveryDataType"));
return getIntegratedServiceStatusResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/GetManagedRuleResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.GetManagedRuleResponse;
import com.aliyuncs.config.model.v20200907.GetManagedRuleResponse.ManagedRule;
import com.aliyuncs.config.model.v20200907.GetManagedRuleResponse.ManagedRule.Scope;
import com.aliyuncs.config.model.v20200907.GetManagedRuleResponse.ManagedRule.SourceDetailsItem;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetManagedRuleResponseUnmarshaller {
public static GetManagedRuleResponse unmarshall(GetManagedRuleResponse getManagedRuleResponse, UnmarshallerContext _ctx) {
getManagedRuleResponse.setRequestId(_ctx.stringValue("GetManagedRuleResponse.RequestId"));
ManagedRule managedRule = new ManagedRule();
managedRule.setRiskLevel(_ctx.integerValue("GetManagedRuleResponse.ManagedRule.RiskLevel"));
managedRule.setHelpHint(_ctx.stringValue("GetManagedRuleResponse.ManagedRule.HelpHint"));
managedRule.setDefaultName(_ctx.stringValue("GetManagedRuleResponse.ManagedRule.DefaultName"));
managedRule.setOptionalInputParameterDetails(_ctx.mapValue("GetManagedRuleResponse.ManagedRule.OptionalInputParameterDetails"));
managedRule.setIdentifier(_ctx.stringValue("GetManagedRuleResponse.ManagedRule.Identifier"));
managedRule.setCompulsoryInputParameterDetails(_ctx.mapValue("GetManagedRuleResponse.ManagedRule.CompulsoryInputParameterDetails"));
managedRule.setRegionId(_ctx.stringValue("GetManagedRuleResponse.ManagedRule.RegionId"));
managedRule.setDescription(_ctx.stringValue("GetManagedRuleResponse.ManagedRule.Description"));
managedRule.setFunctionName(_ctx.stringValue("GetManagedRuleResponse.ManagedRule.FunctionName"));
managedRule.setConfigRuleName(_ctx.stringValue("GetManagedRuleResponse.ManagedRule.ConfigRuleName"));
managedRule.setHelpDoc(_ctx.stringValue("GetManagedRuleResponse.ManagedRule.HelpDoc"));
managedRule.setHelpUrls(_ctx.stringValue("GetManagedRuleResponse.ManagedRule.HelpUrls"));
managedRule.setServiceName(_ctx.stringValue("GetManagedRuleResponse.ManagedRule.ServiceName"));
managedRule.setCreateTimestamp(_ctx.longValue("GetManagedRuleResponse.ManagedRule.CreateTimestamp"));
managedRule.setUseCases(_ctx.stringValue("GetManagedRuleResponse.ManagedRule.UseCases"));
List<String> labels = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("GetManagedRuleResponse.ManagedRule.Labels.Length"); i++) {
labels.add(_ctx.stringValue("GetManagedRuleResponse.ManagedRule.Labels["+ i +"]"));
}
managedRule.setLabels(labels);
List<Map<Object, Object>> sourceConditions = _ctx.listMapValue("GetManagedRuleResponse.ManagedRule.SourceConditions");
managedRule.setSourceConditions(sourceConditions);
Scope scope = new Scope();
List<String> complianceResourceTypes = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("GetManagedRuleResponse.ManagedRule.Scope.ComplianceResourceTypes.Length"); i++) {
complianceResourceTypes.add(_ctx.stringValue("GetManagedRuleResponse.ManagedRule.Scope.ComplianceResourceTypes["+ i +"]"));
}
scope.setComplianceResourceTypes(complianceResourceTypes);
managedRule.setScope(scope);
List<SourceDetailsItem> sourceDetails = new ArrayList<SourceDetailsItem>();
for (int i = 0; i < _ctx.lengthValue("GetManagedRuleResponse.ManagedRule.SourceDetails.Length"); i++) {
SourceDetailsItem sourceDetailsItem = new SourceDetailsItem();
sourceDetailsItem.setMessageType(_ctx.stringValue("GetManagedRuleResponse.ManagedRule.SourceDetails["+ i +"].MessageType"));
sourceDetailsItem.setEventSource(_ctx.stringValue("GetManagedRuleResponse.ManagedRule.SourceDetails["+ i +"].EventSource"));
sourceDetailsItem.setMaximumExecutionFrequency(_ctx.stringValue("GetManagedRuleResponse.ManagedRule.SourceDetails["+ i +"].MaximumExecutionFrequency"));
sourceDetails.add(sourceDetailsItem);
}
managedRule.setSourceDetails(sourceDetails);
getManagedRuleResponse.setManagedRule(managedRule);
return getManagedRuleResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/GetRemediationTemplateResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.GetRemediationTemplateResponse;
import com.aliyuncs.config.model.v20200907.GetRemediationTemplateResponse.RemediationTemplate;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetRemediationTemplateResponseUnmarshaller {
public static GetRemediationTemplateResponse unmarshall(GetRemediationTemplateResponse getRemediationTemplateResponse, UnmarshallerContext _ctx) {
getRemediationTemplateResponse.setRequestId(_ctx.stringValue("GetRemediationTemplateResponse.RequestId"));
List<RemediationTemplate> remediationTemplates = new ArrayList<RemediationTemplate>();
for (int i = 0; i < _ctx.lengthValue("GetRemediationTemplateResponse.RemediationTemplates.Length"); i++) {
RemediationTemplate remediationTemplate = new RemediationTemplate();
remediationTemplate.setCompulsoryParameters(_ctx.stringValue("GetRemediationTemplateResponse.RemediationTemplates["+ i +"].CompulsoryParameters"));
remediationTemplate.setRemediationType(_ctx.stringValue("GetRemediationTemplateResponse.RemediationTemplates["+ i +"].RemediationType"));
remediationTemplate.setTemplateIdentifier(_ctx.stringValue("GetRemediationTemplateResponse.RemediationTemplates["+ i +"].TemplateIdentifier"));
remediationTemplate.setTemplateName(_ctx.stringValue("GetRemediationTemplateResponse.RemediationTemplates["+ i +"].TemplateName"));
remediationTemplate.setTemplateDefinition(_ctx.stringValue("GetRemediationTemplateResponse.RemediationTemplates["+ i +"].TemplateDefinition"));
remediationTemplate.setManagedRuleIdentifier(_ctx.stringValue("GetRemediationTemplateResponse.RemediationTemplates["+ i +"].ManagedRuleIdentifier"));
remediationTemplate.setTemplateDescription(_ctx.stringValue("GetRemediationTemplateResponse.RemediationTemplates["+ i +"].TemplateDescription"));
remediationTemplates.add(remediationTemplate);
}
getRemediationTemplateResponse.setRemediationTemplates(remediationTemplates);
return getRemediationTemplateResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/GetResourceComplianceByConfigRuleResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.GetResourceComplianceByConfigRuleResponse;
import com.aliyuncs.config.model.v20200907.GetResourceComplianceByConfigRuleResponse.ComplianceResult;
import com.aliyuncs.config.model.v20200907.GetResourceComplianceByConfigRuleResponse.ComplianceResult.CompliancesItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetResourceComplianceByConfigRuleResponseUnmarshaller {
public static GetResourceComplianceByConfigRuleResponse unmarshall(GetResourceComplianceByConfigRuleResponse getResourceComplianceByConfigRuleResponse, UnmarshallerContext _ctx) {
getResourceComplianceByConfigRuleResponse.setRequestId(_ctx.stringValue("GetResourceComplianceByConfigRuleResponse.RequestId"));
ComplianceResult complianceResult = new ComplianceResult();
complianceResult.setTotalCount(_ctx.longValue("GetResourceComplianceByConfigRuleResponse.ComplianceResult.TotalCount"));
List<CompliancesItem> compliances = new ArrayList<CompliancesItem>();
for (int i = 0; i < _ctx.lengthValue("GetResourceComplianceByConfigRuleResponse.ComplianceResult.Compliances.Length"); i++) {
CompliancesItem compliancesItem = new CompliancesItem();
compliancesItem.setComplianceType(_ctx.stringValue("GetResourceComplianceByConfigRuleResponse.ComplianceResult.Compliances["+ i +"].ComplianceType"));
compliancesItem.setCount(_ctx.integerValue("GetResourceComplianceByConfigRuleResponse.ComplianceResult.Compliances["+ i +"].Count"));
compliances.add(compliancesItem);
}
complianceResult.setCompliances(compliances);
getResourceComplianceByConfigRuleResponse.setComplianceResult(complianceResult);
return getResourceComplianceByConfigRuleResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/GetResourceComplianceByPackResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.GetResourceComplianceByPackResponse;
import com.aliyuncs.config.model.v20200907.GetResourceComplianceByPackResponse.ResourceComplianceResult;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetResourceComplianceByPackResponseUnmarshaller {
public static GetResourceComplianceByPackResponse unmarshall(GetResourceComplianceByPackResponse getResourceComplianceByPackResponse, UnmarshallerContext _ctx) {
getResourceComplianceByPackResponse.setRequestId(_ctx.stringValue("GetResourceComplianceByPackResponse.RequestId"));
ResourceComplianceResult resourceComplianceResult = new ResourceComplianceResult();
resourceComplianceResult.setCompliancePackId(_ctx.stringValue("GetResourceComplianceByPackResponse.ResourceComplianceResult.CompliancePackId"));
resourceComplianceResult.setNonCompliantCount(_ctx.integerValue("GetResourceComplianceByPackResponse.ResourceComplianceResult.NonCompliantCount"));
resourceComplianceResult.setTotalCount(_ctx.integerValue("GetResourceComplianceByPackResponse.ResourceComplianceResult.TotalCount"));
getResourceComplianceByPackResponse.setResourceComplianceResult(resourceComplianceResult);
return getResourceComplianceByPackResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/GetResourceComplianceGroupByRegionResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.GetResourceComplianceGroupByRegionResponse;
import com.aliyuncs.config.model.v20200907.GetResourceComplianceGroupByRegionResponse.ComplianceResult;
import com.aliyuncs.config.model.v20200907.GetResourceComplianceGroupByRegionResponse.ComplianceResult.ComplianceResultListItem;
import com.aliyuncs.config.model.v20200907.GetResourceComplianceGroupByRegionResponse.ComplianceResult.ComplianceResultListItem.CompliancesItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetResourceComplianceGroupByRegionResponseUnmarshaller {
public static GetResourceComplianceGroupByRegionResponse unmarshall(GetResourceComplianceGroupByRegionResponse getResourceComplianceGroupByRegionResponse, UnmarshallerContext _ctx) {
getResourceComplianceGroupByRegionResponse.setRequestId(_ctx.stringValue("GetResourceComplianceGroupByRegionResponse.RequestId"));
ComplianceResult complianceResult = new ComplianceResult();
List<ComplianceResultListItem> complianceResultList = new ArrayList<ComplianceResultListItem>();
for (int i = 0; i < _ctx.lengthValue("GetResourceComplianceGroupByRegionResponse.ComplianceResult.ComplianceResultList.Length"); i++) {
ComplianceResultListItem complianceResultListItem = new ComplianceResultListItem();
complianceResultListItem.setRegionId(_ctx.stringValue("GetResourceComplianceGroupByRegionResponse.ComplianceResult.ComplianceResultList["+ i +"].RegionId"));
List<CompliancesItem> compliances = new ArrayList<CompliancesItem>();
for (int j = 0; j < _ctx.lengthValue("GetResourceComplianceGroupByRegionResponse.ComplianceResult.ComplianceResultList["+ i +"].Compliances.Length"); j++) {
CompliancesItem compliancesItem = new CompliancesItem();
compliancesItem.setComplianceType(_ctx.stringValue("GetResourceComplianceGroupByRegionResponse.ComplianceResult.ComplianceResultList["+ i +"].Compliances["+ j +"].ComplianceType"));
compliancesItem.setCount(_ctx.longValue("GetResourceComplianceGroupByRegionResponse.ComplianceResult.ComplianceResultList["+ i +"].Compliances["+ j +"].Count"));
compliances.add(compliancesItem);
}
complianceResultListItem.setCompliances(compliances);
complianceResultList.add(complianceResultListItem);
}
complianceResult.setComplianceResultList(complianceResultList);
getResourceComplianceGroupByRegionResponse.setComplianceResult(complianceResult);
return getResourceComplianceGroupByRegionResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/GetResourceComplianceGroupByResourceTypeResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.GetResourceComplianceGroupByResourceTypeResponse;
import com.aliyuncs.config.model.v20200907.GetResourceComplianceGroupByResourceTypeResponse.ComplianceResult;
import com.aliyuncs.config.model.v20200907.GetResourceComplianceGroupByResourceTypeResponse.ComplianceResult.ComplianceResultListItem;
import com.aliyuncs.config.model.v20200907.GetResourceComplianceGroupByResourceTypeResponse.ComplianceResult.ComplianceResultListItem.CompliancesItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetResourceComplianceGroupByResourceTypeResponseUnmarshaller {
public static GetResourceComplianceGroupByResourceTypeResponse unmarshall(GetResourceComplianceGroupByResourceTypeResponse getResourceComplianceGroupByResourceTypeResponse, UnmarshallerContext _ctx) {
getResourceComplianceGroupByResourceTypeResponse.setRequestId(_ctx.stringValue("GetResourceComplianceGroupByResourceTypeResponse.RequestId"));
ComplianceResult complianceResult = new ComplianceResult();
List<ComplianceResultListItem> complianceResultList = new ArrayList<ComplianceResultListItem>();
for (int i = 0; i < _ctx.lengthValue("GetResourceComplianceGroupByResourceTypeResponse.ComplianceResult.ComplianceResultList.Length"); i++) {
ComplianceResultListItem complianceResultListItem = new ComplianceResultListItem();
complianceResultListItem.setResourceType(_ctx.stringValue("GetResourceComplianceGroupByResourceTypeResponse.ComplianceResult.ComplianceResultList["+ i +"].ResourceType"));
List<CompliancesItem> compliances = new ArrayList<CompliancesItem>();
for (int j = 0; j < _ctx.lengthValue("GetResourceComplianceGroupByResourceTypeResponse.ComplianceResult.ComplianceResultList["+ i +"].Compliances.Length"); j++) {
CompliancesItem compliancesItem = new CompliancesItem();
compliancesItem.setComplianceType(_ctx.stringValue("GetResourceComplianceGroupByResourceTypeResponse.ComplianceResult.ComplianceResultList["+ i +"].Compliances["+ j +"].ComplianceType"));
compliancesItem.setCount(_ctx.longValue("GetResourceComplianceGroupByResourceTypeResponse.ComplianceResult.ComplianceResultList["+ i +"].Compliances["+ j +"].Count"));
compliances.add(compliancesItem);
}
complianceResultListItem.setCompliances(compliances);
complianceResultList.add(complianceResultListItem);
}
complianceResult.setComplianceResultList(complianceResultList);
getResourceComplianceGroupByResourceTypeResponse.setComplianceResult(complianceResult);
return getResourceComplianceGroupByResourceTypeResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/GetResourceComplianceTimelineResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.GetResourceComplianceTimelineResponse;
import com.aliyuncs.config.model.v20200907.GetResourceComplianceTimelineResponse.ResourceComplianceTimeline;
import com.aliyuncs.config.model.v20200907.GetResourceComplianceTimelineResponse.ResourceComplianceTimeline.ComplianceListItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetResourceComplianceTimelineResponseUnmarshaller {
public static GetResourceComplianceTimelineResponse unmarshall(GetResourceComplianceTimelineResponse getResourceComplianceTimelineResponse, UnmarshallerContext _ctx) {
getResourceComplianceTimelineResponse.setRequestId(_ctx.stringValue("GetResourceComplianceTimelineResponse.RequestId"));
ResourceComplianceTimeline resourceComplianceTimeline = new ResourceComplianceTimeline();
resourceComplianceTimeline.setNextToken(_ctx.stringValue("GetResourceComplianceTimelineResponse.ResourceComplianceTimeline.NextToken"));
resourceComplianceTimeline.setMaxResults(_ctx.integerValue("GetResourceComplianceTimelineResponse.ResourceComplianceTimeline.MaxResults"));
List<ComplianceListItem> complianceList = new ArrayList<ComplianceListItem>();
for (int i = 0; i < _ctx.lengthValue("GetResourceComplianceTimelineResponse.ResourceComplianceTimeline.ComplianceList.Length"); i++) {
ComplianceListItem complianceListItem = new ComplianceListItem();
complianceListItem.setTags(_ctx.stringValue("GetResourceComplianceTimelineResponse.ResourceComplianceTimeline.ComplianceList["+ i +"].Tags"));
complianceListItem.setAccountId(_ctx.stringValue("GetResourceComplianceTimelineResponse.ResourceComplianceTimeline.ComplianceList["+ i +"].AccountId"));
complianceListItem.setAvailabilityZone(_ctx.stringValue("GetResourceComplianceTimelineResponse.ResourceComplianceTimeline.ComplianceList["+ i +"].AvailabilityZone"));
complianceListItem.setResourceType(_ctx.stringValue("GetResourceComplianceTimelineResponse.ResourceComplianceTimeline.ComplianceList["+ i +"].ResourceType"));
complianceListItem.setResourceCreateTime(_ctx.longValue("GetResourceComplianceTimelineResponse.ResourceComplianceTimeline.ComplianceList["+ i +"].ResourceCreateTime"));
complianceListItem.setRegion(_ctx.stringValue("GetResourceComplianceTimelineResponse.ResourceComplianceTimeline.ComplianceList["+ i +"].Region"));
complianceListItem.setConfiguration(_ctx.stringValue("GetResourceComplianceTimelineResponse.ResourceComplianceTimeline.ComplianceList["+ i +"].Configuration"));
complianceListItem.setCaptureTime(_ctx.longValue("GetResourceComplianceTimelineResponse.ResourceComplianceTimeline.ComplianceList["+ i +"].CaptureTime"));
complianceListItem.setConfigurationDiff(_ctx.stringValue("GetResourceComplianceTimelineResponse.ResourceComplianceTimeline.ComplianceList["+ i +"].ConfigurationDiff"));
complianceListItem.setResourceId(_ctx.stringValue("GetResourceComplianceTimelineResponse.ResourceComplianceTimeline.ComplianceList["+ i +"].ResourceId"));
complianceListItem.setResourceName(_ctx.stringValue("GetResourceComplianceTimelineResponse.ResourceComplianceTimeline.ComplianceList["+ i +"].ResourceName"));
complianceListItem.setResourceStatus(_ctx.stringValue("GetResourceComplianceTimelineResponse.ResourceComplianceTimeline.ComplianceList["+ i +"].ResourceStatus"));
complianceList.add(complianceListItem);
}
resourceComplianceTimeline.setComplianceList(complianceList);
getResourceComplianceTimelineResponse.setResourceComplianceTimeline(resourceComplianceTimeline);
return getResourceComplianceTimelineResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/GetResourceConfigurationTimelineResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.GetResourceConfigurationTimelineResponse;
import com.aliyuncs.config.model.v20200907.GetResourceConfigurationTimelineResponse.ResourceConfigurationTimeline;
import com.aliyuncs.config.model.v20200907.GetResourceConfigurationTimelineResponse.ResourceConfigurationTimeline.ConfigurationListItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetResourceConfigurationTimelineResponseUnmarshaller {
public static GetResourceConfigurationTimelineResponse unmarshall(GetResourceConfigurationTimelineResponse getResourceConfigurationTimelineResponse, UnmarshallerContext _ctx) {
getResourceConfigurationTimelineResponse.setRequestId(_ctx.stringValue("GetResourceConfigurationTimelineResponse.RequestId"));
ResourceConfigurationTimeline resourceConfigurationTimeline = new ResourceConfigurationTimeline();
resourceConfigurationTimeline.setNextToken(_ctx.stringValue("GetResourceConfigurationTimelineResponse.ResourceConfigurationTimeline.NextToken"));
resourceConfigurationTimeline.setMaxResults(_ctx.integerValue("GetResourceConfigurationTimelineResponse.ResourceConfigurationTimeline.MaxResults"));
List<ConfigurationListItem> configurationList = new ArrayList<ConfigurationListItem>();
for (int i = 0; i < _ctx.lengthValue("GetResourceConfigurationTimelineResponse.ResourceConfigurationTimeline.ConfigurationList.Length"); i++) {
ConfigurationListItem configurationListItem = new ConfigurationListItem();
configurationListItem.setTags(_ctx.stringValue("GetResourceConfigurationTimelineResponse.ResourceConfigurationTimeline.ConfigurationList["+ i +"].Tags"));
configurationListItem.setAccountId(_ctx.longValue("GetResourceConfigurationTimelineResponse.ResourceConfigurationTimeline.ConfigurationList["+ i +"].AccountId"));
configurationListItem.setResourceEventType(_ctx.stringValue("GetResourceConfigurationTimelineResponse.ResourceConfigurationTimeline.ConfigurationList["+ i +"].ResourceEventType"));
configurationListItem.setAvailabilityZone(_ctx.stringValue("GetResourceConfigurationTimelineResponse.ResourceConfigurationTimeline.ConfigurationList["+ i +"].AvailabilityZone"));
configurationListItem.setResourceType(_ctx.stringValue("GetResourceConfigurationTimelineResponse.ResourceConfigurationTimeline.ConfigurationList["+ i +"].ResourceType"));
configurationListItem.setResourceCreateTime(_ctx.stringValue("GetResourceConfigurationTimelineResponse.ResourceConfigurationTimeline.ConfigurationList["+ i +"].ResourceCreateTime"));
configurationListItem.setRegion(_ctx.stringValue("GetResourceConfigurationTimelineResponse.ResourceConfigurationTimeline.ConfigurationList["+ i +"].Region"));
configurationListItem.setCaptureTime(_ctx.stringValue("GetResourceConfigurationTimelineResponse.ResourceConfigurationTimeline.ConfigurationList["+ i +"].CaptureTime"));
configurationListItem.setConfigurationDiff(_ctx.stringValue("GetResourceConfigurationTimelineResponse.ResourceConfigurationTimeline.ConfigurationList["+ i +"].ConfigurationDiff"));
configurationListItem.setResourceId(_ctx.stringValue("GetResourceConfigurationTimelineResponse.ResourceConfigurationTimeline.ConfigurationList["+ i +"].ResourceId"));
configurationListItem.setResourceName(_ctx.stringValue("GetResourceConfigurationTimelineResponse.ResourceConfigurationTimeline.ConfigurationList["+ i +"].ResourceName"));
configurationListItem.setRelationship(_ctx.stringValue("GetResourceConfigurationTimelineResponse.ResourceConfigurationTimeline.ConfigurationList["+ i +"].Relationship"));
configurationListItem.setRelationshipDiff(_ctx.stringValue("GetResourceConfigurationTimelineResponse.ResourceConfigurationTimeline.ConfigurationList["+ i +"].RelationshipDiff"));
configurationList.add(configurationListItem);
}
resourceConfigurationTimeline.setConfigurationList(configurationList);
getResourceConfigurationTimelineResponse.setResourceConfigurationTimeline(resourceConfigurationTimeline);
return getResourceConfigurationTimelineResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/GetResourceInventoryResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.GetResourceInventoryResponse;
import com.aliyuncs.config.model.v20200907.GetResourceInventoryResponse.ResourceInventory;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetResourceInventoryResponseUnmarshaller {
public static GetResourceInventoryResponse unmarshall(GetResourceInventoryResponse getResourceInventoryResponse, UnmarshallerContext _ctx) {
getResourceInventoryResponse.setRequestId(_ctx.stringValue("GetResourceInventoryResponse.RequestId"));
ResourceInventory resourceInventory = new ResourceInventory();
resourceInventory.setDownloadUrl(_ctx.stringValue("GetResourceInventoryResponse.ResourceInventory.DownloadUrl"));
resourceInventory.setStatus(_ctx.stringValue("GetResourceInventoryResponse.ResourceInventory.Status"));
resourceInventory.setAccountId(_ctx.longValue("GetResourceInventoryResponse.ResourceInventory.AccountId"));
resourceInventory.setResourceInventoryGenerateTime(_ctx.longValue("GetResourceInventoryResponse.ResourceInventory.ResourceInventoryGenerateTime"));
getResourceInventoryResponse.setResourceInventory(resourceInventory);
return getResourceInventoryResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/GetSupportedResourceRelationConfigResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.GetSupportedResourceRelationConfigResponse;
import com.aliyuncs.config.model.v20200907.GetSupportedResourceRelationConfigResponse.ResourceRelationConfigListItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetSupportedResourceRelationConfigResponseUnmarshaller {
public static GetSupportedResourceRelationConfigResponse unmarshall(GetSupportedResourceRelationConfigResponse getSupportedResourceRelationConfigResponse, UnmarshallerContext _ctx) {
getSupportedResourceRelationConfigResponse.setRequestId(_ctx.stringValue("GetSupportedResourceRelationConfigResponse.RequestId"));
List<ResourceRelationConfigListItem> resourceRelationConfigList = new ArrayList<ResourceRelationConfigListItem>();
for (int i = 0; i < _ctx.lengthValue("GetSupportedResourceRelationConfigResponse.ResourceRelationConfigList.Length"); i++) {
ResourceRelationConfigListItem resourceRelationConfigListItem = new ResourceRelationConfigListItem();
resourceRelationConfigListItem.setTargetResourceType(_ctx.stringValue("GetSupportedResourceRelationConfigResponse.ResourceRelationConfigList["+ i +"].TargetResourceType"));
resourceRelationConfigListItem.setRelationType(_ctx.stringValue("GetSupportedResourceRelationConfigResponse.ResourceRelationConfigList["+ i +"].RelationType"));
resourceRelationConfigList.add(resourceRelationConfigListItem);
}
getSupportedResourceRelationConfigResponse.setResourceRelationConfigList(resourceRelationConfigList);
return getSupportedResourceRelationConfigResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/IgnoreAggregateEvaluationResultsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.IgnoreAggregateEvaluationResultsResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class IgnoreAggregateEvaluationResultsResponseUnmarshaller {
public static IgnoreAggregateEvaluationResultsResponse unmarshall(IgnoreAggregateEvaluationResultsResponse ignoreAggregateEvaluationResultsResponse, UnmarshallerContext _ctx) {
ignoreAggregateEvaluationResultsResponse.setRequestId(_ctx.stringValue("IgnoreAggregateEvaluationResultsResponse.RequestId"));
return ignoreAggregateEvaluationResultsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/IgnoreEvaluationResultsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.IgnoreEvaluationResultsResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class IgnoreEvaluationResultsResponseUnmarshaller {
public static IgnoreEvaluationResultsResponse unmarshall(IgnoreEvaluationResultsResponse ignoreEvaluationResultsResponse, UnmarshallerContext _ctx) {
ignoreEvaluationResultsResponse.setRequestId(_ctx.stringValue("IgnoreEvaluationResultsResponse.RequestId"));
return ignoreEvaluationResultsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListAggregateCompliancePacksResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListAggregateCompliancePacksResponse;
import com.aliyuncs.config.model.v20200907.ListAggregateCompliancePacksResponse.CompliancePacksResult;
import com.aliyuncs.config.model.v20200907.ListAggregateCompliancePacksResponse.CompliancePacksResult.CompliancePacksItem;
import com.aliyuncs.config.model.v20200907.ListAggregateCompliancePacksResponse.CompliancePacksResult.CompliancePacksItem.TagsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListAggregateCompliancePacksResponseUnmarshaller {
public static ListAggregateCompliancePacksResponse unmarshall(ListAggregateCompliancePacksResponse listAggregateCompliancePacksResponse, UnmarshallerContext _ctx) {
listAggregateCompliancePacksResponse.setRequestId(_ctx.stringValue("ListAggregateCompliancePacksResponse.RequestId"));
CompliancePacksResult compliancePacksResult = new CompliancePacksResult();
compliancePacksResult.setPageSize(_ctx.integerValue("ListAggregateCompliancePacksResponse.CompliancePacksResult.PageSize"));
compliancePacksResult.setPageNumber(_ctx.integerValue("ListAggregateCompliancePacksResponse.CompliancePacksResult.PageNumber"));
compliancePacksResult.setTotalCount(_ctx.longValue("ListAggregateCompliancePacksResponse.CompliancePacksResult.TotalCount"));
List<CompliancePacksItem> compliancePacks = new ArrayList<CompliancePacksItem>();
for (int i = 0; i < _ctx.lengthValue("ListAggregateCompliancePacksResponse.CompliancePacksResult.CompliancePacks.Length"); i++) {
CompliancePacksItem compliancePacksItem = new CompliancePacksItem();
compliancePacksItem.setStatus(_ctx.stringValue("ListAggregateCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].Status"));
compliancePacksItem.setRiskLevel(_ctx.integerValue("ListAggregateCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].RiskLevel"));
compliancePacksItem.setCompliancePackId(_ctx.stringValue("ListAggregateCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].CompliancePackId"));
compliancePacksItem.setDescription(_ctx.stringValue("ListAggregateCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].Description"));
compliancePacksItem.setCompliancePackName(_ctx.stringValue("ListAggregateCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].CompliancePackName"));
compliancePacksItem.setAccountId(_ctx.longValue("ListAggregateCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].AccountId"));
compliancePacksItem.setAggregatorId(_ctx.stringValue("ListAggregateCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].AggregatorId"));
compliancePacksItem.setCompliancePackTemplateId(_ctx.stringValue("ListAggregateCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].CompliancePackTemplateId"));
compliancePacksItem.setCreateTimestamp(_ctx.longValue("ListAggregateCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].CreateTimestamp"));
List<TagsItem> tags = new ArrayList<TagsItem>();
for (int j = 0; j < _ctx.lengthValue("ListAggregateCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].Tags.Length"); j++) {
TagsItem tagsItem = new TagsItem();
tagsItem.setTagKey(_ctx.stringValue("ListAggregateCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].Tags["+ j +"].TagKey"));
tagsItem.setTagValue(_ctx.stringValue("ListAggregateCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].Tags["+ j +"].TagValue"));
tags.add(tagsItem);
}
compliancePacksItem.setTags(tags);
compliancePacks.add(compliancePacksItem);
}
compliancePacksResult.setCompliancePacks(compliancePacks);
listAggregateCompliancePacksResponse.setCompliancePacksResult(compliancePacksResult);
return listAggregateCompliancePacksResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListAggregateConfigDeliveryChannelsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListAggregateConfigDeliveryChannelsResponse;
import com.aliyuncs.config.model.v20200907.ListAggregateConfigDeliveryChannelsResponse.DeliveryChannel;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListAggregateConfigDeliveryChannelsResponseUnmarshaller {
public static ListAggregateConfigDeliveryChannelsResponse unmarshall(ListAggregateConfigDeliveryChannelsResponse listAggregateConfigDeliveryChannelsResponse, UnmarshallerContext _ctx) {
listAggregateConfigDeliveryChannelsResponse.setRequestId(_ctx.stringValue("ListAggregateConfigDeliveryChannelsResponse.RequestId"));
List<DeliveryChannel> deliveryChannels = new ArrayList<DeliveryChannel>();
for (int i = 0; i < _ctx.lengthValue("ListAggregateConfigDeliveryChannelsResponse.DeliveryChannels.Length"); i++) {
DeliveryChannel deliveryChannel = new DeliveryChannel();
deliveryChannel.setStatus(_ctx.integerValue("ListAggregateConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].Status"));
deliveryChannel.setDeliveryChannelName(_ctx.stringValue("ListAggregateConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].DeliveryChannelName"));
deliveryChannel.setDeliveryChannelId(_ctx.stringValue("ListAggregateConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].DeliveryChannelId"));
deliveryChannel.setDeliveryChannelType(_ctx.stringValue("ListAggregateConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].DeliveryChannelType"));
deliveryChannel.setDeliveryChannelTargetArn(_ctx.stringValue("ListAggregateConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].DeliveryChannelTargetArn"));
deliveryChannel.setDeliveryChannelAssumeRoleArn(_ctx.stringValue("ListAggregateConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].DeliveryChannelAssumeRoleArn"));
deliveryChannel.setDeliveryChannelCondition(_ctx.stringValue("ListAggregateConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].DeliveryChannelCondition"));
deliveryChannel.setOversizedDataOSSTargetArn(_ctx.stringValue("ListAggregateConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].OversizedDataOSSTargetArn"));
deliveryChannel.setDescription(_ctx.stringValue("ListAggregateConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].Description"));
deliveryChannel.setCompliantSnapshot(_ctx.booleanValue("ListAggregateConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].CompliantSnapshot"));
deliveryChannel.setConfigurationSnapshot(_ctx.booleanValue("ListAggregateConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].ConfigurationSnapshot"));
deliveryChannel.setConfigurationItemChangeNotification(_ctx.booleanValue("ListAggregateConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].ConfigurationItemChangeNotification"));
deliveryChannel.setNonCompliantNotification(_ctx.booleanValue("ListAggregateConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].NonCompliantNotification"));
deliveryChannel.setAggregatorId(_ctx.stringValue("ListAggregateConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].AggregatorId"));
deliveryChannel.setAccountId(_ctx.longValue("ListAggregateConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].AccountId"));
deliveryChannel.setDeliverySnapshotTime(_ctx.stringValue("ListAggregateConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].DeliverySnapshotTime"));
deliveryChannels.add(deliveryChannel);
}
listAggregateConfigDeliveryChannelsResponse.setDeliveryChannels(deliveryChannels);
return listAggregateConfigDeliveryChannelsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListAggregateConfigRuleEvaluationResultsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListAggregateConfigRuleEvaluationResultsResponse;
import com.aliyuncs.config.model.v20200907.ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults;
import com.aliyuncs.config.model.v20200907.ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResult;
import com.aliyuncs.config.model.v20200907.ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResult.EvaluationResultIdentifier;
import com.aliyuncs.config.model.v20200907.ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResult.EvaluationResultIdentifier.EvaluationResultQualifier;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListAggregateConfigRuleEvaluationResultsResponseUnmarshaller {
public static ListAggregateConfigRuleEvaluationResultsResponse unmarshall(ListAggregateConfigRuleEvaluationResultsResponse listAggregateConfigRuleEvaluationResultsResponse, UnmarshallerContext _ctx) {
listAggregateConfigRuleEvaluationResultsResponse.setRequestId(_ctx.stringValue("ListAggregateConfigRuleEvaluationResultsResponse.RequestId"));
EvaluationResults evaluationResults = new EvaluationResults();
evaluationResults.setNextToken(_ctx.stringValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.NextToken"));
evaluationResults.setMaxResults(_ctx.integerValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.MaxResults"));
List<EvaluationResult> evaluationResultList = new ArrayList<EvaluationResult>();
for (int i = 0; i < _ctx.lengthValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList.Length"); i++) {
EvaluationResult evaluationResult = new EvaluationResult();
evaluationResult.setRiskLevel(_ctx.integerValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].RiskLevel"));
evaluationResult.setComplianceType(_ctx.stringValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].ComplianceType"));
evaluationResult.setResultRecordedTimestamp(_ctx.longValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].ResultRecordedTimestamp"));
evaluationResult.setAnnotation(_ctx.stringValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].Annotation"));
evaluationResult.setConfigRuleInvokedTimestamp(_ctx.longValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].ConfigRuleInvokedTimestamp"));
evaluationResult.setInvokingEventMessageType(_ctx.stringValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].InvokingEventMessageType"));
evaluationResult.setRemediationEnabled(_ctx.booleanValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].RemediationEnabled"));
evaluationResult.setEvaluationId(_ctx.stringValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationId"));
evaluationResult.setLastNonCompliantRecordTimestamp(_ctx.longValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].LastNonCompliantRecordTimestamp"));
EvaluationResultIdentifier evaluationResultIdentifier = new EvaluationResultIdentifier();
evaluationResultIdentifier.setOrderingTimestamp(_ctx.longValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.OrderingTimestamp"));
EvaluationResultQualifier evaluationResultQualifier = new EvaluationResultQualifier();
evaluationResultQualifier.setResourceOwnerId(_ctx.longValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ResourceOwnerId"));
evaluationResultQualifier.setConfigRuleArn(_ctx.stringValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ConfigRuleArn"));
evaluationResultQualifier.setResourceType(_ctx.stringValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ResourceType"));
evaluationResultQualifier.setConfigRuleName(_ctx.stringValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ConfigRuleName"));
evaluationResultQualifier.setResourceGroupId(_ctx.stringValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ResourceGroupId"));
evaluationResultQualifier.setConfigRuleId(_ctx.stringValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ConfigRuleId"));
evaluationResultQualifier.setResourceName(_ctx.stringValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ResourceName"));
evaluationResultQualifier.setRegionId(_ctx.stringValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.RegionId"));
evaluationResultQualifier.setCompliancePackId(_ctx.stringValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.CompliancePackId"));
evaluationResultQualifier.setIgnoreDate(_ctx.stringValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.IgnoreDate"));
evaluationResultQualifier.setResourceId(_ctx.stringValue("ListAggregateConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ResourceId"));
evaluationResultIdentifier.setEvaluationResultQualifier(evaluationResultQualifier);
evaluationResult.setEvaluationResultIdentifier(evaluationResultIdentifier);
evaluationResultList.add(evaluationResult);
}
evaluationResults.setEvaluationResultList(evaluationResultList);
listAggregateConfigRuleEvaluationResultsResponse.setEvaluationResults(evaluationResults);
return listAggregateConfigRuleEvaluationResultsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListAggregateConfigRuleEvaluationStatisticsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListAggregateConfigRuleEvaluationStatisticsResponse;
import com.aliyuncs.config.model.v20200907.ListAggregateConfigRuleEvaluationStatisticsResponse.EvaluationResultsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListAggregateConfigRuleEvaluationStatisticsResponseUnmarshaller {
public static ListAggregateConfigRuleEvaluationStatisticsResponse unmarshall(ListAggregateConfigRuleEvaluationStatisticsResponse listAggregateConfigRuleEvaluationStatisticsResponse, UnmarshallerContext _ctx) {
listAggregateConfigRuleEvaluationStatisticsResponse.setRequestId(_ctx.stringValue("ListAggregateConfigRuleEvaluationStatisticsResponse.RequestId"));
List<EvaluationResultsItem> evaluationResults = new ArrayList<EvaluationResultsItem>();
for (int i = 0; i < _ctx.lengthValue("ListAggregateConfigRuleEvaluationStatisticsResponse.EvaluationResults.Length"); i++) {
EvaluationResultsItem evaluationResultsItem = new EvaluationResultsItem();
evaluationResultsItem.setAccountId(_ctx.longValue("ListAggregateConfigRuleEvaluationStatisticsResponse.EvaluationResults["+ i +"].AccountId"));
evaluationResultsItem.setAggregatorId(_ctx.stringValue("ListAggregateConfigRuleEvaluationStatisticsResponse.EvaluationResults["+ i +"].AggregatorId"));
evaluationResultsItem.setAggregatorName(_ctx.stringValue("ListAggregateConfigRuleEvaluationStatisticsResponse.EvaluationResults["+ i +"].AggregatorName"));
evaluationResultsItem.setNonCompliantResourceCnt(_ctx.integerValue("ListAggregateConfigRuleEvaluationStatisticsResponse.EvaluationResults["+ i +"].NonCompliantResourceCnt"));
evaluationResultsItem.setTotalResourceCnt(_ctx.integerValue("ListAggregateConfigRuleEvaluationStatisticsResponse.EvaluationResults["+ i +"].TotalResourceCnt"));
evaluationResultsItem.setNonCompliantRuleCnt(_ctx.integerValue("ListAggregateConfigRuleEvaluationStatisticsResponse.EvaluationResults["+ i +"].NonCompliantRuleCnt"));
evaluationResultsItem.setTotalRuleCnt(_ctx.integerValue("ListAggregateConfigRuleEvaluationStatisticsResponse.EvaluationResults["+ i +"].TotalRuleCnt"));
evaluationResultsItem.setGmtCreate(_ctx.longValue("ListAggregateConfigRuleEvaluationStatisticsResponse.EvaluationResults["+ i +"].GmtCreate"));
evaluationResultsItem.setNonCompliantRuleDetail(_ctx.stringValue("ListAggregateConfigRuleEvaluationStatisticsResponse.EvaluationResults["+ i +"].NonCompliantRuleDetail"));
evaluationResultsItem.setStatisticDate(_ctx.stringValue("ListAggregateConfigRuleEvaluationStatisticsResponse.EvaluationResults["+ i +"].StatisticDate"));
evaluationResults.add(evaluationResultsItem);
}
listAggregateConfigRuleEvaluationStatisticsResponse.setEvaluationResults(evaluationResults);
return listAggregateConfigRuleEvaluationStatisticsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListAggregateConfigRulesResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListAggregateConfigRulesResponse;
import com.aliyuncs.config.model.v20200907.ListAggregateConfigRulesResponse.ConfigRules;
import com.aliyuncs.config.model.v20200907.ListAggregateConfigRulesResponse.ConfigRules.ConfigRule;
import com.aliyuncs.config.model.v20200907.ListAggregateConfigRulesResponse.ConfigRules.ConfigRule.Compliance;
import com.aliyuncs.config.model.v20200907.ListAggregateConfigRulesResponse.ConfigRules.ConfigRule.CreateBy;
import com.aliyuncs.config.model.v20200907.ListAggregateConfigRulesResponse.ConfigRules.ConfigRule.Tag;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListAggregateConfigRulesResponseUnmarshaller {
public static ListAggregateConfigRulesResponse unmarshall(ListAggregateConfigRulesResponse listAggregateConfigRulesResponse, UnmarshallerContext _ctx) {
listAggregateConfigRulesResponse.setRequestId(_ctx.stringValue("ListAggregateConfigRulesResponse.RequestId"));
ConfigRules configRules = new ConfigRules();
configRules.setPageSize(_ctx.integerValue("ListAggregateConfigRulesResponse.ConfigRules.PageSize"));
configRules.setPageNumber(_ctx.integerValue("ListAggregateConfigRulesResponse.ConfigRules.PageNumber"));
configRules.setTotalCount(_ctx.longValue("ListAggregateConfigRulesResponse.ConfigRules.TotalCount"));
List<ConfigRule> configRuleList = new ArrayList<ConfigRule>();
for (int i = 0; i < _ctx.lengthValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList.Length"); i++) {
ConfigRule configRule = new ConfigRule();
configRule.setRiskLevel(_ctx.integerValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].RiskLevel"));
configRule.setSourceOwner(_ctx.stringValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].SourceOwner"));
configRule.setAccountId(_ctx.longValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].AccountId"));
configRule.setConfigRuleState(_ctx.stringValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].ConfigRuleState"));
configRule.setSourceIdentifier(_ctx.stringValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].SourceIdentifier"));
configRule.setConfigRuleArn(_ctx.stringValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].ConfigRuleArn"));
configRule.setDescription(_ctx.stringValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].Description"));
configRule.setAutomationType(_ctx.stringValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].AutomationType"));
configRule.setConfigRuleName(_ctx.stringValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].ConfigRuleName"));
configRule.setConfigRuleId(_ctx.stringValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].ConfigRuleId"));
configRule.setResourceTypesScope(_ctx.stringValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].ResourceTypesScope"));
configRule.setServiceChannel(_ctx.stringValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].ServiceChannel"));
Compliance compliance = new Compliance();
compliance.setComplianceType(_ctx.stringValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].Compliance.ComplianceType"));
compliance.setCount(_ctx.integerValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].Compliance.Count"));
configRule.setCompliance(compliance);
CreateBy createBy = new CreateBy();
createBy.setCompliancePackId(_ctx.stringValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].CreateBy.CompliancePackId"));
createBy.setAggregatorName(_ctx.stringValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].CreateBy.AggregatorName"));
createBy.setCompliancePackName(_ctx.stringValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].CreateBy.CompliancePackName"));
createBy.setCreatorName(_ctx.stringValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].CreateBy.CreatorName"));
createBy.setCreatorType(_ctx.stringValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].CreateBy.CreatorType"));
createBy.setCreatorId(_ctx.stringValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].CreateBy.CreatorId"));
createBy.setAggregatorId(_ctx.stringValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].CreateBy.AggregatorId"));
configRule.setCreateBy(createBy);
List<Tag> tags = new ArrayList<Tag>();
for (int j = 0; j < _ctx.lengthValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].Tags.Length"); j++) {
Tag tag = new Tag();
tag.setKey(_ctx.stringValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].Tags["+ j +"].Key"));
tag.setValue(_ctx.stringValue("ListAggregateConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].Tags["+ j +"].Value"));
tags.add(tag);
}
configRule.setTags(tags);
configRuleList.add(configRule);
}
configRules.setConfigRuleList(configRuleList);
listAggregateConfigRulesResponse.setConfigRules(configRules);
return listAggregateConfigRulesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListAggregateDiscoveredResourcesResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListAggregateDiscoveredResourcesResponse;
import com.aliyuncs.config.model.v20200907.ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles;
import com.aliyuncs.config.model.v20200907.ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfile;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListAggregateDiscoveredResourcesResponseUnmarshaller {
public static ListAggregateDiscoveredResourcesResponse unmarshall(ListAggregateDiscoveredResourcesResponse listAggregateDiscoveredResourcesResponse, UnmarshallerContext _ctx) {
listAggregateDiscoveredResourcesResponse.setRequestId(_ctx.stringValue("ListAggregateDiscoveredResourcesResponse.RequestId"));
DiscoveredResourceProfiles discoveredResourceProfiles = new DiscoveredResourceProfiles();
discoveredResourceProfiles.setMaxResults(_ctx.integerValue("ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.MaxResults"));
discoveredResourceProfiles.setNextToken(_ctx.stringValue("ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.NextToken"));
discoveredResourceProfiles.setTotalCount(_ctx.integerValue("ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.TotalCount"));
List<DiscoveredResourceProfile> discoveredResourceProfileList = new ArrayList<DiscoveredResourceProfile>();
for (int i = 0; i < _ctx.lengthValue("ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList.Length"); i++) {
DiscoveredResourceProfile discoveredResourceProfile = new DiscoveredResourceProfile();
discoveredResourceProfile.setAccountId(_ctx.longValue("ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].AccountId"));
discoveredResourceProfile.setAvailabilityZone(_ctx.stringValue("ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].AvailabilityZone"));
discoveredResourceProfile.setRegion(_ctx.stringValue("ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].Region"));
discoveredResourceProfile.setResourceCreationTime(_ctx.longValue("ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].ResourceCreationTime"));
discoveredResourceProfile.setResourceDeleted(_ctx.integerValue("ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].ResourceDeleted"));
discoveredResourceProfile.setResourceId(_ctx.stringValue("ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].ResourceId"));
discoveredResourceProfile.setResourceName(_ctx.stringValue("ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].ResourceName"));
discoveredResourceProfile.setResourceOwnerId(_ctx.longValue("ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].ResourceOwnerId"));
discoveredResourceProfile.setResourceStatus(_ctx.stringValue("ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].ResourceStatus"));
discoveredResourceProfile.setResourceType(_ctx.stringValue("ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].ResourceType"));
discoveredResourceProfile.setTags(_ctx.stringValue("ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].Tags"));
discoveredResourceProfile.setUpdateTime(_ctx.longValue("ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].UpdateTime"));
discoveredResourceProfile.setVersion(_ctx.longValue("ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].Version"));
discoveredResourceProfile.setVpcId(_ctx.stringValue("ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].VpcId"));
discoveredResourceProfile.setVSwitchId(_ctx.stringValue("ListAggregateDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].VSwitchId"));
discoveredResourceProfileList.add(discoveredResourceProfile);
}
discoveredResourceProfiles.setDiscoveredResourceProfileList(discoveredResourceProfileList);
listAggregateDiscoveredResourcesResponse.setDiscoveredResourceProfiles(discoveredResourceProfiles);
return listAggregateDiscoveredResourcesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListAggregateRemediationExecutionsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListAggregateRemediationExecutionsResponse;
import com.aliyuncs.config.model.v20200907.ListAggregateRemediationExecutionsResponse.RemediationExecutionData;
import com.aliyuncs.config.model.v20200907.ListAggregateRemediationExecutionsResponse.RemediationExecutionData.RemediationExecutionsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListAggregateRemediationExecutionsResponseUnmarshaller {
public static ListAggregateRemediationExecutionsResponse unmarshall(ListAggregateRemediationExecutionsResponse listAggregateRemediationExecutionsResponse, UnmarshallerContext _ctx) {
listAggregateRemediationExecutionsResponse.setRequestId(_ctx.stringValue("ListAggregateRemediationExecutionsResponse.RequestId"));
RemediationExecutionData remediationExecutionData = new RemediationExecutionData();
remediationExecutionData.setNextToken(_ctx.stringValue("ListAggregateRemediationExecutionsResponse.RemediationExecutionData.NextToken"));
remediationExecutionData.setMaxResults(_ctx.longValue("ListAggregateRemediationExecutionsResponse.RemediationExecutionData.MaxResults"));
List<RemediationExecutionsItem> remediationExecutions = new ArrayList<RemediationExecutionsItem>();
for (int i = 0; i < _ctx.lengthValue("ListAggregateRemediationExecutionsResponse.RemediationExecutionData.RemediationExecutions.Length"); i++) {
RemediationExecutionsItem remediationExecutionsItem = new RemediationExecutionsItem();
remediationExecutionsItem.setExecutionInvocationId(_ctx.stringValue("ListAggregateRemediationExecutionsResponse.RemediationExecutionData.RemediationExecutions["+ i +"].ExecutionInvocationId"));
remediationExecutionsItem.setExecutionStatus(_ctx.stringValue("ListAggregateRemediationExecutionsResponse.RemediationExecutionData.RemediationExecutions["+ i +"].ExecutionStatus"));
remediationExecutionsItem.setExecutionResourceType(_ctx.stringValue("ListAggregateRemediationExecutionsResponse.RemediationExecutionData.RemediationExecutions["+ i +"].ExecutionResourceType"));
remediationExecutionsItem.setExecutionCreateDate(_ctx.stringValue("ListAggregateRemediationExecutionsResponse.RemediationExecutionData.RemediationExecutions["+ i +"].ExecutionCreateDate"));
remediationExecutionsItem.setExecutionStatusMessage(_ctx.stringValue("ListAggregateRemediationExecutionsResponse.RemediationExecutionData.RemediationExecutions["+ i +"].ExecutionStatusMessage"));
remediationExecutionsItem.setExecutionResourceIds(_ctx.stringValue("ListAggregateRemediationExecutionsResponse.RemediationExecutionData.RemediationExecutions["+ i +"].ExecutionResourceIds"));
remediationExecutions.add(remediationExecutionsItem);
}
remediationExecutionData.setRemediationExecutions(remediationExecutions);
listAggregateRemediationExecutionsResponse.setRemediationExecutionData(remediationExecutionData);
return listAggregateRemediationExecutionsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListAggregateRemediationsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListAggregateRemediationsResponse;
import com.aliyuncs.config.model.v20200907.ListAggregateRemediationsResponse.Remediation;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListAggregateRemediationsResponseUnmarshaller {
public static ListAggregateRemediationsResponse unmarshall(ListAggregateRemediationsResponse listAggregateRemediationsResponse, UnmarshallerContext _ctx) {
listAggregateRemediationsResponse.setRequestId(_ctx.stringValue("ListAggregateRemediationsResponse.RequestId"));
List<Remediation> remediations = new ArrayList<Remediation>();
for (int i = 0; i < _ctx.lengthValue("ListAggregateRemediationsResponse.Remediations.Length"); i++) {
Remediation remediation = new Remediation();
remediation.setRemediationTemplateId(_ctx.stringValue("ListAggregateRemediationsResponse.Remediations["+ i +"].RemediationTemplateId"));
remediation.setRemediationDynamicParams(_ctx.stringValue("ListAggregateRemediationsResponse.Remediations["+ i +"].RemediationDynamicParams"));
remediation.setRemediationSourceType(_ctx.stringValue("ListAggregateRemediationsResponse.Remediations["+ i +"].RemediationSourceType"));
remediation.setRemediationType(_ctx.stringValue("ListAggregateRemediationsResponse.Remediations["+ i +"].RemediationType"));
remediation.setLastSuccessfulInvocationId(_ctx.stringValue("ListAggregateRemediationsResponse.Remediations["+ i +"].LastSuccessfulInvocationId"));
remediation.setAccountId(_ctx.longValue("ListAggregateRemediationsResponse.Remediations["+ i +"].AccountId"));
remediation.setAggregatorId(_ctx.stringValue("ListAggregateRemediationsResponse.Remediations["+ i +"].AggregatorId"));
remediation.setLastSuccessfulInvocationType(_ctx.stringValue("ListAggregateRemediationsResponse.Remediations["+ i +"].LastSuccessfulInvocationType"));
remediation.setRemediationId(_ctx.stringValue("ListAggregateRemediationsResponse.Remediations["+ i +"].RemediationId"));
remediation.setInvokeType(_ctx.stringValue("ListAggregateRemediationsResponse.Remediations["+ i +"].InvokeType"));
remediation.setConfigRuleId(_ctx.stringValue("ListAggregateRemediationsResponse.Remediations["+ i +"].ConfigRuleId"));
remediation.setLastSuccessfulInvocationTime(_ctx.longValue("ListAggregateRemediationsResponse.Remediations["+ i +"].LastSuccessfulInvocationTime"));
remediation.setRemediaitonOriginParams(_ctx.stringValue("ListAggregateRemediationsResponse.Remediations["+ i +"].RemediaitonOriginParams"));
remediations.add(remediation);
}
listAggregateRemediationsResponse.setRemediations(remediations);
return listAggregateRemediationsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListAggregateResourceEvaluationResultsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListAggregateResourceEvaluationResultsResponse;
import com.aliyuncs.config.model.v20200907.ListAggregateResourceEvaluationResultsResponse.EvaluationResults;
import com.aliyuncs.config.model.v20200907.ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResult;
import com.aliyuncs.config.model.v20200907.ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResult.EvaluationResultIdentifier;
import com.aliyuncs.config.model.v20200907.ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResult.EvaluationResultIdentifier.EvaluationResultQualifier;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListAggregateResourceEvaluationResultsResponseUnmarshaller {
public static ListAggregateResourceEvaluationResultsResponse unmarshall(ListAggregateResourceEvaluationResultsResponse listAggregateResourceEvaluationResultsResponse, UnmarshallerContext _ctx) {
listAggregateResourceEvaluationResultsResponse.setRequestId(_ctx.stringValue("ListAggregateResourceEvaluationResultsResponse.RequestId"));
EvaluationResults evaluationResults = new EvaluationResults();
evaluationResults.setNextToken(_ctx.stringValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.NextToken"));
evaluationResults.setMaxResults(_ctx.integerValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.MaxResults"));
List<EvaluationResult> evaluationResultList = new ArrayList<EvaluationResult>();
for (int i = 0; i < _ctx.lengthValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList.Length"); i++) {
EvaluationResult evaluationResult = new EvaluationResult();
evaluationResult.setRiskLevel(_ctx.integerValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].RiskLevel"));
evaluationResult.setComplianceType(_ctx.stringValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].ComplianceType"));
evaluationResult.setResultRecordedTimestamp(_ctx.longValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].ResultRecordedTimestamp"));
evaluationResult.setAnnotation(_ctx.stringValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].Annotation"));
evaluationResult.setConfigRuleInvokedTimestamp(_ctx.longValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].ConfigRuleInvokedTimestamp"));
evaluationResult.setInvokingEventMessageType(_ctx.stringValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].InvokingEventMessageType"));
evaluationResult.setRemediationEnabled(_ctx.booleanValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].RemediationEnabled"));
evaluationResult.setEvaluationId(_ctx.stringValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationId"));
evaluationResult.setLastNonCompliantRecordTimestamp(_ctx.longValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].LastNonCompliantRecordTimestamp"));
EvaluationResultIdentifier evaluationResultIdentifier = new EvaluationResultIdentifier();
evaluationResultIdentifier.setOrderingTimestamp(_ctx.longValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.OrderingTimestamp"));
EvaluationResultQualifier evaluationResultQualifier = new EvaluationResultQualifier();
evaluationResultQualifier.setConfigRuleArn(_ctx.stringValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ConfigRuleArn"));
evaluationResultQualifier.setResourceType(_ctx.stringValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ResourceType"));
evaluationResultQualifier.setConfigRuleName(_ctx.stringValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ConfigRuleName"));
evaluationResultQualifier.setResourceId(_ctx.stringValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ResourceId"));
evaluationResultQualifier.setConfigRuleId(_ctx.stringValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ConfigRuleId"));
evaluationResultQualifier.setResourceName(_ctx.stringValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ResourceName"));
evaluationResultQualifier.setRegionId(_ctx.stringValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.RegionId"));
evaluationResultQualifier.setIgnoreDate(_ctx.stringValue("ListAggregateResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.IgnoreDate"));
evaluationResultIdentifier.setEvaluationResultQualifier(evaluationResultQualifier);
evaluationResult.setEvaluationResultIdentifier(evaluationResultIdentifier);
evaluationResultList.add(evaluationResult);
}
evaluationResults.setEvaluationResultList(evaluationResultList);
listAggregateResourceEvaluationResultsResponse.setEvaluationResults(evaluationResults);
return listAggregateResourceEvaluationResultsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListAggregateResourceRelationsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListAggregateResourceRelationsResponse;
import com.aliyuncs.config.model.v20200907.ListAggregateResourceRelationsResponse.ResourceRelations;
import com.aliyuncs.config.model.v20200907.ListAggregateResourceRelationsResponse.ResourceRelations.ResourceRelationListItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListAggregateResourceRelationsResponseUnmarshaller {
public static ListAggregateResourceRelationsResponse unmarshall(ListAggregateResourceRelationsResponse listAggregateResourceRelationsResponse, UnmarshallerContext _ctx) {
listAggregateResourceRelationsResponse.setRequestId(_ctx.stringValue("ListAggregateResourceRelationsResponse.RequestId"));
ResourceRelations resourceRelations = new ResourceRelations();
resourceRelations.setNextToken(_ctx.stringValue("ListAggregateResourceRelationsResponse.ResourceRelations.NextToken"));
resourceRelations.setMaxResults(_ctx.integerValue("ListAggregateResourceRelationsResponse.ResourceRelations.MaxResults"));
resourceRelations.setTotalCount(_ctx.integerValue("ListAggregateResourceRelationsResponse.ResourceRelations.TotalCount"));
List<ResourceRelationListItem> resourceRelationList = new ArrayList<ResourceRelationListItem>();
for (int i = 0; i < _ctx.lengthValue("ListAggregateResourceRelationsResponse.ResourceRelations.ResourceRelationList.Length"); i++) {
ResourceRelationListItem resourceRelationListItem = new ResourceRelationListItem();
resourceRelationListItem.setAccountId(_ctx.longValue("ListAggregateResourceRelationsResponse.ResourceRelations.ResourceRelationList["+ i +"].AccountId"));
resourceRelationListItem.setSourceResourceType(_ctx.stringValue("ListAggregateResourceRelationsResponse.ResourceRelations.ResourceRelationList["+ i +"].SourceResourceType"));
resourceRelationListItem.setSourceResourceRegionId(_ctx.stringValue("ListAggregateResourceRelationsResponse.ResourceRelations.ResourceRelationList["+ i +"].SourceResourceRegionId"));
resourceRelationListItem.setSourceResourceId(_ctx.stringValue("ListAggregateResourceRelationsResponse.ResourceRelations.ResourceRelationList["+ i +"].SourceResourceId"));
resourceRelationListItem.setTargetResourceType(_ctx.stringValue("ListAggregateResourceRelationsResponse.ResourceRelations.ResourceRelationList["+ i +"].TargetResourceType"));
resourceRelationListItem.setTargetResourceId(_ctx.stringValue("ListAggregateResourceRelationsResponse.ResourceRelations.ResourceRelationList["+ i +"].TargetResourceId"));
resourceRelationListItem.setRelationType(_ctx.stringValue("ListAggregateResourceRelationsResponse.ResourceRelations.ResourceRelationList["+ i +"].RelationType"));
resourceRelationList.add(resourceRelationListItem);
}
resourceRelations.setResourceRelationList(resourceRelationList);
listAggregateResourceRelationsResponse.setResourceRelations(resourceRelations);
return listAggregateResourceRelationsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListAggregateResourcesByAdvancedSearchResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListAggregateResourcesByAdvancedSearchResponse;
import com.aliyuncs.config.model.v20200907.ListAggregateResourcesByAdvancedSearchResponse.QueryResults;
import com.aliyuncs.config.model.v20200907.ListAggregateResourcesByAdvancedSearchResponse.QueryResults.QueryResultList;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListAggregateResourcesByAdvancedSearchResponseUnmarshaller {
public static ListAggregateResourcesByAdvancedSearchResponse unmarshall(ListAggregateResourcesByAdvancedSearchResponse listAggregateResourcesByAdvancedSearchResponse, UnmarshallerContext _ctx) {
listAggregateResourcesByAdvancedSearchResponse.setRequestId(_ctx.stringValue("ListAggregateResourcesByAdvancedSearchResponse.RequestId"));
QueryResults queryResults = new QueryResults();
QueryResultList queryResultList = new QueryResultList();
List<String> columns = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("ListAggregateResourcesByAdvancedSearchResponse.QueryResults.QueryResultList.Columns.Length"); i++) {
columns.add(_ctx.stringValue("ListAggregateResourcesByAdvancedSearchResponse.QueryResults.QueryResultList.Columns["+ i +"]"));
}
queryResultList.setColumns(columns);
List<String> values = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("ListAggregateResourcesByAdvancedSearchResponse.QueryResults.QueryResultList.Values.Length"); i++) {
values.add(_ctx.stringValue("ListAggregateResourcesByAdvancedSearchResponse.QueryResults.QueryResultList.Values["+ i +"]"));
}
queryResultList.setValues(values);
queryResults.setQueryResultList(queryResultList);
listAggregateResourcesByAdvancedSearchResponse.setQueryResults(queryResults);
return listAggregateResourcesByAdvancedSearchResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListAggregatorsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListAggregatorsResponse;
import com.aliyuncs.config.model.v20200907.ListAggregatorsResponse.AggregatorsResult;
import com.aliyuncs.config.model.v20200907.ListAggregatorsResponse.AggregatorsResult.AggregatorsItem;
import com.aliyuncs.config.model.v20200907.ListAggregatorsResponse.AggregatorsResult.AggregatorsItem.TagsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListAggregatorsResponseUnmarshaller {
public static ListAggregatorsResponse unmarshall(ListAggregatorsResponse listAggregatorsResponse, UnmarshallerContext _ctx) {
listAggregatorsResponse.setRequestId(_ctx.stringValue("ListAggregatorsResponse.RequestId"));
AggregatorsResult aggregatorsResult = new AggregatorsResult();
aggregatorsResult.setNextToken(_ctx.stringValue("ListAggregatorsResponse.AggregatorsResult.NextToken"));
aggregatorsResult.setMaxResults(_ctx.integerValue("ListAggregatorsResponse.AggregatorsResult.MaxResults"));
List<AggregatorsItem> aggregators = new ArrayList<AggregatorsItem>();
for (int i = 0; i < _ctx.lengthValue("ListAggregatorsResponse.AggregatorsResult.Aggregators.Length"); i++) {
AggregatorsItem aggregatorsItem = new AggregatorsItem();
aggregatorsItem.setAggregatorCreateTimestamp(_ctx.longValue("ListAggregatorsResponse.AggregatorsResult.Aggregators["+ i +"].AggregatorCreateTimestamp"));
aggregatorsItem.setAggregatorAccountCount(_ctx.longValue("ListAggregatorsResponse.AggregatorsResult.Aggregators["+ i +"].AggregatorAccountCount"));
aggregatorsItem.setDescription(_ctx.stringValue("ListAggregatorsResponse.AggregatorsResult.Aggregators["+ i +"].Description"));
aggregatorsItem.setAggregatorName(_ctx.stringValue("ListAggregatorsResponse.AggregatorsResult.Aggregators["+ i +"].AggregatorName"));
aggregatorsItem.setAggregatorStatus(_ctx.integerValue("ListAggregatorsResponse.AggregatorsResult.Aggregators["+ i +"].AggregatorStatus"));
aggregatorsItem.setAggregatorType(_ctx.stringValue("ListAggregatorsResponse.AggregatorsResult.Aggregators["+ i +"].AggregatorType"));
aggregatorsItem.setAccountId(_ctx.longValue("ListAggregatorsResponse.AggregatorsResult.Aggregators["+ i +"].AccountId"));
aggregatorsItem.setAggregatorId(_ctx.stringValue("ListAggregatorsResponse.AggregatorsResult.Aggregators["+ i +"].AggregatorId"));
aggregatorsItem.setFolderId(_ctx.stringValue("ListAggregatorsResponse.AggregatorsResult.Aggregators["+ i +"].FolderId"));
List<TagsItem> tags = new ArrayList<TagsItem>();
for (int j = 0; j < _ctx.lengthValue("ListAggregatorsResponse.AggregatorsResult.Aggregators["+ i +"].Tags.Length"); j++) {
TagsItem tagsItem = new TagsItem();
tagsItem.setTagKey(_ctx.stringValue("ListAggregatorsResponse.AggregatorsResult.Aggregators["+ i +"].Tags["+ j +"].TagKey"));
tagsItem.setTagValue(_ctx.stringValue("ListAggregatorsResponse.AggregatorsResult.Aggregators["+ i +"].Tags["+ j +"].TagValue"));
tags.add(tagsItem);
}
aggregatorsItem.setTags(tags);
aggregators.add(aggregatorsItem);
}
aggregatorsResult.setAggregators(aggregators);
listAggregatorsResponse.setAggregatorsResult(aggregatorsResult);
return listAggregatorsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListCompliancePackTemplatesResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListCompliancePackTemplatesResponse;
import com.aliyuncs.config.model.v20200907.ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult;
import com.aliyuncs.config.model.v20200907.ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplate;
import com.aliyuncs.config.model.v20200907.ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplate.ConfigRulesItem;
import com.aliyuncs.config.model.v20200907.ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplate.ConfigRulesItem.ConfigRuleParametersItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListCompliancePackTemplatesResponseUnmarshaller {
public static ListCompliancePackTemplatesResponse unmarshall(ListCompliancePackTemplatesResponse listCompliancePackTemplatesResponse, UnmarshallerContext _ctx) {
listCompliancePackTemplatesResponse.setRequestId(_ctx.stringValue("ListCompliancePackTemplatesResponse.RequestId"));
CompliancePackTemplatesResult compliancePackTemplatesResult = new CompliancePackTemplatesResult();
compliancePackTemplatesResult.setPageSize(_ctx.integerValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.PageSize"));
compliancePackTemplatesResult.setPageNumber(_ctx.integerValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.PageNumber"));
compliancePackTemplatesResult.setTotalCount(_ctx.longValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.TotalCount"));
List<CompliancePackTemplate> compliancePackTemplates = new ArrayList<CompliancePackTemplate>();
for (int i = 0; i < _ctx.lengthValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates.Length"); i++) {
CompliancePackTemplate compliancePackTemplate = new CompliancePackTemplate();
compliancePackTemplate.setRiskLevel(_ctx.integerValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].RiskLevel"));
compliancePackTemplate.setDescription(_ctx.stringValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].Description"));
compliancePackTemplate.setAutomationHelpUrl(_ctx.stringValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].AutomationHelpUrl"));
compliancePackTemplate.setCompliancePackTemplateName(_ctx.stringValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].CompliancePackTemplateName"));
compliancePackTemplate.setCompliancePackTemplateId(_ctx.stringValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].CompliancePackTemplateId"));
compliancePackTemplate.setDomain(_ctx.stringValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].Domain"));
compliancePackTemplate.setLabels(_ctx.stringValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].Labels"));
compliancePackTemplate.setDeveloperType(_ctx.stringValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].DeveloperType"));
compliancePackTemplate.setLastUpdate(_ctx.integerValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].LastUpdate"));
List<ConfigRulesItem> configRules = new ArrayList<ConfigRulesItem>();
for (int j = 0; j < _ctx.lengthValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].ConfigRules.Length"); j++) {
ConfigRulesItem configRulesItem = new ConfigRulesItem();
configRulesItem.setDescription(_ctx.stringValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].ConfigRules["+ j +"].Description"));
configRulesItem.setManagedRuleIdentifier(_ctx.stringValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].ConfigRules["+ j +"].ManagedRuleIdentifier"));
configRulesItem.setManagedRuleName(_ctx.stringValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].ConfigRules["+ j +"].ManagedRuleName"));
configRulesItem.setRiskLevel(_ctx.integerValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].ConfigRules["+ j +"].RiskLevel"));
configRulesItem.setDeveloperType(_ctx.stringValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].ConfigRules["+ j +"].DeveloperType"));
configRulesItem.setControlId(_ctx.stringValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].ConfigRules["+ j +"].ControlId"));
configRulesItem.setControlDescription(_ctx.stringValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].ConfigRules["+ j +"].ControlDescription"));
configRulesItem.setDefaultEnable(_ctx.booleanValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].ConfigRules["+ j +"].DefaultEnable"));
configRulesItem.setResourceTypesScope(_ctx.stringValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].ConfigRules["+ j +"].ResourceTypesScope"));
List<ConfigRuleParametersItem> configRuleParameters = new ArrayList<ConfigRuleParametersItem>();
for (int k = 0; k < _ctx.lengthValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].ConfigRules["+ j +"].ConfigRuleParameters.Length"); k++) {
ConfigRuleParametersItem configRuleParametersItem = new ConfigRuleParametersItem();
configRuleParametersItem.setRequired(_ctx.booleanValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].ConfigRules["+ j +"].ConfigRuleParameters["+ k +"].Required"));
configRuleParametersItem.setParameterName(_ctx.stringValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].ConfigRules["+ j +"].ConfigRuleParameters["+ k +"].ParameterName"));
configRuleParametersItem.setParameterValue(_ctx.stringValue("ListCompliancePackTemplatesResponse.CompliancePackTemplatesResult.CompliancePackTemplates["+ i +"].ConfigRules["+ j +"].ConfigRuleParameters["+ k +"].ParameterValue"));
configRuleParameters.add(configRuleParametersItem);
}
configRulesItem.setConfigRuleParameters(configRuleParameters);
configRules.add(configRulesItem);
}
compliancePackTemplate.setConfigRules(configRules);
compliancePackTemplates.add(compliancePackTemplate);
}
compliancePackTemplatesResult.setCompliancePackTemplates(compliancePackTemplates);
listCompliancePackTemplatesResponse.setCompliancePackTemplatesResult(compliancePackTemplatesResult);
return listCompliancePackTemplatesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListCompliancePacksResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListCompliancePacksResponse;
import com.aliyuncs.config.model.v20200907.ListCompliancePacksResponse.CompliancePacksResult;
import com.aliyuncs.config.model.v20200907.ListCompliancePacksResponse.CompliancePacksResult.CompliancePacksItem;
import com.aliyuncs.config.model.v20200907.ListCompliancePacksResponse.CompliancePacksResult.CompliancePacksItem.TagsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListCompliancePacksResponseUnmarshaller {
public static ListCompliancePacksResponse unmarshall(ListCompliancePacksResponse listCompliancePacksResponse, UnmarshallerContext _ctx) {
listCompliancePacksResponse.setRequestId(_ctx.stringValue("ListCompliancePacksResponse.RequestId"));
CompliancePacksResult compliancePacksResult = new CompliancePacksResult();
compliancePacksResult.setPageSize(_ctx.integerValue("ListCompliancePacksResponse.CompliancePacksResult.PageSize"));
compliancePacksResult.setPageNumber(_ctx.integerValue("ListCompliancePacksResponse.CompliancePacksResult.PageNumber"));
compliancePacksResult.setTotalCount(_ctx.longValue("ListCompliancePacksResponse.CompliancePacksResult.TotalCount"));
List<CompliancePacksItem> compliancePacks = new ArrayList<CompliancePacksItem>();
for (int i = 0; i < _ctx.lengthValue("ListCompliancePacksResponse.CompliancePacksResult.CompliancePacks.Length"); i++) {
CompliancePacksItem compliancePacksItem = new CompliancePacksItem();
compliancePacksItem.setStatus(_ctx.stringValue("ListCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].Status"));
compliancePacksItem.setCompliancePackId(_ctx.stringValue("ListCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].CompliancePackId"));
compliancePacksItem.setRiskLevel(_ctx.integerValue("ListCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].RiskLevel"));
compliancePacksItem.setDescription(_ctx.stringValue("ListCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].Description"));
compliancePacksItem.setCompliancePackName(_ctx.stringValue("ListCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].CompliancePackName"));
compliancePacksItem.setAccountId(_ctx.longValue("ListCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].AccountId"));
compliancePacksItem.setCompliancePackTemplateId(_ctx.stringValue("ListCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].CompliancePackTemplateId"));
compliancePacksItem.setCreateTimestamp(_ctx.longValue("ListCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].CreateTimestamp"));
List<TagsItem> tags = new ArrayList<TagsItem>();
for (int j = 0; j < _ctx.lengthValue("ListCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].Tags.Length"); j++) {
TagsItem tagsItem = new TagsItem();
tagsItem.setTagKey(_ctx.stringValue("ListCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].Tags["+ j +"].TagKey"));
tagsItem.setTagValue(_ctx.stringValue("ListCompliancePacksResponse.CompliancePacksResult.CompliancePacks["+ i +"].Tags["+ j +"].TagValue"));
tags.add(tagsItem);
}
compliancePacksItem.setTags(tags);
compliancePacks.add(compliancePacksItem);
}
compliancePacksResult.setCompliancePacks(compliancePacks);
listCompliancePacksResponse.setCompliancePacksResult(compliancePacksResult);
return listCompliancePacksResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListConfigDeliveryChannelsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListConfigDeliveryChannelsResponse;
import com.aliyuncs.config.model.v20200907.ListConfigDeliveryChannelsResponse.DeliveryChannel;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListConfigDeliveryChannelsResponseUnmarshaller {
public static ListConfigDeliveryChannelsResponse unmarshall(ListConfigDeliveryChannelsResponse listConfigDeliveryChannelsResponse, UnmarshallerContext _ctx) {
listConfigDeliveryChannelsResponse.setRequestId(_ctx.stringValue("ListConfigDeliveryChannelsResponse.RequestId"));
List<DeliveryChannel> deliveryChannels = new ArrayList<DeliveryChannel>();
for (int i = 0; i < _ctx.lengthValue("ListConfigDeliveryChannelsResponse.DeliveryChannels.Length"); i++) {
DeliveryChannel deliveryChannel = new DeliveryChannel();
deliveryChannel.setStatus(_ctx.integerValue("ListConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].Status"));
deliveryChannel.setDeliveryChannelName(_ctx.stringValue("ListConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].DeliveryChannelName"));
deliveryChannel.setDeliveryChannelId(_ctx.stringValue("ListConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].DeliveryChannelId"));
deliveryChannel.setDeliveryChannelType(_ctx.stringValue("ListConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].DeliveryChannelType"));
deliveryChannel.setDeliveryChannelTargetArn(_ctx.stringValue("ListConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].DeliveryChannelTargetArn"));
deliveryChannel.setDeliveryChannelAssumeRoleArn(_ctx.stringValue("ListConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].DeliveryChannelAssumeRoleArn"));
deliveryChannel.setDeliveryChannelCondition(_ctx.stringValue("ListConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].DeliveryChannelCondition"));
deliveryChannel.setOversizedDataOSSTargetArn(_ctx.stringValue("ListConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].OversizedDataOSSTargetArn"));
deliveryChannel.setDescription(_ctx.stringValue("ListConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].Description"));
deliveryChannel.setCompliantSnapshot(_ctx.booleanValue("ListConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].CompliantSnapshot"));
deliveryChannel.setConfigurationSnapshot(_ctx.booleanValue("ListConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].ConfigurationSnapshot"));
deliveryChannel.setConfigurationItemChangeNotification(_ctx.booleanValue("ListConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].ConfigurationItemChangeNotification"));
deliveryChannel.setNonCompliantNotification(_ctx.booleanValue("ListConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].NonCompliantNotification"));
deliveryChannel.setAccountId(_ctx.longValue("ListConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].AccountId"));
deliveryChannel.setDeliverySnapshotTime(_ctx.stringValue("ListConfigDeliveryChannelsResponse.DeliveryChannels["+ i +"].DeliverySnapshotTime"));
deliveryChannels.add(deliveryChannel);
}
listConfigDeliveryChannelsResponse.setDeliveryChannels(deliveryChannels);
return listConfigDeliveryChannelsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListConfigRuleEvaluationResultsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListConfigRuleEvaluationResultsResponse;
import com.aliyuncs.config.model.v20200907.ListConfigRuleEvaluationResultsResponse.EvaluationResults;
import com.aliyuncs.config.model.v20200907.ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResult;
import com.aliyuncs.config.model.v20200907.ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResult.EvaluationResultIdentifier;
import com.aliyuncs.config.model.v20200907.ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResult.EvaluationResultIdentifier.EvaluationResultQualifier;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListConfigRuleEvaluationResultsResponseUnmarshaller {
public static ListConfigRuleEvaluationResultsResponse unmarshall(ListConfigRuleEvaluationResultsResponse listConfigRuleEvaluationResultsResponse, UnmarshallerContext _ctx) {
listConfigRuleEvaluationResultsResponse.setRequestId(_ctx.stringValue("ListConfigRuleEvaluationResultsResponse.RequestId"));
EvaluationResults evaluationResults = new EvaluationResults();
evaluationResults.setNextToken(_ctx.stringValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.NextToken"));
evaluationResults.setMaxResults(_ctx.integerValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.MaxResults"));
List<EvaluationResult> evaluationResultList = new ArrayList<EvaluationResult>();
for (int i = 0; i < _ctx.lengthValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList.Length"); i++) {
EvaluationResult evaluationResult = new EvaluationResult();
evaluationResult.setRiskLevel(_ctx.integerValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].RiskLevel"));
evaluationResult.setComplianceType(_ctx.stringValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].ComplianceType"));
evaluationResult.setResultRecordedTimestamp(_ctx.longValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].ResultRecordedTimestamp"));
evaluationResult.setAnnotation(_ctx.stringValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].Annotation"));
evaluationResult.setConfigRuleInvokedTimestamp(_ctx.longValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].ConfigRuleInvokedTimestamp"));
evaluationResult.setInvokingEventMessageType(_ctx.stringValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].InvokingEventMessageType"));
evaluationResult.setRemediationEnabled(_ctx.booleanValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].RemediationEnabled"));
evaluationResult.setEvaluationId(_ctx.stringValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationId"));
evaluationResult.setLastNonCompliantRecordTimestamp(_ctx.longValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].LastNonCompliantRecordTimestamp"));
EvaluationResultIdentifier evaluationResultIdentifier = new EvaluationResultIdentifier();
evaluationResultIdentifier.setOrderingTimestamp(_ctx.longValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.OrderingTimestamp"));
EvaluationResultQualifier evaluationResultQualifier = new EvaluationResultQualifier();
evaluationResultQualifier.setResourceOwnerId(_ctx.longValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ResourceOwnerId"));
evaluationResultQualifier.setConfigRuleArn(_ctx.stringValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ConfigRuleArn"));
evaluationResultQualifier.setResourceType(_ctx.stringValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ResourceType"));
evaluationResultQualifier.setConfigRuleName(_ctx.stringValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ConfigRuleName"));
evaluationResultQualifier.setResourceGroupId(_ctx.stringValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ResourceGroupId"));
evaluationResultQualifier.setConfigRuleId(_ctx.stringValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ConfigRuleId"));
evaluationResultQualifier.setResourceName(_ctx.stringValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ResourceName"));
evaluationResultQualifier.setRegionId(_ctx.stringValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.RegionId"));
evaluationResultQualifier.setCompliancePackId(_ctx.stringValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.CompliancePackId"));
evaluationResultQualifier.setIgnoreDate(_ctx.stringValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.IgnoreDate"));
evaluationResultQualifier.setResourceId(_ctx.stringValue("ListConfigRuleEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ResourceId"));
evaluationResultIdentifier.setEvaluationResultQualifier(evaluationResultQualifier);
evaluationResult.setEvaluationResultIdentifier(evaluationResultIdentifier);
evaluationResultList.add(evaluationResult);
}
evaluationResults.setEvaluationResultList(evaluationResultList);
listConfigRuleEvaluationResultsResponse.setEvaluationResults(evaluationResults);
return listConfigRuleEvaluationResultsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListConfigRuleEvaluationStatisticsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListConfigRuleEvaluationStatisticsResponse;
import com.aliyuncs.config.model.v20200907.ListConfigRuleEvaluationStatisticsResponse.EvaluationResultsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListConfigRuleEvaluationStatisticsResponseUnmarshaller {
public static ListConfigRuleEvaluationStatisticsResponse unmarshall(ListConfigRuleEvaluationStatisticsResponse listConfigRuleEvaluationStatisticsResponse, UnmarshallerContext _ctx) {
listConfigRuleEvaluationStatisticsResponse.setRequestId(_ctx.stringValue("ListConfigRuleEvaluationStatisticsResponse.RequestId"));
List<EvaluationResultsItem> evaluationResults = new ArrayList<EvaluationResultsItem>();
for (int i = 0; i < _ctx.lengthValue("ListConfigRuleEvaluationStatisticsResponse.EvaluationResults.Length"); i++) {
EvaluationResultsItem evaluationResultsItem = new EvaluationResultsItem();
evaluationResultsItem.setAccountId(_ctx.longValue("ListConfigRuleEvaluationStatisticsResponse.EvaluationResults["+ i +"].AccountId"));
evaluationResultsItem.setNonCompliantResourceCnt(_ctx.integerValue("ListConfigRuleEvaluationStatisticsResponse.EvaluationResults["+ i +"].NonCompliantResourceCnt"));
evaluationResultsItem.setTotalResourceCnt(_ctx.integerValue("ListConfigRuleEvaluationStatisticsResponse.EvaluationResults["+ i +"].TotalResourceCnt"));
evaluationResultsItem.setNonCompliantRuleCnt(_ctx.integerValue("ListConfigRuleEvaluationStatisticsResponse.EvaluationResults["+ i +"].NonCompliantRuleCnt"));
evaluationResultsItem.setTotalRuleCnt(_ctx.integerValue("ListConfigRuleEvaluationStatisticsResponse.EvaluationResults["+ i +"].TotalRuleCnt"));
evaluationResultsItem.setGmtCreate(_ctx.longValue("ListConfigRuleEvaluationStatisticsResponse.EvaluationResults["+ i +"].GmtCreate"));
evaluationResultsItem.setNonCompliantRuleDetail(_ctx.stringValue("ListConfigRuleEvaluationStatisticsResponse.EvaluationResults["+ i +"].NonCompliantRuleDetail"));
evaluationResultsItem.setStatisticDate(_ctx.stringValue("ListConfigRuleEvaluationStatisticsResponse.EvaluationResults["+ i +"].StatisticDate"));
evaluationResults.add(evaluationResultsItem);
}
listConfigRuleEvaluationStatisticsResponse.setEvaluationResults(evaluationResults);
return listConfigRuleEvaluationStatisticsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListConfigRulesResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListConfigRulesResponse;
import com.aliyuncs.config.model.v20200907.ListConfigRulesResponse.ConfigRules;
import com.aliyuncs.config.model.v20200907.ListConfigRulesResponse.ConfigRules.ConfigRule;
import com.aliyuncs.config.model.v20200907.ListConfigRulesResponse.ConfigRules.ConfigRule.Compliance;
import com.aliyuncs.config.model.v20200907.ListConfigRulesResponse.ConfigRules.ConfigRule.CreateBy;
import com.aliyuncs.config.model.v20200907.ListConfigRulesResponse.ConfigRules.ConfigRule.Tag;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListConfigRulesResponseUnmarshaller {
public static ListConfigRulesResponse unmarshall(ListConfigRulesResponse listConfigRulesResponse, UnmarshallerContext _ctx) {
listConfigRulesResponse.setRequestId(_ctx.stringValue("ListConfigRulesResponse.RequestId"));
ConfigRules configRules = new ConfigRules();
configRules.setPageSize(_ctx.integerValue("ListConfigRulesResponse.ConfigRules.PageSize"));
configRules.setPageNumber(_ctx.integerValue("ListConfigRulesResponse.ConfigRules.PageNumber"));
configRules.setTotalCount(_ctx.longValue("ListConfigRulesResponse.ConfigRules.TotalCount"));
List<ConfigRule> configRuleList = new ArrayList<ConfigRule>();
for (int i = 0; i < _ctx.lengthValue("ListConfigRulesResponse.ConfigRules.ConfigRuleList.Length"); i++) {
ConfigRule configRule = new ConfigRule();
configRule.setRiskLevel(_ctx.integerValue("ListConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].RiskLevel"));
configRule.setSourceOwner(_ctx.stringValue("ListConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].SourceOwner"));
configRule.setAccountId(_ctx.longValue("ListConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].AccountId"));
configRule.setConfigRuleState(_ctx.stringValue("ListConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].ConfigRuleState"));
configRule.setSourceIdentifier(_ctx.stringValue("ListConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].SourceIdentifier"));
configRule.setConfigRuleArn(_ctx.stringValue("ListConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].ConfigRuleArn"));
configRule.setDescription(_ctx.stringValue("ListConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].Description"));
configRule.setAutomationType(_ctx.stringValue("ListConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].AutomationType"));
configRule.setConfigRuleName(_ctx.stringValue("ListConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].ConfigRuleName"));
configRule.setConfigRuleId(_ctx.stringValue("ListConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].ConfigRuleId"));
configRule.setResourceTypesScope(_ctx.stringValue("ListConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].ResourceTypesScope"));
configRule.setServiceChannel(_ctx.stringValue("ListConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].ServiceChannel"));
Compliance compliance = new Compliance();
compliance.setComplianceType(_ctx.stringValue("ListConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].Compliance.ComplianceType"));
compliance.setCount(_ctx.integerValue("ListConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].Compliance.Count"));
configRule.setCompliance(compliance);
CreateBy createBy = new CreateBy();
createBy.setCompliancePackId(_ctx.stringValue("ListConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].CreateBy.CompliancePackId"));
createBy.setCompliancePackName(_ctx.stringValue("ListConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].CreateBy.CompliancePackName"));
configRule.setCreateBy(createBy);
List<Tag> tags = new ArrayList<Tag>();
for (int j = 0; j < _ctx.lengthValue("ListConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].Tags.Length"); j++) {
Tag tag = new Tag();
tag.setKey(_ctx.stringValue("ListConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].Tags["+ j +"].Key"));
tag.setValue(_ctx.stringValue("ListConfigRulesResponse.ConfigRules.ConfigRuleList["+ i +"].Tags["+ j +"].Value"));
tags.add(tag);
}
configRule.setTags(tags);
configRuleList.add(configRule);
}
configRules.setConfigRuleList(configRuleList);
listConfigRulesResponse.setConfigRules(configRules);
return listConfigRulesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListDiscoveredResourcesResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListDiscoveredResourcesResponse;
import com.aliyuncs.config.model.v20200907.ListDiscoveredResourcesResponse.DiscoveredResourceProfiles;
import com.aliyuncs.config.model.v20200907.ListDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfile;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListDiscoveredResourcesResponseUnmarshaller {
public static ListDiscoveredResourcesResponse unmarshall(ListDiscoveredResourcesResponse listDiscoveredResourcesResponse, UnmarshallerContext _ctx) {
listDiscoveredResourcesResponse.setRequestId(_ctx.stringValue("ListDiscoveredResourcesResponse.RequestId"));
DiscoveredResourceProfiles discoveredResourceProfiles = new DiscoveredResourceProfiles();
discoveredResourceProfiles.setMaxResults(_ctx.integerValue("ListDiscoveredResourcesResponse.DiscoveredResourceProfiles.MaxResults"));
discoveredResourceProfiles.setNextToken(_ctx.stringValue("ListDiscoveredResourcesResponse.DiscoveredResourceProfiles.NextToken"));
discoveredResourceProfiles.setTotalCount(_ctx.integerValue("ListDiscoveredResourcesResponse.DiscoveredResourceProfiles.TotalCount"));
List<DiscoveredResourceProfile> discoveredResourceProfileList = new ArrayList<DiscoveredResourceProfile>();
for (int i = 0; i < _ctx.lengthValue("ListDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList.Length"); i++) {
DiscoveredResourceProfile discoveredResourceProfile = new DiscoveredResourceProfile();
discoveredResourceProfile.setAccountId(_ctx.longValue("ListDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].AccountId"));
discoveredResourceProfile.setAvailabilityZone(_ctx.stringValue("ListDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].AvailabilityZone"));
discoveredResourceProfile.setRegion(_ctx.stringValue("ListDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].Region"));
discoveredResourceProfile.setResourceCreationTime(_ctx.longValue("ListDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].ResourceCreationTime"));
discoveredResourceProfile.setResourceDeleted(_ctx.integerValue("ListDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].ResourceDeleted"));
discoveredResourceProfile.setResourceId(_ctx.stringValue("ListDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].ResourceId"));
discoveredResourceProfile.setResourceName(_ctx.stringValue("ListDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].ResourceName"));
discoveredResourceProfile.setResourceStatus(_ctx.stringValue("ListDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].ResourceStatus"));
discoveredResourceProfile.setResourceType(_ctx.stringValue("ListDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].ResourceType"));
discoveredResourceProfile.setTags(_ctx.stringValue("ListDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].Tags"));
discoveredResourceProfile.setUpdateTime(_ctx.longValue("ListDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].UpdateTime"));
discoveredResourceProfile.setVersion(_ctx.longValue("ListDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].Version"));
discoveredResourceProfile.setVpcId(_ctx.stringValue("ListDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].VpcId"));
discoveredResourceProfile.setVSwitchId(_ctx.stringValue("ListDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList["+ i +"].VSwitchId"));
discoveredResourceProfileList.add(discoveredResourceProfile);
}
discoveredResourceProfiles.setDiscoveredResourceProfileList(discoveredResourceProfileList);
listDiscoveredResourcesResponse.setDiscoveredResourceProfiles(discoveredResourceProfiles);
return listDiscoveredResourcesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListIntegratedServiceResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListIntegratedServiceResponse;
import com.aliyuncs.config.model.v20200907.ListIntegratedServiceResponse.DataItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListIntegratedServiceResponseUnmarshaller {
public static ListIntegratedServiceResponse unmarshall(ListIntegratedServiceResponse listIntegratedServiceResponse, UnmarshallerContext _ctx) {
listIntegratedServiceResponse.setRequestId(_ctx.stringValue("ListIntegratedServiceResponse.RequestId"));
List<DataItem> data = new ArrayList<DataItem>();
for (int i = 0; i < _ctx.lengthValue("ListIntegratedServiceResponse.Data.Length"); i++) {
DataItem dataItem = new DataItem();
dataItem.setAccountId(_ctx.longValue("ListIntegratedServiceResponse.Data["+ i +"].AccountId"));
dataItem.setServiceName(_ctx.stringValue("ListIntegratedServiceResponse.Data["+ i +"].ServiceName"));
dataItem.setServiceCode(_ctx.stringValue("ListIntegratedServiceResponse.Data["+ i +"].ServiceCode"));
dataItem.setStatus(_ctx.booleanValue("ListIntegratedServiceResponse.Data["+ i +"].Status"));
dataItem.setIntegratedTypes(_ctx.stringValue("ListIntegratedServiceResponse.Data["+ i +"].IntegratedTypes"));
dataItem.setAggregatorDeliveryDataType(_ctx.stringValue("ListIntegratedServiceResponse.Data["+ i +"].AggregatorDeliveryDataType"));
data.add(dataItem);
}
listIntegratedServiceResponse.setData(data);
return listIntegratedServiceResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListManagedRulesResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListManagedRulesResponse;
import com.aliyuncs.config.model.v20200907.ListManagedRulesResponse.ManagedRules;
import com.aliyuncs.config.model.v20200907.ListManagedRulesResponse.ManagedRules.ManagedRule;
import com.aliyuncs.config.model.v20200907.ListManagedRulesResponse.ManagedRules.ManagedRule.Scope;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListManagedRulesResponseUnmarshaller {
public static ListManagedRulesResponse unmarshall(ListManagedRulesResponse listManagedRulesResponse, UnmarshallerContext _ctx) {
listManagedRulesResponse.setRequestId(_ctx.stringValue("ListManagedRulesResponse.RequestId"));
ManagedRules managedRules = new ManagedRules();
managedRules.setPageSize(_ctx.integerValue("ListManagedRulesResponse.ManagedRules.PageSize"));
managedRules.setPageNumber(_ctx.integerValue("ListManagedRulesResponse.ManagedRules.PageNumber"));
managedRules.setTotalCount(_ctx.longValue("ListManagedRulesResponse.ManagedRules.TotalCount"));
List<ManagedRule> managedRuleList = new ArrayList<ManagedRule>();
for (int i = 0; i < _ctx.lengthValue("ListManagedRulesResponse.ManagedRules.ManagedRuleList.Length"); i++) {
ManagedRule managedRule = new ManagedRule();
managedRule.setRiskLevel(_ctx.integerValue("ListManagedRulesResponse.ManagedRules.ManagedRuleList["+ i +"].RiskLevel"));
managedRule.setDescription(_ctx.stringValue("ListManagedRulesResponse.ManagedRules.ManagedRuleList["+ i +"].Description"));
managedRule.setUseCases(_ctx.stringValue("ListManagedRulesResponse.ManagedRules.ManagedRuleList["+ i +"].UseCases"));
managedRule.setIdentifier(_ctx.stringValue("ListManagedRulesResponse.ManagedRules.ManagedRuleList["+ i +"].Identifier"));
managedRule.setConfigRuleName(_ctx.stringValue("ListManagedRulesResponse.ManagedRules.ManagedRuleList["+ i +"].ConfigRuleName"));
managedRule.setReferenceCount(_ctx.integerValue("ListManagedRulesResponse.ManagedRules.ManagedRuleList["+ i +"].ReferenceCount"));
managedRule.setHelpUrls(_ctx.stringValue("ListManagedRulesResponse.ManagedRules.ManagedRuleList["+ i +"].HelpUrls"));
managedRule.setSupportPreviewManagedRule(_ctx.booleanValue("ListManagedRulesResponse.ManagedRules.ManagedRuleList["+ i +"].SupportPreviewManagedRule"));
managedRule.setRemediationTemplateIdentifier(_ctx.stringValue("ListManagedRulesResponse.ManagedRules.ManagedRuleList["+ i +"].RemediationTemplateIdentifier"));
managedRule.setRemediationTemplateName(_ctx.stringValue("ListManagedRulesResponse.ManagedRules.ManagedRuleList["+ i +"].RemediationTemplateName"));
List<String> labels = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListManagedRulesResponse.ManagedRules.ManagedRuleList["+ i +"].Labels.Length"); j++) {
labels.add(_ctx.stringValue("ListManagedRulesResponse.ManagedRules.ManagedRuleList["+ i +"].Labels["+ j +"]"));
}
managedRule.setLabels(labels);
Scope scope = new Scope();
List<String> complianceResourceTypes = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListManagedRulesResponse.ManagedRules.ManagedRuleList["+ i +"].Scope.ComplianceResourceTypes.Length"); j++) {
complianceResourceTypes.add(_ctx.stringValue("ListManagedRulesResponse.ManagedRules.ManagedRuleList["+ i +"].Scope.ComplianceResourceTypes["+ j +"]"));
}
scope.setComplianceResourceTypes(complianceResourceTypes);
managedRule.setScope(scope);
managedRuleList.add(managedRule);
}
managedRules.setManagedRuleList(managedRuleList);
listManagedRulesResponse.setManagedRules(managedRules);
return listManagedRulesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListPreManagedRulesResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListPreManagedRulesResponse;
import com.aliyuncs.config.model.v20200907.ListPreManagedRulesResponse.ManagedRule;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListPreManagedRulesResponseUnmarshaller {
public static ListPreManagedRulesResponse unmarshall(ListPreManagedRulesResponse listPreManagedRulesResponse, UnmarshallerContext _ctx) {
listPreManagedRulesResponse.setRequestId(_ctx.stringValue("ListPreManagedRulesResponse.RequestId"));
listPreManagedRulesResponse.setPageNumber(_ctx.longValue("ListPreManagedRulesResponse.PageNumber"));
listPreManagedRulesResponse.setPageSize(_ctx.longValue("ListPreManagedRulesResponse.PageSize"));
List<ManagedRule> managedRules = new ArrayList<ManagedRule>();
for (int i = 0; i < _ctx.lengthValue("ListPreManagedRulesResponse.ManagedRules.Length"); i++) {
ManagedRule managedRule = new ManagedRule();
managedRule.setResourceType(_ctx.stringValue("ListPreManagedRulesResponse.ManagedRules["+ i +"].ResourceType"));
managedRule.setDescription(_ctx.stringValue("ListPreManagedRulesResponse.ManagedRules["+ i +"].Description"));
managedRule.setInputParameters(_ctx.mapValue("ListPreManagedRulesResponse.ManagedRules["+ i +"].InputParameters"));
managedRule.setOptionalInputParameterDetails(_ctx.mapValue("ListPreManagedRulesResponse.ManagedRules["+ i +"].OptionalInputParameterDetails"));
managedRule.setIdentifier(_ctx.stringValue("ListPreManagedRulesResponse.ManagedRules["+ i +"].Identifier"));
managedRule.setConfigRuleName(_ctx.stringValue("ListPreManagedRulesResponse.ManagedRules["+ i +"].ConfigRuleName"));
managedRule.setHelpUrls(_ctx.stringValue("ListPreManagedRulesResponse.ManagedRules["+ i +"].HelpUrls"));
managedRule.setDefaultEnable(_ctx.booleanValue("ListPreManagedRulesResponse.ManagedRules["+ i +"].DefaultEnable"));
managedRule.setNonCompliantSample(_ctx.stringValue("ListPreManagedRulesResponse.ManagedRules["+ i +"].NonCompliantSample"));
managedRule.setCompliantSample(_ctx.stringValue("ListPreManagedRulesResponse.ManagedRules["+ i +"].CompliantSample"));
managedRule.setCompulsoryInputParameterDetails(_ctx.mapValue("ListPreManagedRulesResponse.ManagedRules["+ i +"].CompulsoryInputParameterDetails"));
List<Map<Object, Object>> sourceConditions = _ctx.listMapValue("ListPreManagedRulesResponse.ManagedRules["+ i +"].SourceConditions");
managedRule.setSourceConditions(sourceConditions);
managedRules.add(managedRule);
}
listPreManagedRulesResponse.setManagedRules(managedRules);
return listPreManagedRulesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListRemediationExecutionsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListRemediationExecutionsResponse;
import com.aliyuncs.config.model.v20200907.ListRemediationExecutionsResponse.RemediationExecutionData;
import com.aliyuncs.config.model.v20200907.ListRemediationExecutionsResponse.RemediationExecutionData.RemediationExecutionsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListRemediationExecutionsResponseUnmarshaller {
public static ListRemediationExecutionsResponse unmarshall(ListRemediationExecutionsResponse listRemediationExecutionsResponse, UnmarshallerContext _ctx) {
listRemediationExecutionsResponse.setRequestId(_ctx.stringValue("ListRemediationExecutionsResponse.RequestId"));
RemediationExecutionData remediationExecutionData = new RemediationExecutionData();
remediationExecutionData.setNextToken(_ctx.stringValue("ListRemediationExecutionsResponse.RemediationExecutionData.NextToken"));
remediationExecutionData.setMaxResults(_ctx.longValue("ListRemediationExecutionsResponse.RemediationExecutionData.MaxResults"));
List<RemediationExecutionsItem> remediationExecutions = new ArrayList<RemediationExecutionsItem>();
for (int i = 0; i < _ctx.lengthValue("ListRemediationExecutionsResponse.RemediationExecutionData.RemediationExecutions.Length"); i++) {
RemediationExecutionsItem remediationExecutionsItem = new RemediationExecutionsItem();
remediationExecutionsItem.setExecutionInvocationId(_ctx.stringValue("ListRemediationExecutionsResponse.RemediationExecutionData.RemediationExecutions["+ i +"].ExecutionInvocationId"));
remediationExecutionsItem.setExecutionStatus(_ctx.stringValue("ListRemediationExecutionsResponse.RemediationExecutionData.RemediationExecutions["+ i +"].ExecutionStatus"));
remediationExecutionsItem.setExecutionResourceType(_ctx.stringValue("ListRemediationExecutionsResponse.RemediationExecutionData.RemediationExecutions["+ i +"].ExecutionResourceType"));
remediationExecutionsItem.setExecutionCreateDate(_ctx.stringValue("ListRemediationExecutionsResponse.RemediationExecutionData.RemediationExecutions["+ i +"].ExecutionCreateDate"));
remediationExecutionsItem.setExecutionStatusMessage(_ctx.stringValue("ListRemediationExecutionsResponse.RemediationExecutionData.RemediationExecutions["+ i +"].ExecutionStatusMessage"));
remediationExecutionsItem.setExecutionResourceIds(_ctx.stringValue("ListRemediationExecutionsResponse.RemediationExecutionData.RemediationExecutions["+ i +"].ExecutionResourceIds"));
remediationExecutions.add(remediationExecutionsItem);
}
remediationExecutionData.setRemediationExecutions(remediationExecutions);
listRemediationExecutionsResponse.setRemediationExecutionData(remediationExecutionData);
return listRemediationExecutionsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListRemediationTemplatesResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListRemediationTemplatesResponse;
import com.aliyuncs.config.model.v20200907.ListRemediationTemplatesResponse.RemediationTemplate;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListRemediationTemplatesResponseUnmarshaller {
public static ListRemediationTemplatesResponse unmarshall(ListRemediationTemplatesResponse listRemediationTemplatesResponse, UnmarshallerContext _ctx) {
listRemediationTemplatesResponse.setRequestId(_ctx.stringValue("ListRemediationTemplatesResponse.RequestId"));
listRemediationTemplatesResponse.setPageNumber(_ctx.longValue("ListRemediationTemplatesResponse.PageNumber"));
listRemediationTemplatesResponse.setPageSize(_ctx.longValue("ListRemediationTemplatesResponse.PageSize"));
listRemediationTemplatesResponse.setTotalCount(_ctx.stringValue("ListRemediationTemplatesResponse.TotalCount"));
List<RemediationTemplate> remediationTemplates = new ArrayList<RemediationTemplate>();
for (int i = 0; i < _ctx.lengthValue("ListRemediationTemplatesResponse.RemediationTemplates.Length"); i++) {
RemediationTemplate remediationTemplate = new RemediationTemplate();
remediationTemplate.setCompulsoryParameters(_ctx.stringValue("ListRemediationTemplatesResponse.RemediationTemplates["+ i +"].CompulsoryParameters"));
remediationTemplate.setRemediationType(_ctx.stringValue("ListRemediationTemplatesResponse.RemediationTemplates["+ i +"].RemediationType"));
remediationTemplate.setTemplateIdentifier(_ctx.stringValue("ListRemediationTemplatesResponse.RemediationTemplates["+ i +"].TemplateIdentifier"));
remediationTemplate.setTemplateName(_ctx.stringValue("ListRemediationTemplatesResponse.RemediationTemplates["+ i +"].TemplateName"));
remediationTemplate.setTemplateDefinition(_ctx.stringValue("ListRemediationTemplatesResponse.RemediationTemplates["+ i +"].TemplateDefinition"));
remediationTemplate.setTemplateDescription(_ctx.stringValue("ListRemediationTemplatesResponse.RemediationTemplates["+ i +"].TemplateDescription"));
remediationTemplates.add(remediationTemplate);
}
listRemediationTemplatesResponse.setRemediationTemplates(remediationTemplates);
return listRemediationTemplatesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListRemediationsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListRemediationsResponse;
import com.aliyuncs.config.model.v20200907.ListRemediationsResponse.Remediation;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListRemediationsResponseUnmarshaller {
public static ListRemediationsResponse unmarshall(ListRemediationsResponse listRemediationsResponse, UnmarshallerContext _ctx) {
listRemediationsResponse.setRequestId(_ctx.stringValue("ListRemediationsResponse.RequestId"));
listRemediationsResponse.setPageNumber(_ctx.longValue("ListRemediationsResponse.PageNumber"));
listRemediationsResponse.setPageSize(_ctx.longValue("ListRemediationsResponse.PageSize"));
listRemediationsResponse.setTotalCount(_ctx.stringValue("ListRemediationsResponse.TotalCount"));
List<Remediation> remediations = new ArrayList<Remediation>();
for (int i = 0; i < _ctx.lengthValue("ListRemediationsResponse.Remediations.Length"); i++) {
Remediation remediation = new Remediation();
remediation.setLastSuccessfulInvocationType(_ctx.stringValue("ListRemediationsResponse.Remediations["+ i +"].LastSuccessfulInvocationType"));
remediation.setRemediationTemplateId(_ctx.stringValue("ListRemediationsResponse.Remediations["+ i +"].RemediationTemplateId"));
remediation.setRemediationDynamicParams(_ctx.stringValue("ListRemediationsResponse.Remediations["+ i +"].RemediationDynamicParams"));
remediation.setRemediationId(_ctx.stringValue("ListRemediationsResponse.Remediations["+ i +"].RemediationId"));
remediation.setRemediationSourceType(_ctx.stringValue("ListRemediationsResponse.Remediations["+ i +"].RemediationSourceType"));
remediation.setRemediationType(_ctx.stringValue("ListRemediationsResponse.Remediations["+ i +"].RemediationType"));
remediation.setLastSuccessfulInvocationId(_ctx.stringValue("ListRemediationsResponse.Remediations["+ i +"].LastSuccessfulInvocationId"));
remediation.setAccountId(_ctx.longValue("ListRemediationsResponse.Remediations["+ i +"].AccountId"));
remediation.setInvokeType(_ctx.stringValue("ListRemediationsResponse.Remediations["+ i +"].InvokeType"));
remediation.setConfigRuleId(_ctx.stringValue("ListRemediationsResponse.Remediations["+ i +"].ConfigRuleId"));
remediation.setLastSuccessfulInvocationTime(_ctx.longValue("ListRemediationsResponse.Remediations["+ i +"].LastSuccessfulInvocationTime"));
remediation.setRemediationOriginParams(_ctx.stringValue("ListRemediationsResponse.Remediations["+ i +"].RemediationOriginParams"));
remediations.add(remediation);
}
listRemediationsResponse.setRemediations(remediations);
return listRemediationsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListResourceEvaluationResultsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListResourceEvaluationResultsResponse;
import com.aliyuncs.config.model.v20200907.ListResourceEvaluationResultsResponse.EvaluationResults;
import com.aliyuncs.config.model.v20200907.ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResult;
import com.aliyuncs.config.model.v20200907.ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResult.EvaluationResultIdentifier;
import com.aliyuncs.config.model.v20200907.ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResult.EvaluationResultIdentifier.EvaluationResultQualifier;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListResourceEvaluationResultsResponseUnmarshaller {
public static ListResourceEvaluationResultsResponse unmarshall(ListResourceEvaluationResultsResponse listResourceEvaluationResultsResponse, UnmarshallerContext _ctx) {
listResourceEvaluationResultsResponse.setRequestId(_ctx.stringValue("ListResourceEvaluationResultsResponse.RequestId"));
EvaluationResults evaluationResults = new EvaluationResults();
evaluationResults.setNextToken(_ctx.stringValue("ListResourceEvaluationResultsResponse.EvaluationResults.NextToken"));
evaluationResults.setMaxResults(_ctx.integerValue("ListResourceEvaluationResultsResponse.EvaluationResults.MaxResults"));
List<EvaluationResult> evaluationResultList = new ArrayList<EvaluationResult>();
for (int i = 0; i < _ctx.lengthValue("ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList.Length"); i++) {
EvaluationResult evaluationResult = new EvaluationResult();
evaluationResult.setRiskLevel(_ctx.integerValue("ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].RiskLevel"));
evaluationResult.setComplianceType(_ctx.stringValue("ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].ComplianceType"));
evaluationResult.setResultRecordedTimestamp(_ctx.longValue("ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].ResultRecordedTimestamp"));
evaluationResult.setAnnotation(_ctx.stringValue("ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].Annotation"));
evaluationResult.setConfigRuleInvokedTimestamp(_ctx.longValue("ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].ConfigRuleInvokedTimestamp"));
evaluationResult.setInvokingEventMessageType(_ctx.stringValue("ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].InvokingEventMessageType"));
evaluationResult.setRemediationEnabled(_ctx.booleanValue("ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].RemediationEnabled"));
evaluationResult.setEvaluationId(_ctx.stringValue("ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationId"));
evaluationResult.setLastNonCompliantRecordTimestamp(_ctx.longValue("ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].LastNonCompliantRecordTimestamp"));
EvaluationResultIdentifier evaluationResultIdentifier = new EvaluationResultIdentifier();
evaluationResultIdentifier.setOrderingTimestamp(_ctx.longValue("ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.OrderingTimestamp"));
EvaluationResultQualifier evaluationResultQualifier = new EvaluationResultQualifier();
evaluationResultQualifier.setConfigRuleArn(_ctx.stringValue("ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ConfigRuleArn"));
evaluationResultQualifier.setResourceType(_ctx.stringValue("ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ResourceType"));
evaluationResultQualifier.setConfigRuleName(_ctx.stringValue("ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ConfigRuleName"));
evaluationResultQualifier.setResourceId(_ctx.stringValue("ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ResourceId"));
evaluationResultQualifier.setConfigRuleId(_ctx.stringValue("ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ConfigRuleId"));
evaluationResultQualifier.setResourceName(_ctx.stringValue("ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.ResourceName"));
evaluationResultQualifier.setRegionId(_ctx.stringValue("ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.RegionId"));
evaluationResultQualifier.setIgnoreDate(_ctx.stringValue("ListResourceEvaluationResultsResponse.EvaluationResults.EvaluationResultList["+ i +"].EvaluationResultIdentifier.EvaluationResultQualifier.IgnoreDate"));
evaluationResultIdentifier.setEvaluationResultQualifier(evaluationResultQualifier);
evaluationResult.setEvaluationResultIdentifier(evaluationResultIdentifier);
evaluationResultList.add(evaluationResult);
}
evaluationResults.setEvaluationResultList(evaluationResultList);
listResourceEvaluationResultsResponse.setEvaluationResults(evaluationResults);
return listResourceEvaluationResultsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListResourceRelationsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListResourceRelationsResponse;
import com.aliyuncs.config.model.v20200907.ListResourceRelationsResponse.ResourceRelations;
import com.aliyuncs.config.model.v20200907.ListResourceRelationsResponse.ResourceRelations.ResourceRelationListItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListResourceRelationsResponseUnmarshaller {
public static ListResourceRelationsResponse unmarshall(ListResourceRelationsResponse listResourceRelationsResponse, UnmarshallerContext _ctx) {
listResourceRelationsResponse.setRequestId(_ctx.stringValue("ListResourceRelationsResponse.RequestId"));
ResourceRelations resourceRelations = new ResourceRelations();
resourceRelations.setNextToken(_ctx.stringValue("ListResourceRelationsResponse.ResourceRelations.NextToken"));
resourceRelations.setMaxResults(_ctx.integerValue("ListResourceRelationsResponse.ResourceRelations.MaxResults"));
resourceRelations.setTotalCount(_ctx.integerValue("ListResourceRelationsResponse.ResourceRelations.TotalCount"));
List<ResourceRelationListItem> resourceRelationList = new ArrayList<ResourceRelationListItem>();
for (int i = 0; i < _ctx.lengthValue("ListResourceRelationsResponse.ResourceRelations.ResourceRelationList.Length"); i++) {
ResourceRelationListItem resourceRelationListItem = new ResourceRelationListItem();
resourceRelationListItem.setAccountId(_ctx.longValue("ListResourceRelationsResponse.ResourceRelations.ResourceRelationList["+ i +"].AccountId"));
resourceRelationListItem.setSourceResourceType(_ctx.stringValue("ListResourceRelationsResponse.ResourceRelations.ResourceRelationList["+ i +"].SourceResourceType"));
resourceRelationListItem.setSourceResourceRegionId(_ctx.stringValue("ListResourceRelationsResponse.ResourceRelations.ResourceRelationList["+ i +"].SourceResourceRegionId"));
resourceRelationListItem.setSourceResourceId(_ctx.stringValue("ListResourceRelationsResponse.ResourceRelations.ResourceRelationList["+ i +"].SourceResourceId"));
resourceRelationListItem.setTargetResourceType(_ctx.stringValue("ListResourceRelationsResponse.ResourceRelations.ResourceRelationList["+ i +"].TargetResourceType"));
resourceRelationListItem.setTargetResourceId(_ctx.stringValue("ListResourceRelationsResponse.ResourceRelations.ResourceRelationList["+ i +"].TargetResourceId"));
resourceRelationListItem.setRelationType(_ctx.stringValue("ListResourceRelationsResponse.ResourceRelations.ResourceRelationList["+ i +"].RelationType"));
resourceRelationList.add(resourceRelationListItem);
}
resourceRelations.setResourceRelationList(resourceRelationList);
listResourceRelationsResponse.setResourceRelations(resourceRelations);
return listResourceRelationsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListResourcesByAdvancedSearchResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListResourcesByAdvancedSearchResponse;
import com.aliyuncs.config.model.v20200907.ListResourcesByAdvancedSearchResponse.QueryResults;
import com.aliyuncs.config.model.v20200907.ListResourcesByAdvancedSearchResponse.QueryResults.QueryResultList;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListResourcesByAdvancedSearchResponseUnmarshaller {
public static ListResourcesByAdvancedSearchResponse unmarshall(ListResourcesByAdvancedSearchResponse listResourcesByAdvancedSearchResponse, UnmarshallerContext _ctx) {
listResourcesByAdvancedSearchResponse.setRequestId(_ctx.stringValue("ListResourcesByAdvancedSearchResponse.RequestId"));
QueryResults queryResults = new QueryResults();
QueryResultList queryResultList = new QueryResultList();
List<String> columns = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("ListResourcesByAdvancedSearchResponse.QueryResults.QueryResultList.Columns.Length"); i++) {
columns.add(_ctx.stringValue("ListResourcesByAdvancedSearchResponse.QueryResults.QueryResultList.Columns["+ i +"]"));
}
queryResultList.setColumns(columns);
List<String> values = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("ListResourcesByAdvancedSearchResponse.QueryResults.QueryResultList.Values.Length"); i++) {
values.add(_ctx.stringValue("ListResourcesByAdvancedSearchResponse.QueryResults.QueryResultList.Values["+ i +"]"));
}
queryResultList.setValues(values);
queryResults.setQueryResultList(queryResultList);
listResourcesByAdvancedSearchResponse.setQueryResults(queryResults);
return listResourcesByAdvancedSearchResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListSupportedProductsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListSupportedProductsResponse;
import com.aliyuncs.config.model.v20200907.ListSupportedProductsResponse.Data;
import com.aliyuncs.config.model.v20200907.ListSupportedProductsResponse.Data.ResourceType;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListSupportedProductsResponseUnmarshaller {
public static ListSupportedProductsResponse unmarshall(ListSupportedProductsResponse listSupportedProductsResponse, UnmarshallerContext _ctx) {
listSupportedProductsResponse.setRequestId(_ctx.stringValue("ListSupportedProductsResponse.RequestId"));
listSupportedProductsResponse.setNextToken(_ctx.stringValue("ListSupportedProductsResponse.NextToken"));
listSupportedProductsResponse.setMaxResults(_ctx.stringValue("ListSupportedProductsResponse.MaxResults"));
List<Data> products = new ArrayList<Data>();
for (int i = 0; i < _ctx.lengthValue("ListSupportedProductsResponse.Products.Length"); i++) {
Data data = new Data();
data.setProductNameEn(_ctx.stringValue("ListSupportedProductsResponse.Products["+ i +"].ProductNameEn"));
data.setProductNameZh(_ctx.stringValue("ListSupportedProductsResponse.Products["+ i +"].ProductNameZh"));
data.setProductCode(_ctx.stringValue("ListSupportedProductsResponse.Products["+ i +"].ProductCode"));
List<ResourceType> resourceTypeList = new ArrayList<ResourceType>();
for (int j = 0; j < _ctx.lengthValue("ListSupportedProductsResponse.Products["+ i +"].ResourceTypeList.Length"); j++) {
ResourceType resourceType = new ResourceType();
resourceType.setResourceType(_ctx.stringValue("ListSupportedProductsResponse.Products["+ i +"].ResourceTypeList["+ j +"].ResourceType"));
resourceType.setTypeNameEn(_ctx.stringValue("ListSupportedProductsResponse.Products["+ i +"].ResourceTypeList["+ j +"].TypeNameEn"));
resourceType.setTypeNameZh(_ctx.stringValue("ListSupportedProductsResponse.Products["+ i +"].ResourceTypeList["+ j +"].TypeNameZh"));
resourceType.setTypePageLink(_ctx.stringValue("ListSupportedProductsResponse.Products["+ i +"].ResourceTypeList["+ j +"].TypePageLink"));
resourceTypeList.add(resourceType);
}
data.setResourceTypeList(resourceTypeList);
products.add(data);
}
listSupportedProductsResponse.setProducts(products);
return listSupportedProductsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/ListTagResourcesResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.ListTagResourcesResponse;
import com.aliyuncs.config.model.v20200907.ListTagResourcesResponse.TagResource;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListTagResourcesResponseUnmarshaller {
public static ListTagResourcesResponse unmarshall(ListTagResourcesResponse listTagResourcesResponse, UnmarshallerContext _ctx) {
listTagResourcesResponse.setRequestId(_ctx.stringValue("ListTagResourcesResponse.RequestId"));
listTagResourcesResponse.setNextToken(_ctx.stringValue("ListTagResourcesResponse.NextToken"));
List<TagResource> tagResources = new ArrayList<TagResource>();
for (int i = 0; i < _ctx.lengthValue("ListTagResourcesResponse.TagResources.Length"); i++) {
TagResource tagResource = new TagResource();
tagResource.setTagKey(_ctx.stringValue("ListTagResourcesResponse.TagResources["+ i +"].TagKey"));
tagResource.setTagValue(_ctx.stringValue("ListTagResourcesResponse.TagResources["+ i +"].TagValue"));
tagResource.setResourceId(_ctx.stringValue("ListTagResourcesResponse.TagResources["+ i +"].ResourceId"));
tagResource.setResourceType(_ctx.stringValue("ListTagResourcesResponse.TagResources["+ i +"].ResourceType"));
tagResources.add(tagResource);
}
listTagResourcesResponse.setTagResources(tagResources);
return listTagResourcesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/PutEvaluationsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.PutEvaluationsResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class PutEvaluationsResponseUnmarshaller {
public static PutEvaluationsResponse unmarshall(PutEvaluationsResponse putEvaluationsResponse, UnmarshallerContext _ctx) {
putEvaluationsResponse.setRequestId(_ctx.stringValue("PutEvaluationsResponse.RequestId"));
putEvaluationsResponse.setResult(_ctx.booleanValue("PutEvaluationsResponse.Result"));
return putEvaluationsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/RevertAggregateEvaluationResultsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.RevertAggregateEvaluationResultsResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class RevertAggregateEvaluationResultsResponseUnmarshaller {
public static RevertAggregateEvaluationResultsResponse unmarshall(RevertAggregateEvaluationResultsResponse revertAggregateEvaluationResultsResponse, UnmarshallerContext _ctx) {
revertAggregateEvaluationResultsResponse.setRequestId(_ctx.stringValue("RevertAggregateEvaluationResultsResponse.RequestId"));
return revertAggregateEvaluationResultsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/RevertEvaluationResultsResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.RevertEvaluationResultsResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class RevertEvaluationResultsResponseUnmarshaller {
public static RevertEvaluationResultsResponse unmarshall(RevertEvaluationResultsResponse revertEvaluationResultsResponse, UnmarshallerContext _ctx) {
revertEvaluationResultsResponse.setRequestId(_ctx.stringValue("RevertEvaluationResultsResponse.RequestId"));
return revertEvaluationResultsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/StartAggregateConfigRuleEvaluationResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.StartAggregateConfigRuleEvaluationResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class StartAggregateConfigRuleEvaluationResponseUnmarshaller {
public static StartAggregateConfigRuleEvaluationResponse unmarshall(StartAggregateConfigRuleEvaluationResponse startAggregateConfigRuleEvaluationResponse, UnmarshallerContext _ctx) {
startAggregateConfigRuleEvaluationResponse.setRequestId(_ctx.stringValue("StartAggregateConfigRuleEvaluationResponse.RequestId"));
startAggregateConfigRuleEvaluationResponse.setResult(_ctx.booleanValue("StartAggregateConfigRuleEvaluationResponse.Result"));
return startAggregateConfigRuleEvaluationResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/StartAggregateRemediationResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.StartAggregateRemediationResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class StartAggregateRemediationResponseUnmarshaller {
public static StartAggregateRemediationResponse unmarshall(StartAggregateRemediationResponse startAggregateRemediationResponse, UnmarshallerContext _ctx) {
startAggregateRemediationResponse.setRequestId(_ctx.stringValue("StartAggregateRemediationResponse.RequestId"));
startAggregateRemediationResponse.setData(_ctx.booleanValue("StartAggregateRemediationResponse.Data"));
return startAggregateRemediationResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/StartConfigRuleEvaluationResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.StartConfigRuleEvaluationResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class StartConfigRuleEvaluationResponseUnmarshaller {
public static StartConfigRuleEvaluationResponse unmarshall(StartConfigRuleEvaluationResponse startConfigRuleEvaluationResponse, UnmarshallerContext _ctx) {
startConfigRuleEvaluationResponse.setRequestId(_ctx.stringValue("StartConfigRuleEvaluationResponse.RequestId"));
startConfigRuleEvaluationResponse.setResult(_ctx.booleanValue("StartConfigRuleEvaluationResponse.Result"));
return startConfigRuleEvaluationResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/StartConfigurationRecorderResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.StartConfigurationRecorderResponse;
import com.aliyuncs.config.model.v20200907.StartConfigurationRecorderResponse.ConfigurationRecorder;
import com.aliyuncs.transform.UnmarshallerContext;
public class StartConfigurationRecorderResponseUnmarshaller {
public static StartConfigurationRecorderResponse unmarshall(StartConfigurationRecorderResponse startConfigurationRecorderResponse, UnmarshallerContext _ctx) {
startConfigurationRecorderResponse.setRequestId(_ctx.stringValue("StartConfigurationRecorderResponse.RequestId"));
ConfigurationRecorder configurationRecorder = new ConfigurationRecorder();
configurationRecorder.setConfigurationRecorderStatus(_ctx.stringValue("StartConfigurationRecorderResponse.ConfigurationRecorder.ConfigurationRecorderStatus"));
List<String> resourceTypes = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("StartConfigurationRecorderResponse.ConfigurationRecorder.ResourceTypes.Length"); i++) {
resourceTypes.add(_ctx.stringValue("StartConfigurationRecorderResponse.ConfigurationRecorder.ResourceTypes["+ i +"]"));
}
configurationRecorder.setResourceTypes(resourceTypes);
startConfigurationRecorderResponse.setConfigurationRecorder(configurationRecorder);
return startConfigurationRecorderResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/StartRemediationResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.StartRemediationResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class StartRemediationResponseUnmarshaller {
public static StartRemediationResponse unmarshall(StartRemediationResponse startRemediationResponse, UnmarshallerContext _ctx) {
startRemediationResponse.setRequestId(_ctx.stringValue("StartRemediationResponse.RequestId"));
startRemediationResponse.setData(_ctx.booleanValue("StartRemediationResponse.Data"));
return startRemediationResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/StopConfigurationRecorderResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.StopConfigurationRecorderResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class StopConfigurationRecorderResponseUnmarshaller {
public static StopConfigurationRecorderResponse unmarshall(StopConfigurationRecorderResponse stopConfigurationRecorderResponse, UnmarshallerContext _ctx) {
stopConfigurationRecorderResponse.setRequestId(_ctx.stringValue("StopConfigurationRecorderResponse.RequestId"));
stopConfigurationRecorderResponse.setStopConfigurationRecorderResult(_ctx.booleanValue("StopConfigurationRecorderResponse.StopConfigurationRecorderResult"));
return stopConfigurationRecorderResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/TagResourcesResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.TagResourcesResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class TagResourcesResponseUnmarshaller {
public static TagResourcesResponse unmarshall(TagResourcesResponse tagResourcesResponse, UnmarshallerContext _ctx) {
tagResourcesResponse.setRequestId(_ctx.stringValue("TagResourcesResponse.RequestId"));
return tagResourcesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/UntagResourcesResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.UntagResourcesResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UntagResourcesResponseUnmarshaller {
public static UntagResourcesResponse unmarshall(UntagResourcesResponse untagResourcesResponse, UnmarshallerContext _ctx) {
untagResourcesResponse.setRequestId(_ctx.stringValue("UntagResourcesResponse.RequestId"));
return untagResourcesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/UpdateAggregateCompliancePackResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.UpdateAggregateCompliancePackResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateAggregateCompliancePackResponseUnmarshaller {
public static UpdateAggregateCompliancePackResponse unmarshall(UpdateAggregateCompliancePackResponse updateAggregateCompliancePackResponse, UnmarshallerContext _ctx) {
updateAggregateCompliancePackResponse.setRequestId(_ctx.stringValue("UpdateAggregateCompliancePackResponse.RequestId"));
updateAggregateCompliancePackResponse.setCompliancePackId(_ctx.stringValue("UpdateAggregateCompliancePackResponse.CompliancePackId"));
return updateAggregateCompliancePackResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/UpdateAggregateConfigDeliveryChannelResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.UpdateAggregateConfigDeliveryChannelResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateAggregateConfigDeliveryChannelResponseUnmarshaller {
public static UpdateAggregateConfigDeliveryChannelResponse unmarshall(UpdateAggregateConfigDeliveryChannelResponse updateAggregateConfigDeliveryChannelResponse, UnmarshallerContext _ctx) {
updateAggregateConfigDeliveryChannelResponse.setRequestId(_ctx.stringValue("UpdateAggregateConfigDeliveryChannelResponse.RequestId"));
updateAggregateConfigDeliveryChannelResponse.setDeliveryChannelId(_ctx.stringValue("UpdateAggregateConfigDeliveryChannelResponse.DeliveryChannelId"));
return updateAggregateConfigDeliveryChannelResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/UpdateAggregateConfigRuleResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.UpdateAggregateConfigRuleResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateAggregateConfigRuleResponseUnmarshaller {
public static UpdateAggregateConfigRuleResponse unmarshall(UpdateAggregateConfigRuleResponse updateAggregateConfigRuleResponse, UnmarshallerContext _ctx) {
updateAggregateConfigRuleResponse.setRequestId(_ctx.stringValue("UpdateAggregateConfigRuleResponse.RequestId"));
updateAggregateConfigRuleResponse.setConfigRuleId(_ctx.stringValue("UpdateAggregateConfigRuleResponse.ConfigRuleId"));
return updateAggregateConfigRuleResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/UpdateAggregateRemediationResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.UpdateAggregateRemediationResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateAggregateRemediationResponseUnmarshaller {
public static UpdateAggregateRemediationResponse unmarshall(UpdateAggregateRemediationResponse updateAggregateRemediationResponse, UnmarshallerContext _ctx) {
updateAggregateRemediationResponse.setRequestId(_ctx.stringValue("UpdateAggregateRemediationResponse.RequestId"));
updateAggregateRemediationResponse.setRemediationId(_ctx.stringValue("UpdateAggregateRemediationResponse.RemediationId"));
return updateAggregateRemediationResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/UpdateAggregatorResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.UpdateAggregatorResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateAggregatorResponseUnmarshaller {
public static UpdateAggregatorResponse unmarshall(UpdateAggregatorResponse updateAggregatorResponse, UnmarshallerContext _ctx) {
updateAggregatorResponse.setRequestId(_ctx.stringValue("UpdateAggregatorResponse.RequestId"));
updateAggregatorResponse.setAggregatorId(_ctx.stringValue("UpdateAggregatorResponse.AggregatorId"));
return updateAggregatorResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/UpdateCompliancePackResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.UpdateCompliancePackResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateCompliancePackResponseUnmarshaller {
public static UpdateCompliancePackResponse unmarshall(UpdateCompliancePackResponse updateCompliancePackResponse, UnmarshallerContext _ctx) {
updateCompliancePackResponse.setRequestId(_ctx.stringValue("UpdateCompliancePackResponse.RequestId"));
updateCompliancePackResponse.setCompliancePackId(_ctx.stringValue("UpdateCompliancePackResponse.CompliancePackId"));
return updateCompliancePackResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/UpdateConfigDeliveryChannelResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.UpdateConfigDeliveryChannelResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateConfigDeliveryChannelResponseUnmarshaller {
public static UpdateConfigDeliveryChannelResponse unmarshall(UpdateConfigDeliveryChannelResponse updateConfigDeliveryChannelResponse, UnmarshallerContext _ctx) {
updateConfigDeliveryChannelResponse.setRequestId(_ctx.stringValue("UpdateConfigDeliveryChannelResponse.RequestId"));
updateConfigDeliveryChannelResponse.setDeliveryChannelId(_ctx.stringValue("UpdateConfigDeliveryChannelResponse.DeliveryChannelId"));
return updateConfigDeliveryChannelResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/UpdateConfigRuleResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.UpdateConfigRuleResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateConfigRuleResponseUnmarshaller {
public static UpdateConfigRuleResponse unmarshall(UpdateConfigRuleResponse updateConfigRuleResponse, UnmarshallerContext _ctx) {
updateConfigRuleResponse.setRequestId(_ctx.stringValue("UpdateConfigRuleResponse.RequestId"));
updateConfigRuleResponse.setConfigRuleId(_ctx.stringValue("UpdateConfigRuleResponse.ConfigRuleId"));
return updateConfigRuleResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/UpdateConfigurationRecorderResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.config.model.v20200907.UpdateConfigurationRecorderResponse;
import com.aliyuncs.config.model.v20200907.UpdateConfigurationRecorderResponse.ConfigurationRecorder;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateConfigurationRecorderResponseUnmarshaller {
public static UpdateConfigurationRecorderResponse unmarshall(UpdateConfigurationRecorderResponse updateConfigurationRecorderResponse, UnmarshallerContext _ctx) {
updateConfigurationRecorderResponse.setRequestId(_ctx.stringValue("UpdateConfigurationRecorderResponse.RequestId"));
ConfigurationRecorder configurationRecorder = new ConfigurationRecorder();
configurationRecorder.setConfigurationRecorderStatus(_ctx.stringValue("UpdateConfigurationRecorderResponse.ConfigurationRecorder.ConfigurationRecorderStatus"));
List<String> resourceTypes = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("UpdateConfigurationRecorderResponse.ConfigurationRecorder.ResourceTypes.Length"); i++) {
resourceTypes.add(_ctx.stringValue("UpdateConfigurationRecorderResponse.ConfigurationRecorder.ResourceTypes["+ i +"]"));
}
configurationRecorder.setResourceTypes(resourceTypes);
updateConfigurationRecorderResponse.setConfigurationRecorder(configurationRecorder);
return updateConfigurationRecorderResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/UpdateDeliveryChannelResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.UpdateDeliveryChannelResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateDeliveryChannelResponseUnmarshaller {
public static UpdateDeliveryChannelResponse unmarshall(UpdateDeliveryChannelResponse updateDeliveryChannelResponse, UnmarshallerContext _ctx) {
updateDeliveryChannelResponse.setRequestId(_ctx.stringValue("UpdateDeliveryChannelResponse.RequestId"));
updateDeliveryChannelResponse.setDeliveryChannelId(_ctx.stringValue("UpdateDeliveryChannelResponse.DeliveryChannelId"));
return updateDeliveryChannelResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/UpdateIntegratedServiceStatusResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.UpdateIntegratedServiceStatusResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateIntegratedServiceStatusResponseUnmarshaller {
public static UpdateIntegratedServiceStatusResponse unmarshall(UpdateIntegratedServiceStatusResponse updateIntegratedServiceStatusResponse, UnmarshallerContext _ctx) {
updateIntegratedServiceStatusResponse.setRequestId(_ctx.stringValue("UpdateIntegratedServiceStatusResponse.RequestId"));
return updateIntegratedServiceStatusResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform
|
java-sources/com/aliyun/aliyun-java-sdk-config/2.2.18/com/aliyuncs/config/transform/v20200907/UpdateRemediationResponseUnmarshaller.java
|
/*
* 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.config.transform.v20200907;
import com.aliyuncs.config.model.v20200907.UpdateRemediationResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class UpdateRemediationResponseUnmarshaller {
public static UpdateRemediationResponse unmarshall(UpdateRemediationResponse updateRemediationResponse, UnmarshallerContext _ctx) {
updateRemediationResponse.setRequestId(_ctx.stringValue("UpdateRemediationResponse.RequestId"));
updateRemediationResponse.setData(_ctx.stringValue("UpdateRemediationResponse.Data"));
updateRemediationResponse.setRemediationId(_ctx.stringValue("UpdateRemediationResponse.RemediationId"));
return updateRemediationResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-console-bench/1.0.1/com/aliyun/workbench/sdk
|
java-sources/com/aliyun/aliyun-java-sdk-console-bench/1.0.1/com/aliyun/workbench/sdk/core/ConsoleAcsClient.java
|
package com.aliyun.workbench.sdk.core;
import com.aliyuncs.*;
import com.aliyuncs.auth.*;
import com.aliyuncs.endpoint.DefaultEndpointResolver;
import com.aliyuncs.endpoint.EndpointResolver;
import com.aliyuncs.endpoint.ResolveEndpointRequest;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.exceptions.ErrorCodeConstant;
import com.aliyuncs.exceptions.ErrorMessageConstant;
import com.aliyuncs.exceptions.ServerException;
import com.aliyuncs.http.*;
import com.aliyuncs.profile.DefaultProfile;
import com.aliyuncs.profile.IClientProfile;
import com.aliyuncs.reader.Reader;
import com.aliyuncs.reader.ReaderFactory;
import com.aliyuncs.regions.ProductDomain;
import com.aliyuncs.transform.UnmarshallerContext;
import com.aliyuncs.unmarshaller.Unmarshaller;
import com.aliyuncs.unmarshaller.UnmarshallerFactory;
import com.aliyuncs.utils.*;
import com.google.gson.Gson;
import io.opentracing.Span;
import io.opentracing.Tracer;
import io.opentracing.propagation.Format;
import io.opentracing.tag.Tags;
import io.opentracing.util.GlobalTracer;
import org.slf4j.Logger;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Field;
import java.net.SocketTimeoutException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class ConsoleAcsClient implements IAcsClient {
/*
Now maxRetryNumber and autoRetry has no effect.
*/
private int maxRetryNumber = 3;
private boolean autoRetry = true;
private IClientProfile clientProfile = null;
private AlibabaCloudCredentialsProvider credentialsProvider;
private DefaultCredentialsProvider defaultCredentialsProvider;
private String strToSign;
private String endpoint;
private HashMap<String, String> queryParam = new HashMap<String, String>();
private IHttpClient httpClient;
private EndpointResolver endpointResolver;
private static final String SIGNATURE_BEGIN = "string to sign is:";
private final UserAgentConfig userAgentConfig = new UserAgentConfig();
private String pathPattern = "/api/acs/openapi";
public ConsoleAcsClient(String regionId) throws ClientException {
this.clientProfile = DefaultProfile.getProfile(regionId);
this.httpClient = HttpClientFactory.buildClient(this.clientProfile);
this.defaultCredentialsProvider = new DefaultCredentialsProvider();
this.endpointResolver = new DefaultEndpointResolver(this);
this.appendUserAgent("HTTPClient", this.httpClient.getClass().getSimpleName());
}
public ConsoleAcsClient(IClientProfile profile) {
this(profile, new StaticCredentialsProvider(profile));
}
public ConsoleAcsClient(IClientProfile profile, AlibabaCloudCredentials credentials) {
this(profile, new StaticCredentialsProvider(credentials));
}
public ConsoleAcsClient(IClientProfile profile, AlibabaCloudCredentialsProvider credentialsProvider) {
this.clientProfile = profile;
this.credentialsProvider = credentialsProvider;
this.clientProfile.setCredentialsProvider(this.credentialsProvider);
this.httpClient = HttpClientFactory.buildClient(this.clientProfile);
this.endpointResolver = new DefaultEndpointResolver(this, profile);
this.appendUserAgent("HTTPClient", this.httpClient.getClass().getSimpleName());
}
@Override
public <T extends AcsResponse> HttpResponse doAction(AcsRequest<T> request)
throws ClientException, ServerException {
return this.doAction(request, autoRetry, maxRetryNumber, this.clientProfile);
}
@Override
public <T extends AcsResponse> HttpResponse doAction(AcsRequest<T> request, boolean autoRetry, int maxRetryCounts)
throws ClientException, ServerException {
return this.doAction(request, autoRetry, maxRetryCounts, this.clientProfile);
}
@Override
public <T extends AcsResponse> HttpResponse doAction(AcsRequest<T> request, IClientProfile profile)
throws ClientException, ServerException {
return this.doAction(request, this.autoRetry, this.maxRetryNumber, profile);
}
@Override
public <T extends AcsResponse> HttpResponse doAction(AcsRequest<T> request, String regionId, Credential credential)
throws ClientException, ServerException {
Signer signer = Signer.getSigner(new LegacyCredentials(credential));
FormatType format = null;
if (null == request.getSysRegionId()) {
request.setSysRegionId(regionId);
}
return doAction(request, autoRetry, maxRetryNumber, regionId, new LegacyCredentials(credential), signer,
format);
}
@Override
public <T extends AcsResponse> T getAcsResponse(AcsRequest<T> request) throws ServerException, ClientException {
HttpResponse baseResponse = this.doAction(request);
return parseAcsResponse(request, baseResponse);
}
@Override
public <T extends AcsResponse> T getAcsResponse(AcsRequest<T> request, boolean autoRetry, int maxRetryCounts)
throws ServerException, ClientException {
HttpResponse baseResponse = this.doAction(request, autoRetry, maxRetryCounts);
return parseAcsResponse(request, baseResponse);
}
@Override
public <T extends AcsResponse> T getAcsResponse(AcsRequest<T> request, IClientProfile profile)
throws ServerException, ClientException {
HttpResponse baseResponse = this.doAction(request, profile);
return parseAcsResponse(request, baseResponse);
}
@Override
public <T extends AcsResponse> T getAcsResponse(AcsRequest<T> request, String regionId, Credential credential)
throws ServerException, ClientException {
HttpResponse baseResponse = this.doAction(request, regionId, credential);
return parseAcsResponse(request, baseResponse);
}
@Override
public <T extends AcsResponse> T getAcsResponse(AcsRequest<T> request, String regionId)
throws ServerException, ClientException {
if (null == request.getSysRegionId()) {
request.setSysRegionId(regionId);
}
HttpResponse baseResponse = this.doAction(request);
return parseAcsResponse(request, baseResponse);
}
@SuppressWarnings("unchecked")
@Override
public CommonResponse getCommonResponse(CommonRequest request) throws ServerException, ClientException {
HttpResponse baseResponse = this.doAction(request.buildRequest());
if (baseResponse.isSuccess()) {
String stringContent = baseResponse.getHttpContentString();
CommonResponse response = new CommonResponse();
response.setData(stringContent);
response.setHttpStatus(baseResponse.getStatus());
response.setHttpResponse(baseResponse);
return response;
} else {
FormatType format = baseResponse.getHttpContentType();
AcsError error = readError(baseResponse, format);
if (500 <= baseResponse.getStatus()) {
throw new ServerException(error.getErrorCode(), error.getErrorMessage(), error.getRequestId());
} else {
throw new ClientException(error.getErrorCode(), error.getErrorMessage(), error.getRequestId());
}
}
}
@Override
public <T extends AcsResponse> HttpResponse doAction(AcsRequest<T> request, boolean autoRetry, int maxRetryCounts,
IClientProfile profile) throws ClientException, ServerException {
if (null == profile) {
throw new ClientException("SDK.InvalidProfile", "No active profile found.");
}
boolean retry = autoRetry;
int retryNumber = maxRetryCounts;
String region = profile.getRegionId();
if (null == request.getSysRegionId()) {
request.setSysRegionId(region);
}
AlibabaCloudCredentials credentials;
if (null == credentialsProvider) {
credentials = this.defaultCredentialsProvider.getCredentials();
} else {
credentials = this.credentialsProvider.getCredentials();
}
Signer signer = Signer.getSigner(credentials);
FormatType format = profile.getFormat();
return this.doAction(request, retry, retryNumber, request.getSysRegionId(), credentials, signer, format);
}
private <T extends AcsResponse> T parseAcsResponse(AcsRequest<T> request, HttpResponse baseResponse)
throws ServerException, ClientException {
FormatType format = baseResponse.getHttpContentType();
if (FormatType.JSON != format && FormatType.XML != format) {
throw new ClientException(String.format("Server response has a bad format type: %s;\nThe original return is: %s;\n" +
"The original header is: %s;",
format, baseResponse.getHttpContentString(), baseResponse.getSysHeaders().toString()));
}
if (baseResponse.isSuccess()) {
return readResponse(request.getResponseClass(), baseResponse, format);
} else {
AcsError error = readError(baseResponse, format);
if (500 <= baseResponse.getStatus()) {
throw new ServerException(error.getErrorCode(), error.getErrorMessage(), error.getRequestId());
} else if (400 == baseResponse.getStatus() && ("IncompleteSignature".equals(error.getErrorCode())
|| "SignatureDoesNotMatch".equals(error.getErrorCode()))) {
String errorMessage = error.getErrorMessage();
Pattern startPattern = Pattern.compile(SIGNATURE_BEGIN);
Matcher startMatcher = startPattern.matcher(errorMessage);
if (startMatcher.find()) {
int start = startMatcher.end();
String errorStrToSign = errorMessage.substring(start);
if (this.strToSign.equals(errorStrToSign)) {
throw new ClientException("SDK.InvalidAccessKeySecret",
"Specified Access Key Secret is not valid.", error.getRequestId());
}
}
}
throw new ClientException(error.getErrorCode(), error.getErrorMessage(), error.getRequestId(), error.getErrorDescription());
}
}
/**
* @Deprecated : Use other overload methods
*/
@Deprecated
public <T extends AcsResponse> HttpResponse doAction(AcsRequest<T> request, boolean autoRetry, int maxRetryNumber,
String regionId, Credential credential, Signer signer, FormatType format)
throws ClientException, ServerException {
return doAction(request, autoRetry, maxRetryNumber, regionId, new LegacyCredentials(credential), signer,
format);
}
public ProductDomain getDomain(AcsRequest request, String regionId)
throws ClientException {
ProductDomain domain = null;
if (request.getSysProductDomain() != null) {
domain = request.getSysProductDomain();
} else {
ResolveEndpointRequest resolveEndpointRequest = new ResolveEndpointRequest(regionId,
request.getSysProduct(), request.getSysLocationProduct(), request.getSysEndpointType());
resolveEndpointRequest.setProductEndpointMap(request.productEndpointMap);
resolveEndpointRequest.setProductEndpointRegional(request.productEndpointRegional);
resolveEndpointRequest.setProductNetwork(request.productNetwork);
resolveEndpointRequest.setProductSuffix(request.productSuffix);
String endpoint = endpointResolver.resolve(resolveEndpointRequest);
domain = new ProductDomain(request.getSysProduct(), endpoint);
if (endpoint.endsWith("endpoint-test.exception.com")) {
// For endpoint testability, if the endpoint is xxxx.endpoint-test.special.com
// throw a client exception with this endpoint
throw new ClientException(ErrorCodeConstant.SDK_ENDPOINT_TESTABILITY, endpoint);
}
}
return domain;
}
private <T extends AcsResponse> HttpResponse doAction(AcsRequest<T> request, boolean autoRetry, int maxRetryNumber,
String regionId, AlibabaCloudCredentials credentials, Signer signer, FormatType format)
throws ClientException, ServerException {
if (!GlobalTracer.isRegistered() || clientProfile.isCloseTrace()) {
return doRealAction(request, autoRetry, maxRetryNumber, regionId, credentials, signer, format);
}
Tracer tracer = GlobalTracer.get();
Span span = tracer.buildSpan(request.getSysUrl())
.withTag(Tags.COMPONENT.getKey(), "aliyunApi")
.withTag("actionName", request.getSysActionName())
.withTag("queryParam", MapUtils.getMapString(request.getQueryParameters()))
.start();
tracer.inject(span.context(), Format.Builtin.HTTP_HEADERS, new HttpHeadersInjectAdapter(request));
try {
HttpResponse response = doRealAction(request, autoRetry, maxRetryNumber, regionId, credentials, signer, format);
span.setTag("status", response.getStatus());
span.setTag("ReasonPhrase", response.getReasonPhrase());
return response;
} catch (ClientException ex) {
TraceUtils.onError(ex, span);
throw ex;
} finally {
span.finish();
}
}
private <T extends AcsResponse> HttpResponse doRealAction(AcsRequest<T> request, boolean autoRetry, int maxRetryNumber,
String regionId, AlibabaCloudCredentials credentials, Signer signer, FormatType format)
throws ClientException, ServerException {
doActionWithProxy(request.getSysProtocol(), System.getenv("HTTPS_PROXY"), System.getenv("HTTP_PROXY"));
doActionWithIgnoreSSL(request, X509TrustAll.ignoreSSLCerts);
Logger logger = clientProfile.getLogger();
String startTime = "";
String timeCost = "";
HttpResponse response = null;
String errorMessage = "";
try {
FormatType requestFormatType = request.getSysAcceptFormat();
if (null != requestFormatType) {
format = requestFormatType;
}
ProductDomain domain;
if (null != this.endpoint) {
domain = new ProductDomain("", this.endpoint);
} else {
domain = getDomain(request, regionId);
}
if (request.getSysProtocol() == null) {
request.setSysProtocol(this.clientProfile.getHttpClientConfig().getProtocolType());
}
request.putHeaderParameter("User-Agent",
UserAgentConfig.resolve(request.getSysUserAgentConfig(), this.userAgentConfig));
request.putHeaderParameter("x-acs-version", request.getSysVersion());
if (null != request.getSysActionName()) {
request.putHeaderParameter("x-acs-action", request.getSysActionName());
}
try {
HttpRequest httpRequest;
if (request instanceof RoaAcsRequest) {
httpRequest = request.signRequest(signer, credentials, format, domain);
} else {
httpRequest = signRequest(signer, credentials, format, domain, request);
}
HttpUtil.debugHttpRequest(request);
startTime = LogUtils.localeNow();
long start = System.nanoTime();
response = this.httpClient.syncInvoke(httpRequest);
long end = System.nanoTime();
timeCost = TimeUnit.NANOSECONDS.toMillis(end - start) + "ms";
HttpUtil.debugHttpResponse(response);
return response;
} catch (SocketTimeoutException exp) {
errorMessage = exp.getMessage();
throw new ClientException("SDK.ReadTimeout",
"SocketTimeoutException has occurred on a socket read or accept.The url is " +
request.getSysUrl(), exp);
} catch (IOException exp) {
errorMessage = exp.getMessage();
throw new ClientException("SDK.ServerUnreachable",
"Server unreachable: connection " + request.getSysUrl() + " failed", exp);
} catch (NoSuchFieldException e) {
throw new ClientException(e);
} catch (IllegalAccessException e) {
throw new ClientException(e);
}
} catch (InvalidKeyException exp) {
errorMessage = exp.getMessage();
throw new ClientException("SDK.InvalidAccessSecret", "Specified access secret is not valid.", exp);
} catch (NoSuchAlgorithmException exp) {
errorMessage = exp.getMessage();
throw new ClientException("SDK.InvalidMD5Algorithm", "MD5 hash is not supported by client side.", exp);
} finally {
if (null != logger) {
try {
LogUtils.LogUnit logUnit = LogUtils.createLogUnit(request, response);
logUnit.setStartTime(startTime);
logUnit.setCost(timeCost);
logUnit.setError(errorMessage);
String logContent = LogUtils.fillContent(clientProfile.getLogFormat(), logUnit);
logger.info(logContent);
} catch (Throwable e) {
e.printStackTrace();
}
}
}
}
private <T extends AcsResponse> HttpRequest signRequest(Signer signer, AlibabaCloudCredentials credentials, FormatType format, ProductDomain domain, AcsRequest<T> rpcAcsRequest) throws UnsupportedEncodingException, IllegalAccessException, NoSuchFieldException {
Map<String, String> map = new HashMap<String, String>(rpcAcsRequest.getSysQueryParameters());
map.put("RegionId", rpcAcsRequest.getSysRegionId());
Map<String, String> imutableMap = new HashMap<String, String>();
imutableMap.put("Product", rpcAcsRequest.getSysProduct());
imutableMap.put("Action", map.remove("Action"));
imutableMap.put("Version", map.remove("Version"));
imutableMap.put("Format", map.remove("Format"));
imutableMap.put("Params", new Gson().toJson(map));
String endpointRegionId = rpcAcsRequest.getSysRegionId() != null ? rpcAcsRequest.getSysRegionId()
: this.clientProfile.getRegionId();
imutableMap.put("RegionId", endpointRegionId);
if (null != signer && null != credentials) {
String accessKeyId = credentials.getAccessKeyId();
String accessSecret = credentials.getAccessKeySecret();
if (credentials instanceof BasicSessionCredentials) {
String sessionToken = ((BasicSessionCredentials) credentials).getSessionToken();
if (null != sessionToken) {
imutableMap.put("SecurityToken", sessionToken);
}
}
if (credentials instanceof BearerTokenCredentials) {
String bearerToken = ((BearerTokenCredentials) credentials).getBearerToken();
if (null != ((BearerTokenCredentials) credentials).getBearerToken()) {
imutableMap.put("BearerToken", bearerToken);
}
}
imutableMap = refreshSignParameters(imutableMap, signer, accessKeyId, format);
Map<String, String> paramsToSign = new HashMap<String, String>(imutableMap);
Map<String, String> bodyParams = rpcAcsRequest.getSysBodyParameters();
if (bodyParams != null && !bodyParams.isEmpty()) {
byte[] data;
if (FormatType.JSON == rpcAcsRequest.getHttpContentType()) {
data = ParameterHelper.getJsonData(bodyParams);
} else if (FormatType.XML == rpcAcsRequest.getHttpContentType()) {
data = ParameterHelper.getXmlData(bodyParams);
} else {
// For contentType RAW and Form, the actual data format will be form
data = ParameterHelper.getFormData(bodyParams);
}
rpcAcsRequest.setHttpContent(data, "UTF-8", null);
paramsToSign.putAll(bodyParams);
}
String strToSign = composeStringToSign(rpcAcsRequest.getSysMethod(), paramsToSign);
String signature;
if (credentials instanceof KeyPairCredentials) {
signature = signer.signString(strToSign, credentials);
} else {
signature = signer.signString(strToSign, accessSecret + "&");
}
imutableMap.put("Signature", signature);
}
imutableMap.putAll(this.queryParam);
String realUrl = composeUrl(domain.getDomainName(), imutableMap, rpcAcsRequest);
Field url = HttpMessage.class.getDeclaredField("url");
url.setAccessible(true);
url.set(rpcAcsRequest, realUrl);
return rpcAcsRequest;
}
public String composeUrl(String endpoint, Map<String, String> queries, AcsRequest request) throws UnsupportedEncodingException {
Map<String, String> mapQueries = queries;
StringBuilder urlBuilder = new StringBuilder("");
urlBuilder.append(request.getSysProtocol().toString());
urlBuilder.append("://").append(endpoint);
if (-1 == urlBuilder.indexOf("?")) {
urlBuilder.append(this.pathPattern);
urlBuilder.append("?");
}
String query = AcsRequest.concatQueryString(mapQueries);
return urlBuilder.append(query).toString();
}
public String composeStringToSign(MethodType method, Map<String, String> queries) {
String[] sortedKeys = queries.keySet().toArray(new String[]{});
Arrays.sort(sortedKeys);
StringBuilder canonicalizedQueryString = new StringBuilder();
try {
for (String key : sortedKeys) {
canonicalizedQueryString.append("&")
.append(AcsURLEncoder.percentEncode(key)).append("=")
.append(AcsURLEncoder.percentEncode(queries.get(key)));
}
StringBuilder stringToSign = new StringBuilder();
stringToSign.append(method.toString());
stringToSign.append("&");
stringToSign.append(AcsURLEncoder.percentEncode("/"));
stringToSign.append("&");
stringToSign.append(AcsURLEncoder.percentEncode(
canonicalizedQueryString.toString().substring(1)));
return stringToSign.toString();
} catch (UnsupportedEncodingException exp) {
throw new RuntimeException("UTF-8 encoding is not supported.");
}
}
public Map<String, String> refreshSignParameters(Map<String, String> parameters,
Signer signer, String accessKeyId, FormatType format) {
Map<String, String> immutableMap = new HashMap<String, String>(parameters);
immutableMap.put("Timestamp", ParameterHelper.getISO8601Time(new Date()));
immutableMap.put("SignatureMethod", signer.getSignerName());
immutableMap.put("SignatureVersion", signer.getSignerVersion());
immutableMap.put("SignatureNonce", ParameterHelper.getUniqueNonce());
immutableMap.put("AccessKeyId", accessKeyId);
if (null != format) {
immutableMap.put("Format", format.toString());
}
if (signer.getSignerType() != null) {
immutableMap.put("SignatureType", signer.getSignerType());
}
return immutableMap;
}
/**
* 2019-01-03 change access control from private to protected, then subClass can
* override it and rewrite httpResponse processing
*/
protected <T extends AcsResponse> T readResponse(Class<T> clasz, HttpResponse httpResponse, FormatType format)
throws ClientException {
// new version response contains "@XmlRootElement" annotation
if (clasz.isAnnotationPresent(XmlRootElement.class)
&& !clientProfile.getHttpClientConfig().isCompatibleMode()) {
Unmarshaller unmarshaller = UnmarshallerFactory.getUnmarshaller(format);
return unmarshaller.unmarshal(clasz, httpResponse.getHttpContentString());
} else {
Reader reader = ReaderFactory.createInstance(format);
UnmarshallerContext context = new UnmarshallerContext();
T response = null;
String stringContent = httpResponse.getHttpContentString();
if (stringContent == null) {
throw new ClientException(ErrorCodeConstant.SDK_INVALID_SERVER_RESPONSE,
ErrorMessageConstant.SERVER_RESPONSE_HTTP_BODY_EMPTY);
}
try {
response = clasz.newInstance();
} catch (Exception e) {
throw new ClientException("SDK.InvalidResponseClass",
"Unable to allocate " + clasz.getName() + " class");
}
String responseEndpoint = clasz.getName().substring(clasz.getName().lastIndexOf(".") + 1);
if (response.checkShowJsonItemName()) {
context.setResponseMap(reader.read(stringContent, responseEndpoint));
} else {
context.setResponseMap(reader.readForHideArrayItem(stringContent, responseEndpoint));
}
context.setHttpResponse(httpResponse);
response.getInstance(context);
return response;
}
}
private AcsError readError(HttpResponse httpResponse, FormatType format) throws ClientException {
AcsError error = new AcsError();
String responseEndpoint = "Error";
Reader reader = ReaderFactory.createInstance(format);
UnmarshallerContext context = new UnmarshallerContext();
String stringContent = httpResponse.getHttpContentString();
if (stringContent == null) {
error.setErrorCode("(null)");
error.setErrorMessage("(null)");
error.setRequestId("(null)");
error.setStatusCode(httpResponse.getStatus());
return error;
} else {
context.setResponseMap(reader.read(stringContent, responseEndpoint));
return error.getInstance(context);
}
}
/**
* Compatible with previous versions of proxy Settings
*/
public void doActionWithProxy(ProtocolType protocolType, String httpsProxy, String httpProxy) {
HttpClientConfig config = this.clientProfile.getHttpClientConfig();
if (protocolType == ProtocolType.HTTP && httpProxy != null) {
config.setHttpProxy(httpProxy);
return;
}
if (protocolType == ProtocolType.HTTPS && httpsProxy != null) {
config.setHttpsProxy(httpsProxy);
return;
}
}
/**
* Compatible with previous versions of SSL Settings
*/
public void doActionWithIgnoreSSL(AcsRequest request, boolean isIgnore) {
if (isIgnore) {
request.setIgnoreSSLCerts(true);
}
}
@Deprecated
public boolean isAutoRetry() {
return autoRetry;
}
@Deprecated
public void setAutoRetry(boolean autoRetry) {
this.autoRetry = autoRetry;
}
@Deprecated
public int getMaxRetryNumber() {
return maxRetryNumber;
}
@Deprecated
public void setMaxRetryNumber(int maxRetryNumber) {
this.maxRetryNumber = maxRetryNumber;
}
@Override
public void restoreSSLCertificate() {
this.httpClient.restoreSSLCertificate();
}
@Override
public void ignoreSSLCertificate() {
this.httpClient.ignoreSSLCertificate();
}
public void setEndpointResolver(EndpointResolver resolver) {
endpointResolver = resolver;
}
@Override
public void shutdown() {
if (!this.httpClient.isSingleton()) {
IOUtils.closeQuietly(this.httpClient);
this.httpClient = null;
}
}
public DefaultProfile getProfile() {
return (DefaultProfile) clientProfile;
}
public void appendUserAgent(String key, String value) {
this.userAgentConfig.append(key, value);
}
public UserAgentConfig getUserAgentConfig() {
return userAgentConfig;
}
public IHttpClient getHttpClient() {
return httpClient;
}
public void setHttpClient(IHttpClient httpClient) {
this.httpClient = httpClient;
}
public String getEndpoint() {
return endpoint;
}
public void setEndpoint(String endpoint) {
this.endpoint = endpoint;
}
public void addQueryParam(String key, String value) {
this.queryParam.put(key, value);
}
public String deleteQueryParam(String key) {
return this.queryParam.remove(key);
}
public String getPathPattern() {
return pathPattern;
}
public void setPathPattern(String pathPattern) {
this.pathPattern = pathPattern;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/AddCopyrightFilesRequest.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class AddCopyrightFilesRequest extends RpcAcsRequest<AddCopyrightFilesResponse> {
private String extInfo;
private String copyrightOwnersList;
private String bizType;
private String contactInfo;
private String files;
private String swtype;
public AddCopyrightFilesRequest() {
super("Copyright", "2019-01-23", "AddCopyrightFiles", "swcopyright");
setMethod(MethodType.POST);
}
public String getExtInfo() {
return this.extInfo;
}
public void setExtInfo(String extInfo) {
this.extInfo = extInfo;
if(extInfo != null){
putBodyParameter("ExtInfo", extInfo);
}
}
public String getCopyrightOwnersList() {
return this.copyrightOwnersList;
}
public void setCopyrightOwnersList(String copyrightOwnersList) {
this.copyrightOwnersList = copyrightOwnersList;
if(copyrightOwnersList != null){
putBodyParameter("CopyrightOwnersList", copyrightOwnersList);
}
}
public String getBizType() {
return this.bizType;
}
public void setBizType(String bizType) {
this.bizType = bizType;
if(bizType != null){
putBodyParameter("BizType", bizType);
}
}
public String getContactInfo() {
return this.contactInfo;
}
public void setContactInfo(String contactInfo) {
this.contactInfo = contactInfo;
if(contactInfo != null){
putBodyParameter("ContactInfo", contactInfo);
}
}
public String getFiles() {
return this.files;
}
public void setFiles(String files) {
this.files = files;
if(files != null){
putBodyParameter("Files", files);
}
}
public String getSwtype() {
return this.swtype;
}
public void setSwtype(String swtype) {
this.swtype = swtype;
if(swtype != null){
putBodyParameter("Swtype", swtype);
}
}
@Override
public Class<AddCopyrightFilesResponse> getResponseClass() {
return AddCopyrightFilesResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/AddCopyrightFilesResponse.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.copyright.transform.v20190123.AddCopyrightFilesResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class AddCopyrightFilesResponse extends AcsResponse {
private String token;
private String requestId;
private Boolean success;
public String getToken() {
return this.token;
}
public void setToken(String token) {
this.token = token;
}
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
@Override
public AddCopyrightFilesResponse getInstance(UnmarshallerContext context) {
return AddCopyrightFilesResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/BatchAsynchronousAddRequest.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class BatchAsynchronousAddRequest extends RpcAcsRequest<BatchAsynchronousAddResponse> {
private String cacheKey;
private String planId;
public BatchAsynchronousAddRequest() {
super("Copyright", "2019-01-23", "BatchAsynchronousAdd", "swcopyright");
setMethod(MethodType.POST);
}
public String getCacheKey() {
return this.cacheKey;
}
public void setCacheKey(String cacheKey) {
this.cacheKey = cacheKey;
if(cacheKey != null){
putQueryParameter("CacheKey", cacheKey);
}
}
public String getPlanId() {
return this.planId;
}
public void setPlanId(String planId) {
this.planId = planId;
if(planId != null){
putQueryParameter("PlanId", planId);
}
}
@Override
public Class<BatchAsynchronousAddResponse> getResponseClass() {
return BatchAsynchronousAddResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/BatchAsynchronousAddResponse.java
|
/*
* 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.copyright.model.v20190123;
import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.copyright.transform.v20190123.BatchAsynchronousAddResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class BatchAsynchronousAddResponse extends AcsResponse {
private String requestId;
private List<String> id;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public List<String> getId() {
return this.id;
}
public void setId(List<String> id) {
this.id = id;
}
@Override
public BatchAsynchronousAddResponse getInstance(UnmarshallerContext context) {
return BatchAsynchronousAddResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/BatchCheckPatentAddRequest.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class BatchCheckPatentAddRequest extends RpcAcsRequest<BatchCheckPatentAddResponse> {
private String applyNumber;
public BatchCheckPatentAddRequest() {
super("Copyright", "2019-01-23", "BatchCheckPatentAdd", "swcopyright");
setMethod(MethodType.POST);
}
public String getApplyNumber() {
return this.applyNumber;
}
public void setApplyNumber(String applyNumber) {
this.applyNumber = applyNumber;
if(applyNumber != null){
putQueryParameter("ApplyNumber", applyNumber);
}
}
@Override
public Class<BatchCheckPatentAddResponse> getResponseClass() {
return BatchCheckPatentAddResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/BatchCheckPatentAddResponse.java
|
/*
* 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.copyright.model.v20190123;
import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.copyright.transform.v20190123.BatchCheckPatentAddResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class BatchCheckPatentAddResponse extends AcsResponse {
private String cacheKey;
private Integer canAddCount;
private String requestId;
private Boolean success;
private Integer totalCount;
private Integer existCount;
private List<ErrorDetailItem> errorDetail;
private List<TradeListItem> tradeList;
public String getCacheKey() {
return this.cacheKey;
}
public void setCacheKey(String cacheKey) {
this.cacheKey = cacheKey;
}
public Integer getCanAddCount() {
return this.canAddCount;
}
public void setCanAddCount(Integer canAddCount) {
this.canAddCount = canAddCount;
}
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public Integer getTotalCount() {
return this.totalCount;
}
public void setTotalCount(Integer totalCount) {
this.totalCount = totalCount;
}
public Integer getExistCount() {
return this.existCount;
}
public void setExistCount(Integer existCount) {
this.existCount = existCount;
}
public List<ErrorDetailItem> getErrorDetail() {
return this.errorDetail;
}
public void setErrorDetail(List<ErrorDetailItem> errorDetail) {
this.errorDetail = errorDetail;
}
public List<TradeListItem> getTradeList() {
return this.tradeList;
}
public void setTradeList(List<TradeListItem> tradeList) {
this.tradeList = tradeList;
}
public static class ErrorDetailItem {
private String message;
private Boolean success;
private String applyNumber;
public String getMessage() {
return this.message;
}
public void setMessage(String message) {
this.message = message;
}
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public String getApplyNumber() {
return this.applyNumber;
}
public void setApplyNumber(String applyNumber) {
this.applyNumber = applyNumber;
}
}
public static class TradeListItem {
private String type;
private Float needFee;
private String discount;
private String overduePenalty;
private Integer needCount;
private Long totalCount;
private String age;
private Long existCount;
public String getType() {
return this.type;
}
public void setType(String type) {
this.type = type;
}
public Float getNeedFee() {
return this.needFee;
}
public void setNeedFee(Float needFee) {
this.needFee = needFee;
}
public String getDiscount() {
return this.discount;
}
public void setDiscount(String discount) {
this.discount = discount;
}
public String getOverduePenalty() {
return this.overduePenalty;
}
public void setOverduePenalty(String overduePenalty) {
this.overduePenalty = overduePenalty;
}
public Integer getNeedCount() {
return this.needCount;
}
public void setNeedCount(Integer needCount) {
this.needCount = needCount;
}
public Long getTotalCount() {
return this.totalCount;
}
public void setTotalCount(Long totalCount) {
this.totalCount = totalCount;
}
public String getAge() {
return this.age;
}
public void setAge(String age) {
this.age = age;
}
public Long getExistCount() {
return this.existCount;
}
public void setExistCount(Long existCount) {
this.existCount = existCount;
}
}
@Override
public BatchCheckPatentAddResponse getInstance(UnmarshallerContext context) {
return BatchCheckPatentAddResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/BatchPatentAddRequest.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class BatchPatentAddRequest extends RpcAcsRequest<BatchPatentAddResponse> {
private String applyNumber;
public BatchPatentAddRequest() {
super("Copyright", "2019-01-23", "BatchPatentAdd", "swcopyright");
setMethod(MethodType.GET);
}
public String getApplyNumber() {
return this.applyNumber;
}
public void setApplyNumber(String applyNumber) {
this.applyNumber = applyNumber;
if(applyNumber != null){
putQueryParameter("ApplyNumber", applyNumber);
}
}
@Override
public Class<BatchPatentAddResponse> getResponseClass() {
return BatchPatentAddResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/BatchPatentAddResponse.java
|
/*
* 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.copyright.model.v20190123;
import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.copyright.transform.v20190123.BatchPatentAddResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class BatchPatentAddResponse extends AcsResponse {
private Boolean success;
private String requestId;
private List<DataItem> data;
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public List<DataItem> getData() {
return this.data;
}
public void setData(List<DataItem> data) {
this.data = data;
}
public static class DataItem {
private String message;
private Boolean success;
private String applyNumber;
public String getMessage() {
return this.message;
}
public void setMessage(String message) {
this.message = message;
}
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public String getApplyNumber() {
return this.applyNumber;
}
public void setApplyNumber(String applyNumber) {
this.applyNumber = applyNumber;
}
}
@Override
public BatchPatentAddResponse getInstance(UnmarshallerContext context) {
return BatchPatentAddResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/CheckCopyrightCenterCodeRequest.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class CheckCopyrightCenterCodeRequest extends RpcAcsRequest<CheckCopyrightCenterCodeResponse> {
private String code;
private String cardNum;
private String bizId;
public CheckCopyrightCenterCodeRequest() {
super("Copyright", "2019-01-23", "CheckCopyrightCenterCode", "swcopyright");
setMethod(MethodType.POST);
}
public String getCode() {
return this.code;
}
public void setCode(String code) {
this.code = code;
if(code != null){
putQueryParameter("Code", code);
}
}
public String getCardNum() {
return this.cardNum;
}
public void setCardNum(String cardNum) {
this.cardNum = cardNum;
if(cardNum != null){
putQueryParameter("CardNum", cardNum);
}
}
public String getBizId() {
return this.bizId;
}
public void setBizId(String bizId) {
this.bizId = bizId;
if(bizId != null){
putQueryParameter("BizId", bizId);
}
}
@Override
public Class<CheckCopyrightCenterCodeResponse> getResponseClass() {
return CheckCopyrightCenterCodeResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/CheckCopyrightCenterCodeResponse.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.copyright.transform.v20190123.CheckCopyrightCenterCodeResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class CheckCopyrightCenterCodeResponse extends AcsResponse {
private Boolean checkPass;
private String requestId;
private Boolean success;
private String message;
public Boolean getCheckPass() {
return this.checkPass;
}
public void setCheckPass(Boolean checkPass) {
this.checkPass = checkPass;
}
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public String getMessage() {
return this.message;
}
public void setMessage(String message) {
this.message = message;
}
@Override
public CheckCopyrightCenterCodeResponse getInstance(UnmarshallerContext context) {
return CheckCopyrightCenterCodeResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/CheckPatentSellStatusRequest.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class CheckPatentSellStatusRequest extends RpcAcsRequest<CheckPatentSellStatusResponse> {
private String applyNumber;
public CheckPatentSellStatusRequest() {
super("Copyright", "2019-01-23", "CheckPatentSellStatus", "swcopyright");
setMethod(MethodType.GET);
}
public String getApplyNumber() {
return this.applyNumber;
}
public void setApplyNumber(String applyNumber) {
this.applyNumber = applyNumber;
if(applyNumber != null){
putQueryParameter("ApplyNumber", applyNumber);
}
}
@Override
public Class<CheckPatentSellStatusResponse> getResponseClass() {
return CheckPatentSellStatusResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/CheckPatentSellStatusResponse.java
|
/*
* 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.copyright.model.v20190123;
import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.copyright.transform.v20190123.CheckPatentSellStatusResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class CheckPatentSellStatusResponse extends AcsResponse {
private Boolean success;
private String requestId;
private List<DataItem> data;
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public List<DataItem> getData() {
return this.data;
}
public void setData(List<DataItem> data) {
this.data = data;
}
public static class DataItem {
private String type;
private String endDate;
private String errorMessage;
private String applyNumber;
private String discount;
private String age;
private Float fee;
public String getType() {
return this.type;
}
public void setType(String type) {
this.type = type;
}
public String getEndDate() {
return this.endDate;
}
public void setEndDate(String endDate) {
this.endDate = endDate;
}
public String getErrorMessage() {
return this.errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
public String getApplyNumber() {
return this.applyNumber;
}
public void setApplyNumber(String applyNumber) {
this.applyNumber = applyNumber;
}
public String getDiscount() {
return this.discount;
}
public void setDiscount(String discount) {
this.discount = discount;
}
public String getAge() {
return this.age;
}
public void setAge(String age) {
this.age = age;
}
public Float getFee() {
return this.fee;
}
public void setFee(Float fee) {
this.fee = fee;
}
}
@Override
public CheckPatentSellStatusResponse getInstance(UnmarshallerContext context) {
return CheckPatentSellStatusResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/CheckProcessResultRequest.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class CheckProcessResultRequest extends RpcAcsRequest<CheckProcessResultResponse> {
private String token;
public CheckProcessResultRequest() {
super("Copyright", "2019-01-23", "CheckProcessResult", "swcopyright");
setMethod(MethodType.POST);
}
public String getToken() {
return this.token;
}
public void setToken(String token) {
this.token = token;
if(token != null){
putQueryParameter("Token", token);
}
}
@Override
public Class<CheckProcessResultResponse> getResponseClass() {
return CheckProcessResultResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/CheckProcessResultResponse.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.copyright.transform.v20190123.CheckProcessResultResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class CheckProcessResultResponse extends AcsResponse {
private String token;
private String status;
private String message;
private String requestId;
private Boolean success;
public String getToken() {
return this.token;
}
public void setToken(String token) {
this.token = token;
}
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
public String getMessage() {
return this.message;
}
public void setMessage(String message) {
this.message = message;
}
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
@Override
public CheckProcessResultResponse getInstance(UnmarshallerContext context) {
return CheckProcessResultResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/CreateCommodityOrderRequest.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class CreateCommodityOrderRequest extends RpcAcsRequest<CreateCommodityOrderResponse> {
private String components;
private String clientToken;
private String userId;
private Integer duration;
private Integer quantity;
private Boolean autoPay;
private String commodityCode;
private String bizType;
private String instanceId;
private String specCode;
private String orderParams;
private String chargeType;
private String pricingCycle;
private String orderType;
public CreateCommodityOrderRequest() {
super("Copyright", "2019-01-23", "CreateCommodityOrder", "swcopyright");
setMethod(MethodType.POST);
}
public String getComponents() {
return this.components;
}
public void setComponents(String components) {
this.components = components;
if(components != null){
putQueryParameter("Components", components);
}
}
public String getClientToken() {
return this.clientToken;
}
public void setClientToken(String clientToken) {
this.clientToken = clientToken;
if(clientToken != null){
putQueryParameter("ClientToken", clientToken);
}
}
public String getUserId() {
return this.userId;
}
public void setUserId(String userId) {
this.userId = userId;
if(userId != null){
putQueryParameter("UserId", userId);
}
}
public Integer getDuration() {
return this.duration;
}
public void setDuration(Integer duration) {
this.duration = duration;
if(duration != null){
putQueryParameter("Duration", duration.toString());
}
}
public Integer getQuantity() {
return this.quantity;
}
public void setQuantity(Integer quantity) {
this.quantity = quantity;
if(quantity != null){
putQueryParameter("Quantity", quantity.toString());
}
}
public Boolean getAutoPay() {
return this.autoPay;
}
public void setAutoPay(Boolean autoPay) {
this.autoPay = autoPay;
if(autoPay != null){
putQueryParameter("AutoPay", autoPay.toString());
}
}
public String getCommodityCode() {
return this.commodityCode;
}
public void setCommodityCode(String commodityCode) {
this.commodityCode = commodityCode;
if(commodityCode != null){
putQueryParameter("CommodityCode", commodityCode);
}
}
public String getBizType() {
return this.bizType;
}
public void setBizType(String bizType) {
this.bizType = bizType;
if(bizType != null){
putQueryParameter("BizType", bizType);
}
}
public String getInstanceId() {
return this.instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
if(instanceId != null){
putQueryParameter("InstanceId", instanceId);
}
}
public String getSpecCode() {
return this.specCode;
}
public void setSpecCode(String specCode) {
this.specCode = specCode;
if(specCode != null){
putQueryParameter("SpecCode", specCode);
}
}
public String getOrderParams() {
return this.orderParams;
}
public void setOrderParams(String orderParams) {
this.orderParams = orderParams;
if(orderParams != null){
putQueryParameter("OrderParams", orderParams);
}
}
public String getChargeType() {
return this.chargeType;
}
public void setChargeType(String chargeType) {
this.chargeType = chargeType;
if(chargeType != null){
putQueryParameter("ChargeType", chargeType);
}
}
public String getPricingCycle() {
return this.pricingCycle;
}
public void setPricingCycle(String pricingCycle) {
this.pricingCycle = pricingCycle;
if(pricingCycle != null){
putQueryParameter("PricingCycle", pricingCycle);
}
}
public String getOrderType() {
return this.orderType;
}
public void setOrderType(String orderType) {
this.orderType = orderType;
if(orderType != null){
putQueryParameter("OrderType", orderType);
}
}
@Override
public Class<CreateCommodityOrderResponse> getResponseClass() {
return CreateCommodityOrderResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/CreateCommodityOrderResponse.java
|
/*
* 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.copyright.model.v20190123;
import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.copyright.transform.v20190123.CreateCommodityOrderResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class CreateCommodityOrderResponse extends AcsResponse {
private String requestId;
private List<String> data;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public List<String> getData() {
return this.data;
}
public void setData(List<String> data) {
this.data = data;
}
@Override
public CreateCommodityOrderResponse getInstance(UnmarshallerContext context) {
return CreateCommodityOrderResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/CreateDownloadTaskRequest.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class CreateDownloadTaskRequest extends RpcAcsRequest<CreateDownloadTaskResponse> {
private Long dateEnd;
private String downloadType;
private String bizType;
private Long dateStart;
private String name;
public CreateDownloadTaskRequest() {
super("Copyright", "2019-01-23", "CreateDownloadTask", "swcopyright");
setMethod(MethodType.POST);
}
public Long getDateEnd() {
return this.dateEnd;
}
public void setDateEnd(Long dateEnd) {
this.dateEnd = dateEnd;
if(dateEnd != null){
putQueryParameter("DateEnd", dateEnd.toString());
}
}
public String getDownloadType() {
return this.downloadType;
}
public void setDownloadType(String downloadType) {
this.downloadType = downloadType;
if(downloadType != null){
putQueryParameter("DownloadType", downloadType);
}
}
public String getBizType() {
return this.bizType;
}
public void setBizType(String bizType) {
this.bizType = bizType;
if(bizType != null){
putQueryParameter("BizType", bizType);
}
}
public Long getDateStart() {
return this.dateStart;
}
public void setDateStart(Long dateStart) {
this.dateStart = dateStart;
if(dateStart != null){
putQueryParameter("DateStart", dateStart.toString());
}
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
if(name != null){
putQueryParameter("Name", name);
}
}
@Override
public Class<CreateDownloadTaskResponse> getResponseClass() {
return CreateDownloadTaskResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/CreateDownloadTaskResponse.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.copyright.transform.v20190123.CreateDownloadTaskResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class CreateDownloadTaskResponse extends AcsResponse {
private String requestId;
private Boolean success;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
@Override
public CreateDownloadTaskResponse getInstance(UnmarshallerContext context) {
return CreateDownloadTaskResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/CreateDownloadTicketsRequest.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class CreateDownloadTicketsRequest extends RpcAcsRequest<CreateDownloadTicketsResponse> {
private String applyNumbers;
private String name;
public CreateDownloadTicketsRequest() {
super("Copyright", "2019-01-23", "CreateDownloadTickets", "swcopyright");
setMethod(MethodType.POST);
}
public String getApplyNumbers() {
return this.applyNumbers;
}
public void setApplyNumbers(String applyNumbers) {
this.applyNumbers = applyNumbers;
if(applyNumbers != null){
putQueryParameter("ApplyNumbers", applyNumbers);
}
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
if(name != null){
putQueryParameter("Name", name);
}
}
@Override
public Class<CreateDownloadTicketsResponse> getResponseClass() {
return CreateDownloadTicketsResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/CreateDownloadTicketsResponse.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.copyright.transform.v20190123.CreateDownloadTicketsResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class CreateDownloadTicketsResponse extends AcsResponse {
private Boolean success;
private String requestId;
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public CreateDownloadTicketsResponse getInstance(UnmarshallerContext context) {
return CreateDownloadTicketsResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/CreatePatentOrderRequest.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class CreatePatentOrderRequest extends RpcAcsRequest<CreatePatentOrderResponse> {
private String applyNumber;
public CreatePatentOrderRequest() {
super("Copyright", "2019-01-23", "CreatePatentOrder", "swcopyright");
setMethod(MethodType.GET);
}
public String getApplyNumber() {
return this.applyNumber;
}
public void setApplyNumber(String applyNumber) {
this.applyNumber = applyNumber;
if(applyNumber != null){
putQueryParameter("ApplyNumber", applyNumber);
}
}
@Override
public Class<CreatePatentOrderResponse> getResponseClass() {
return CreatePatentOrderResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/CreatePatentOrderResponse.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.copyright.transform.v20190123.CreatePatentOrderResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class CreatePatentOrderResponse extends AcsResponse {
private Boolean success;
private String requestId;
private String applyNumber;
private String message;
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public String getApplyNumber() {
return this.applyNumber;
}
public void setApplyNumber(String applyNumber) {
this.applyNumber = applyNumber;
}
public String getMessage() {
return this.message;
}
public void setMessage(String message) {
this.message = message;
}
@Override
public CreatePatentOrderResponse getInstance(UnmarshallerContext context) {
return CreatePatentOrderResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/DeleteCopyrightPersonRequest.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class DeleteCopyrightPersonRequest extends RpcAcsRequest<DeleteCopyrightPersonResponse> {
private Long personId;
public DeleteCopyrightPersonRequest() {
super("Copyright", "2019-01-23", "DeleteCopyrightPerson", "swcopyright");
setMethod(MethodType.POST);
}
public Long getPersonId() {
return this.personId;
}
public void setPersonId(Long personId) {
this.personId = personId;
if(personId != null){
putQueryParameter("PersonId", personId.toString());
}
}
@Override
public Class<DeleteCopyrightPersonResponse> getResponseClass() {
return DeleteCopyrightPersonResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/DeleteCopyrightPersonResponse.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.copyright.transform.v20190123.DeleteCopyrightPersonResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class DeleteCopyrightPersonResponse extends AcsResponse {
private Boolean success;
private String requestId;
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public DeleteCopyrightPersonResponse getInstance(UnmarshallerContext context) {
return DeleteCopyrightPersonResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/DeleteDownloadTicketsRequest.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class DeleteDownloadTicketsRequest extends RpcAcsRequest<DeleteDownloadTicketsResponse> {
private Long downloadId;
public DeleteDownloadTicketsRequest() {
super("Copyright", "2019-01-23", "DeleteDownloadTickets", "swcopyright");
setMethod(MethodType.POST);
}
public Long getDownloadId() {
return this.downloadId;
}
public void setDownloadId(Long downloadId) {
this.downloadId = downloadId;
if(downloadId != null){
putQueryParameter("DownloadId", downloadId.toString());
}
}
@Override
public Class<DeleteDownloadTicketsResponse> getResponseClass() {
return DeleteDownloadTicketsResponse.class;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/DeleteDownloadTicketsResponse.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.copyright.transform.v20190123.DeleteDownloadTicketsResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class DeleteDownloadTicketsResponse extends AcsResponse {
private Boolean success;
private String requestId;
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public DeleteDownloadTicketsResponse getInstance(UnmarshallerContext context) {
return DeleteDownloadTicketsResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model
|
java-sources/com/aliyun/aliyun-java-sdk-copyright/1.0.13/com/aliyuncs/copyright/model/v20190123/DeletePatentAppearanceCacheRequest.java
|
/*
* 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.copyright.model.v20190123;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class DeletePatentAppearanceCacheRequest extends RpcAcsRequest<DeletePatentAppearanceCacheResponse> {
private String data;
private String bizType;
public DeletePatentAppearanceCacheRequest() {
super("Copyright", "2019-01-23", "DeletePatentAppearanceCache", "swcopyright");
setMethod(MethodType.POST);
}
public String getData() {
return this.data;
}
public void setData(String data) {
this.data = data;
if(data != null){
putQueryParameter("Data", data);
}
}
public String getBizType() {
return this.bizType;
}
public void setBizType(String bizType) {
this.bizType = bizType;
if(bizType != null){
putQueryParameter("BizType", bizType);
}
}
@Override
public Class<DeletePatentAppearanceCacheResponse> getResponseClass() {
return DeletePatentAppearanceCacheResponse.class;
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.