
com.huaweicloud.sdk.meeting.v1.model.UpdatePublicationRequestDTO Maven / Gradle / Ivy
package com.huaweicloud.sdk.meeting.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.function.Consumer;
/** 更新发布信息请求 */
public class UpdatePublicationRequestDTO {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "publishName")
private String publishName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "startTime")
private Long startTime;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "endTime")
private Long endTime;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "deptList")
private List deptList = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "deviceList")
private List deviceList = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "programList")
private List programList = null;
public UpdatePublicationRequestDTO withPublishName(String publishName) {
this.publishName = publishName;
return this;
}
/** 发布名称
*
* @return publishName */
public String getPublishName() {
return publishName;
}
public void setPublishName(String publishName) {
this.publishName = publishName;
}
public UpdatePublicationRequestDTO withStartTime(Long startTime) {
this.startTime = startTime;
return this;
}
/** 开始时间
*
* @return startTime */
public Long getStartTime() {
return startTime;
}
public void setStartTime(Long startTime) {
this.startTime = startTime;
}
public UpdatePublicationRequestDTO withEndTime(Long endTime) {
this.endTime = endTime;
return this;
}
/** 结束时间
*
* @return endTime */
public Long getEndTime() {
return endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public UpdatePublicationRequestDTO withDeptList(List deptList) {
this.deptList = deptList;
return this;
}
public UpdatePublicationRequestDTO addDeptListItem(String deptListItem) {
if (this.deptList == null) {
this.deptList = new ArrayList<>();
}
this.deptList.add(deptListItem);
return this;
}
public UpdatePublicationRequestDTO withDeptList(Consumer> deptListSetter) {
if (this.deptList == null) {
this.deptList = new ArrayList<>();
}
deptListSetter.accept(this.deptList);
return this;
}
/** 发布到部门编码列表
*
* @return deptList */
public List getDeptList() {
return deptList;
}
public void setDeptList(List deptList) {
this.deptList = deptList;
}
public UpdatePublicationRequestDTO withDeviceList(List deviceList) {
this.deviceList = deviceList;
return this;
}
public UpdatePublicationRequestDTO addDeviceListItem(String deviceListItem) {
if (this.deviceList == null) {
this.deviceList = new ArrayList<>();
}
this.deviceList.add(deviceListItem);
return this;
}
public UpdatePublicationRequestDTO withDeviceList(Consumer> deviceListSetter) {
if (this.deviceList == null) {
this.deviceList = new ArrayList<>();
}
deviceListSetter.accept(this.deviceList);
return this;
}
/** 发布到设备用户ID列表
*
* @return deviceList */
public List getDeviceList() {
return deviceList;
}
public void setDeviceList(List deviceList) {
this.deviceList = deviceList;
}
public UpdatePublicationRequestDTO withProgramList(List programList) {
this.programList = programList;
return this;
}
public UpdatePublicationRequestDTO addProgramListItem(String programListItem) {
if (this.programList == null) {
this.programList = new ArrayList<>();
}
this.programList.add(programListItem);
return this;
}
public UpdatePublicationRequestDTO withProgramList(Consumer> programListSetter) {
if (this.programList == null) {
this.programList = new ArrayList<>();
}
programListSetter.accept(this.programList);
return this;
}
/** 发布节目ID列表
*
* @return programList */
public List getProgramList() {
return programList;
}
public void setProgramList(List programList) {
this.programList = programList;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UpdatePublicationRequestDTO updatePublicationRequestDTO = (UpdatePublicationRequestDTO) o;
return Objects.equals(this.publishName, updatePublicationRequestDTO.publishName)
&& Objects.equals(this.startTime, updatePublicationRequestDTO.startTime)
&& Objects.equals(this.endTime, updatePublicationRequestDTO.endTime)
&& Objects.equals(this.deptList, updatePublicationRequestDTO.deptList)
&& Objects.equals(this.deviceList, updatePublicationRequestDTO.deviceList)
&& Objects.equals(this.programList, updatePublicationRequestDTO.programList);
}
@Override
public int hashCode() {
return Objects.hash(publishName, startTime, endTime, deptList, deviceList, programList);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdatePublicationRequestDTO {\n");
sb.append(" publishName: ").append(toIndentedString(publishName)).append("\n");
sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n");
sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n");
sb.append(" deptList: ").append(toIndentedString(deptList)).append("\n");
sb.append(" deviceList: ").append(toIndentedString(deviceList)).append("\n");
sb.append(" programList: ").append(toIndentedString(programList)).append("\n");
sb.append("}");
return sb.toString();
}
/** Convert the given object to string with each line indented by 4 spaces (except the first line). */
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy