com.aliyuncs.cloudauth.model.v20180916.SubmitMaterialsRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-cloudauth Show documentation
Show all versions of aliyun-java-sdk-cloudauth Show documentation
Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.cloudauth.model.v20180916;
import com.aliyuncs.RpcAcsRequest;
import java.util.List;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.cloudauth.Endpoint;
/**
* @author auto create
* @version
*/
public class SubmitMaterialsRequest extends RpcAcsRequest {
private Long resourceOwnerId;
private String verifyToken;
private String sourceIp;
private List materials;
public SubmitMaterialsRequest() {
super("Cloudauth", "2018-09-16", "SubmitMaterials", "cloudauth");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public void setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
if(resourceOwnerId != null){
putQueryParameter("ResourceOwnerId", resourceOwnerId.toString());
}
}
public String getVerifyToken() {
return this.verifyToken;
}
public void setVerifyToken(String verifyToken) {
this.verifyToken = verifyToken;
if(verifyToken != null){
putBodyParameter("VerifyToken", verifyToken);
}
}
public String getSourceIp() {
return this.sourceIp;
}
public void setSourceIp(String sourceIp) {
this.sourceIp = sourceIp;
if(sourceIp != null){
putQueryParameter("SourceIp", sourceIp);
}
}
public List getMaterials() {
return this.materials;
}
public void setMaterials(List materials) {
this.materials = materials;
if (materials != null) {
for (int depth1 = 0; depth1 < materials.size(); depth1++) {
putBodyParameter("Material." + (depth1 + 1) + ".MaterialType" , materials.get(depth1).getMaterialType());
putBodyParameter("Material." + (depth1 + 1) + ".Value" , materials.get(depth1).getValue());
}
}
}
public static class Material {
private String materialType;
private String value;
public String getMaterialType() {
return this.materialType;
}
public void setMaterialType(String materialType) {
this.materialType = materialType;
}
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
}
@Override
public Class getResponseClass() {
return SubmitMaterialsResponse.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy