All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.huaweicloud.sdk.meeting.v1.model.SearchStatisticConferenceParticipantRequest 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 SearchStatisticConferenceParticipantRequest {

    @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;

    /** 查询分类,取值: * user_participate_info: 用户与会统计数据 * hard_terminal_participate_info: 硬件终端与会统计数据 * participant_type_info:
     * 与会设备统计数据 */
    public static final class CategoryEnum {

        /** Enum USER_PARTICIPATE_INFO for value: "user_participate_info" */
        public static final CategoryEnum USER_PARTICIPATE_INFO = new CategoryEnum("user_participate_info");

        /** Enum HARD_TERMINAL_PARTICIPATE_INFO for value: "hard_terminal_participate_info" */
        public static final CategoryEnum HARD_TERMINAL_PARTICIPATE_INFO =
            new CategoryEnum("hard_terminal_participate_info");

        /** Enum PARTICIPANT_TYPE_INFO for value: "participant_type_info" */
        public static final CategoryEnum PARTICIPANT_TYPE_INFO = new CategoryEnum("participant_type_info");

        private static final Map STATIC_FIELDS = createStaticFields();

        private static Map createStaticFields() {
            Map map = new HashMap<>();
            map.put("user_participate_info", USER_PARTICIPATE_INFO);
            map.put("hard_terminal_participate_info", HARD_TERMINAL_PARTICIPATE_INFO);
            map.put("participant_type_info", PARTICIPANT_TYPE_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 SearchStatisticConferenceParticipantRequest 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 SearchStatisticConferenceParticipantRequest 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 SearchStatisticConferenceParticipantRequest 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 SearchStatisticConferenceParticipantRequest 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 SearchStatisticConferenceParticipantRequest 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 SearchStatisticConferenceParticipantRequest withCategory(CategoryEnum category) {
        this.category = category;
        return this;
    }

    /** 查询分类,取值: * user_participate_info: 用户与会统计数据 * hard_terminal_participate_info: 硬件终端与会统计数据 * participant_type_info:
     * 与会设备统计数据
     * 
     * @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;
        }
        SearchStatisticConferenceParticipantRequest searchStatisticConferenceParticipantRequest =
            (SearchStatisticConferenceParticipantRequest) o;
        return Objects.equals(this.offset, searchStatisticConferenceParticipantRequest.offset)
            && Objects.equals(this.limit, searchStatisticConferenceParticipantRequest.limit)
            && Objects.equals(this.timeUnit, searchStatisticConferenceParticipantRequest.timeUnit)
            && Objects.equals(this.startTime, searchStatisticConferenceParticipantRequest.startTime)
            && Objects.equals(this.endTime, searchStatisticConferenceParticipantRequest.endTime)
            && Objects.equals(this.category, searchStatisticConferenceParticipantRequest.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 SearchStatisticConferenceParticipantRequest {\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