
com.huaweicloud.sdk.meeting.v1.model.SearchStatisticConferenceInfoRequest Maven / Gradle / Ivy
package com.huaweicloud.sdk.meeting.v1.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/** Request Object */
public class SearchStatisticConferenceInfoRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "offset")
private Integer offset;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "limit")
private Integer limit;
/** 查询时间维度,取值: * D: 按日查询 * M: 按月查询。 */
public static final class TimeUnitEnum {
/** Enum D for value: "D" */
public static final TimeUnitEnum D = new TimeUnitEnum("D");
/** Enum M for value: "M" */
public static final TimeUnitEnum M = new TimeUnitEnum("M");
private static final Map STATIC_FIELDS = createStaticFields();
private static Map createStaticFields() {
Map map = new HashMap<>();
map.put("D", D);
map.put("M", M);
return Collections.unmodifiableMap(map);
}
private String value;
TimeUnitEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static TimeUnitEnum fromValue(String value) {
if (value == null) {
return null;
}
TimeUnitEnum result = STATIC_FIELDS.get(value);
if (result == null) {
result = new TimeUnitEnum(value);
}
return result;
}
public static TimeUnitEnum valueOf(String value) {
if (value == null) {
return null;
}
TimeUnitEnum result = STATIC_FIELDS.get(value);
if (result != null) {
return result;
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
@Override
public boolean equals(Object obj) {
if (obj instanceof TimeUnitEnum) {
return this.value.equals(((TimeUnitEnum) obj).value);
}
return false;
}
@Override
public int hashCode() {
return this.value.hashCode();
}
}
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "timeUnit")
private TimeUnitEnum timeUnit;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "startTime")
private String startTime;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "endTime")
private String endTime;
/** 查询分类,取值: * conference_info: 会议总体数据 * conference_hourly_info: 单日内会议总体数据 * category =
* conference_hourly_info的情况,timeUnit只能取值'D',且startTime与endTime必须为同一天 */
public static final class CategoryEnum {
/** Enum CONFERENCE_INFO for value: "conference_info" */
public static final CategoryEnum CONFERENCE_INFO = new CategoryEnum("conference_info");
/** Enum CONFERENCE_HOURLY_INFO for value: "conference_hourly_info" */
public static final CategoryEnum CONFERENCE_HOURLY_INFO = new CategoryEnum("conference_hourly_info");
private static final Map STATIC_FIELDS = createStaticFields();
private static Map createStaticFields() {
Map map = new HashMap<>();
map.put("conference_info", CONFERENCE_INFO);
map.put("conference_hourly_info", CONFERENCE_HOURLY_INFO);
return Collections.unmodifiableMap(map);
}
private String value;
CategoryEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static CategoryEnum fromValue(String value) {
if (value == null) {
return null;
}
CategoryEnum result = STATIC_FIELDS.get(value);
if (result == null) {
result = new CategoryEnum(value);
}
return result;
}
public static CategoryEnum valueOf(String value) {
if (value == null) {
return null;
}
CategoryEnum result = STATIC_FIELDS.get(value);
if (result != null) {
return result;
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
@Override
public boolean equals(Object obj) {
if (obj instanceof CategoryEnum) {
return this.value.equals(((CategoryEnum) obj).value);
}
return false;
}
@Override
public int hashCode() {
return this.value.hashCode();
}
}
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "category")
private CategoryEnum category;
public SearchStatisticConferenceInfoRequest withOffset(Integer offset) {
this.offset = offset;
return this;
}
/** 查询偏移量。 * 取值:大于等于0,默认值为0。 * 小于最小值0时,系统设置为0。 * 大于等于最大条目数量,则返回最后一页数据,页数根据总条目数和limit计算得出。
*
* @return offset */
public Integer getOffset() {
return offset;
}
public void setOffset(Integer offset) {
this.offset = offset;
}
public SearchStatisticConferenceInfoRequest withLimit(Integer limit) {
this.limit = limit;
return this;
}
/** 查询的条目数量。 * 取值:1-500,默认值为20。 * 小于最小值1时,系统设置为1。 * 大于最大值500时,系统设置为500。
*
* @return limit */
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public SearchStatisticConferenceInfoRequest withTimeUnit(TimeUnitEnum timeUnit) {
this.timeUnit = timeUnit;
return this;
}
/** 查询时间维度,取值: * D: 按日查询 * M: 按月查询。
*
* @return timeUnit */
public TimeUnitEnum getTimeUnit() {
return timeUnit;
}
public void setTimeUnit(TimeUnitEnum timeUnit) {
this.timeUnit = timeUnit;
}
public SearchStatisticConferenceInfoRequest withStartTime(String startTime) {
this.startTime = startTime;
return this;
}
/** 查询时间范围的开始时间,格式根据timeUnit的取值而定。 * timeUnit = D,格式:yyyy-MM-dd,此情况下startTime与endTime间隔最多31日。 * timeUnit =
* M,格式:yyyy-MM,此情况下startTime与endTime间隔最多12个月。
*
* @return startTime */
public String getStartTime() {
return startTime;
}
public void setStartTime(String startTime) {
this.startTime = startTime;
}
public SearchStatisticConferenceInfoRequest withEndTime(String endTime) {
this.endTime = endTime;
return this;
}
/** 查询时间范围的结束时间,格式根据timeUnit的取值而定。 * timeUnit = D,格式:yyyy-MM-dd,此情况下startTime与endTime间隔最多31日。 * timeUnit =
* M,格式:yyyy-MM,此情况下startTime与endTime间隔最多12个月。
*
* @return endTime */
public String getEndTime() {
return endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime;
}
public SearchStatisticConferenceInfoRequest withCategory(CategoryEnum category) {
this.category = category;
return this;
}
/** 查询分类,取值: * conference_info: 会议总体数据 * conference_hourly_info: 单日内会议总体数据 * category =
* conference_hourly_info的情况,timeUnit只能取值'D',且startTime与endTime必须为同一天
*
* @return category */
public CategoryEnum getCategory() {
return category;
}
public void setCategory(CategoryEnum category) {
this.category = category;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SearchStatisticConferenceInfoRequest searchStatisticConferenceInfoRequest =
(SearchStatisticConferenceInfoRequest) o;
return Objects.equals(this.offset, searchStatisticConferenceInfoRequest.offset)
&& Objects.equals(this.limit, searchStatisticConferenceInfoRequest.limit)
&& Objects.equals(this.timeUnit, searchStatisticConferenceInfoRequest.timeUnit)
&& Objects.equals(this.startTime, searchStatisticConferenceInfoRequest.startTime)
&& Objects.equals(this.endTime, searchStatisticConferenceInfoRequest.endTime)
&& Objects.equals(this.category, searchStatisticConferenceInfoRequest.category);
}
@Override
public int hashCode() {
return Objects.hash(offset, limit, timeUnit, startTime, endTime, category);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SearchStatisticConferenceInfoRequest {\n");
sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" timeUnit: ").append(toIndentedString(timeUnit)).append("\n");
sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n");
sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n");
sb.append(" category: ").append(toIndentedString(category)).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