com.huaweicloud.sdk.csms.v1.model.ListSecretsRequest Maven / Gradle / Ivy
package com.huaweicloud.sdk.csms.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* Request Object
*/
public class ListSecretsRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "limit")
private String limit;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "marker")
private String marker;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "event_name")
private String eventName;
public ListSecretsRequest withLimit(String limit) {
this.limit = limit;
return this;
}
/**
* 每页返回的个数。 默认值:50。
* @return limit
*/
public String getLimit() {
return limit;
}
public void setLimit(String limit) {
this.limit = limit;
}
public ListSecretsRequest withMarker(String marker) {
this.marker = marker;
return this;
}
/**
* 分页查询起始的凭据名称,为空时为查询第一页
* @return marker
*/
public String getMarker() {
return marker;
}
public void setMarker(String marker) {
this.marker = marker;
}
public ListSecretsRequest withEventName(String eventName) {
this.eventName = eventName;
return this;
}
/**
* 指定事件名称时,仅返回关联该事件的凭据
* @return eventName
*/
public String getEventName() {
return eventName;
}
public void setEventName(String eventName) {
this.eventName = eventName;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ListSecretsRequest that = (ListSecretsRequest) obj;
return Objects.equals(this.limit, that.limit) && Objects.equals(this.marker, that.marker)
&& Objects.equals(this.eventName, that.eventName);
}
@Override
public int hashCode() {
return Objects.hash(limit, marker, eventName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListSecretsRequest {\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" marker: ").append(toIndentedString(marker)).append("\n");
sb.append(" eventName: ").append(toIndentedString(eventName)).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 ");
}
}