
com.huaweicloud.sdk.meeting.v1.model.PublicationRequestBase 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 PublicationRequestBase {
@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;
public PublicationRequestBase withPublishName(String publishName) {
this.publishName = publishName;
return this;
}
/** 发布名称
*
* @return publishName */
public String getPublishName() {
return publishName;
}
public void setPublishName(String publishName) {
this.publishName = publishName;
}
public PublicationRequestBase withStartTime(Long startTime) {
this.startTime = startTime;
return this;
}
/** 开始时间
*
* @return startTime */
public Long getStartTime() {
return startTime;
}
public void setStartTime(Long startTime) {
this.startTime = startTime;
}
public PublicationRequestBase withEndTime(Long endTime) {
this.endTime = endTime;
return this;
}
/** 结束时间
*
* @return endTime */
public Long getEndTime() {
return endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public PublicationRequestBase withDeptList(List deptList) {
this.deptList = deptList;
return this;
}
public PublicationRequestBase addDeptListItem(String deptListItem) {
if (this.deptList == null) {
this.deptList = new ArrayList<>();
}
this.deptList.add(deptListItem);
return this;
}
public PublicationRequestBase 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 PublicationRequestBase withDeviceList(List deviceList) {
this.deviceList = deviceList;
return this;
}
public PublicationRequestBase addDeviceListItem(String deviceListItem) {
if (this.deviceList == null) {
this.deviceList = new ArrayList<>();
}
this.deviceList.add(deviceListItem);
return this;
}
public PublicationRequestBase 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;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PublicationRequestBase publicationRequestBase = (PublicationRequestBase) o;
return Objects.equals(this.publishName, publicationRequestBase.publishName)
&& Objects.equals(this.startTime, publicationRequestBase.startTime)
&& Objects.equals(this.endTime, publicationRequestBase.endTime)
&& Objects.equals(this.deptList, publicationRequestBase.deptList)
&& Objects.equals(this.deviceList, publicationRequestBase.deviceList);
}
@Override
public int hashCode() {
return Objects.hash(publishName, startTime, endTime, deptList, deviceList);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PublicationRequestBase {\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("}");
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