You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
156 lines
4.1 KiB
156 lines
4.1 KiB
3 years ago
|
package com.fr.plugin.models;
|
||
|
|
||
|
|
||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||
|
import com.huaweicloud.sdk.core.SdkResponse;
|
||
|
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.List;
|
||
|
import java.util.Objects;
|
||
|
import java.util.function.Consumer;
|
||
|
|
||
|
/** Response Object */
|
||
|
public class MyListSimCardsResponse extends SdkResponse {
|
||
|
|
||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||
|
@JsonProperty(value = "limit")
|
||
|
|
||
|
private Long limit;
|
||
|
|
||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||
|
@JsonProperty(value = "offset")
|
||
|
|
||
|
private Long offset;
|
||
|
|
||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||
|
@JsonProperty(value = "count")
|
||
|
|
||
|
private Long count;
|
||
|
|
||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||
|
@JsonProperty(value = "sim_cards")
|
||
|
|
||
|
private List<MySimDeviceVO> simCards = null;
|
||
|
|
||
|
public MyListSimCardsResponse withLimit(Long limit) {
|
||
|
this.limit = limit;
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
/** 每页记录数
|
||
|
*
|
||
|
* @return limit */
|
||
|
public Long getLimit() {
|
||
|
return limit;
|
||
|
}
|
||
|
|
||
|
public void setLimit(Long limit) {
|
||
|
this.limit = limit;
|
||
|
}
|
||
|
|
||
|
public MyListSimCardsResponse withOffset(Long offset) {
|
||
|
this.offset = offset;
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
/** 页码
|
||
|
*
|
||
|
* @return offset */
|
||
|
public Long getOffset() {
|
||
|
return offset;
|
||
|
}
|
||
|
|
||
|
public void setOffset(Long offset) {
|
||
|
this.offset = offset;
|
||
|
}
|
||
|
|
||
|
public MyListSimCardsResponse withCount(Long count) {
|
||
|
this.count = count;
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
/** 总数
|
||
|
*
|
||
|
* @return count */
|
||
|
public Long getCount() {
|
||
|
return count;
|
||
|
}
|
||
|
|
||
|
public void setCount(Long count) {
|
||
|
this.count = count;
|
||
|
}
|
||
|
|
||
|
public MyListSimCardsResponse withSimCards(List<MySimDeviceVO> simCards) {
|
||
|
this.simCards = simCards;
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
public MyListSimCardsResponse addSimCardsItem(MySimDeviceVO simCardsItem) {
|
||
|
if (this.simCards == null) {
|
||
|
this.simCards = new ArrayList<>();
|
||
|
}
|
||
|
this.simCards.add(simCardsItem);
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
public MyListSimCardsResponse withSimCards(Consumer<List<MySimDeviceVO>> simCardsSetter) {
|
||
|
if (this.simCards == null) {
|
||
|
this.simCards = new ArrayList<>();
|
||
|
}
|
||
|
simCardsSetter.accept(this.simCards);
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
/** sim卡数据集合
|
||
|
*
|
||
|
* @return simCards */
|
||
|
public List<MySimDeviceVO> getSimCards() {
|
||
|
return simCards;
|
||
|
}
|
||
|
|
||
|
public void setSimCards(List<MySimDeviceVO> simCards) {
|
||
|
this.simCards = simCards;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public boolean equals(java.lang.Object o) {
|
||
|
if (this == o) {
|
||
|
return true;
|
||
|
}
|
||
|
if (o == null || getClass() != o.getClass()) {
|
||
|
return false;
|
||
|
}
|
||
|
MyListSimCardsResponse MyListSimCardsResponse = (MyListSimCardsResponse) o;
|
||
|
return Objects.equals(this.limit, MyListSimCardsResponse.limit)
|
||
|
&& Objects.equals(this.offset, MyListSimCardsResponse.offset)
|
||
|
&& Objects.equals(this.count, MyListSimCardsResponse.count)
|
||
|
&& Objects.equals(this.simCards, MyListSimCardsResponse.simCards);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public int hashCode() {
|
||
|
return Objects.hash(limit, offset, count, simCards);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public String toString() {
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
sb.append("class MyListSimCardsResponse {\n");
|
||
|
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
|
||
|
sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
|
||
|
sb.append(" count: ").append(toIndentedString(count)).append("\n");
|
||
|
sb.append(" simCards: ").append(toIndentedString(simCards)).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 ");
|
||
|
}
|
||
|
|
||
|
}
|