com.aliyuncs.live.model.v20161101.AddShowIntoShowListRequest Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.live.model.v20161101;
import com.aliyuncs.RpcAcsRequest;
import java.util.List;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.live.Endpoint;
/**
* @author auto create
* @version
*/
public class AddShowIntoShowListRequest extends RpcAcsRequest {
private List showLists;
private Integer liveInputType;
private Boolean isBatchMode;
private Long duration;
private Integer repeatTimes;
private String showName;
private String resourceId;
private String casterId;
private Long ownerId;
private String resourceType;
private String resourceUrl;
private Integer spot;
public AddShowIntoShowListRequest() {
super("live", "2016-11-01", "AddShowIntoShowList", "live");
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 List getShowLists() {
return this.showLists;
}
public void setShowLists(List showLists) {
this.showLists = showLists;
if (showLists != null) {
for (int depth1 = 0; depth1 < showLists.size(); depth1++) {
putQueryParameter("showList." + (depth1 + 1) + ".duration" , showLists.get(depth1).getDuration());
putQueryParameter("showList." + (depth1 + 1) + ".liveInputType" , showLists.get(depth1).getLiveInputType());
putQueryParameter("showList." + (depth1 + 1) + ".repeatTimes" , showLists.get(depth1).getRepeatTimes());
putQueryParameter("showList." + (depth1 + 1) + ".resourceId" , showLists.get(depth1).getResourceId());
putQueryParameter("showList." + (depth1 + 1) + ".resourceType" , showLists.get(depth1).getResourceType());
putQueryParameter("showList." + (depth1 + 1) + ".resourceUrl" , showLists.get(depth1).getResourceUrl());
putQueryParameter("showList." + (depth1 + 1) + ".showName" , showLists.get(depth1).getShowName());
}
}
}
public Integer getLiveInputType() {
return this.liveInputType;
}
public void setLiveInputType(Integer liveInputType) {
this.liveInputType = liveInputType;
if(liveInputType != null){
putQueryParameter("LiveInputType", liveInputType.toString());
}
}
public Boolean getIsBatchMode() {
return this.isBatchMode;
}
public void setIsBatchMode(Boolean isBatchMode) {
this.isBatchMode = isBatchMode;
if(isBatchMode != null){
putQueryParameter("isBatchMode", isBatchMode.toString());
}
}
public Long getDuration() {
return this.duration;
}
public void setDuration(Long duration) {
this.duration = duration;
if(duration != null){
putQueryParameter("Duration", duration.toString());
}
}
public Integer getRepeatTimes() {
return this.repeatTimes;
}
public void setRepeatTimes(Integer repeatTimes) {
this.repeatTimes = repeatTimes;
if(repeatTimes != null){
putQueryParameter("RepeatTimes", repeatTimes.toString());
}
}
public String getShowName() {
return this.showName;
}
public void setShowName(String showName) {
this.showName = showName;
if(showName != null){
putQueryParameter("ShowName", showName);
}
}
public String getResourceId() {
return this.resourceId;
}
public void setResourceId(String resourceId) {
this.resourceId = resourceId;
if(resourceId != null){
putQueryParameter("ResourceId", resourceId);
}
}
public String getCasterId() {
return this.casterId;
}
public void setCasterId(String casterId) {
this.casterId = casterId;
if(casterId != null){
putQueryParameter("CasterId", casterId);
}
}
public Long getOwnerId() {
return this.ownerId;
}
public void setOwnerId(Long ownerId) {
this.ownerId = ownerId;
if(ownerId != null){
putQueryParameter("OwnerId", ownerId.toString());
}
}
public String getResourceType() {
return this.resourceType;
}
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
if(resourceType != null){
putQueryParameter("ResourceType", resourceType);
}
}
public String getResourceUrl() {
return this.resourceUrl;
}
public void setResourceUrl(String resourceUrl) {
this.resourceUrl = resourceUrl;
if(resourceUrl != null){
putQueryParameter("ResourceUrl", resourceUrl);
}
}
public Integer getSpot() {
return this.spot;
}
public void setSpot(Integer spot) {
this.spot = spot;
if(spot != null){
putQueryParameter("Spot", spot.toString());
}
}
public static class ShowList {
private Long duration;
private Integer liveInputType;
private Integer repeatTimes;
private String resourceId;
private String resourceType;
private String resourceUrl;
private String showName;
public Long getDuration() {
return this.duration;
}
public void setDuration(Long duration) {
this.duration = duration;
}
public Integer getLiveInputType() {
return this.liveInputType;
}
public void setLiveInputType(Integer liveInputType) {
this.liveInputType = liveInputType;
}
public Integer getRepeatTimes() {
return this.repeatTimes;
}
public void setRepeatTimes(Integer repeatTimes) {
this.repeatTimes = repeatTimes;
}
public String getResourceId() {
return this.resourceId;
}
public void setResourceId(String resourceId) {
this.resourceId = resourceId;
}
public String getResourceType() {
return this.resourceType;
}
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
public String getResourceUrl() {
return this.resourceUrl;
}
public void setResourceUrl(String resourceUrl) {
this.resourceUrl = resourceUrl;
}
public String getShowName() {
return this.showName;
}
public void setShowName(String showName) {
this.showName = showName;
}
}
@Override
public Class getResponseClass() {
return AddShowIntoShowListResponse.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy