com.huaweicloud.sdk.cloudide.v2.model.ShowExtensionEvaluationRequest Maven / Gradle / Ivy
package com.huaweicloud.sdk.cloudide.v2.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* Request Object
*/
public class ShowExtensionEvaluationRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "extension_id")
private String extensionId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "limit")
private Long limit;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "offset")
private Long offset;
public ShowExtensionEvaluationRequest withExtensionId(String extensionId) {
this.extensionId = extensionId;
return this;
}
/**
* 插件id
* @return extensionId
*/
public String getExtensionId() {
return extensionId;
}
public void setExtensionId(String extensionId) {
this.extensionId = extensionId;
}
public ShowExtensionEvaluationRequest withLimit(Long limit) {
this.limit = limit;
return this;
}
/**
* 每页显示的条目数量
* minimum: 1
* maximum: 1000
* @return limit
*/
public Long getLimit() {
return limit;
}
public void setLimit(Long limit) {
this.limit = limit;
}
public ShowExtensionEvaluationRequest withOffset(Long offset) {
this.offset = offset;
return this;
}
/**
* 偏移量,表示从此偏移量开始查询
* minimum: 0
* maximum: 2147483647
* @return offset
*/
public Long getOffset() {
return offset;
}
public void setOffset(Long offset) {
this.offset = offset;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ShowExtensionEvaluationRequest that = (ShowExtensionEvaluationRequest) obj;
return Objects.equals(this.extensionId, that.extensionId) && Objects.equals(this.limit, that.limit)
&& Objects.equals(this.offset, that.offset);
}
@Override
public int hashCode() {
return Objects.hash(extensionId, limit, offset);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ShowExtensionEvaluationRequest {\n");
sb.append(" extensionId: ").append(toIndentedString(extensionId)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" offset: ").append(toIndentedString(offset)).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 ");
}
}