
com.huaweicloud.sdk.functiongraph.v2.model.ListDependenciesResponse Maven / Gradle / Ivy
package com.huaweicloud.sdk.functiongraph.v2.model;
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 ListDependenciesResponse extends SdkResponse {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "count")
private Integer count;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "dependencies")
private List dependencies = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "next_marker")
private Long nextMarker;
public ListDependenciesResponse withCount(Integer count) {
this.count = count;
return this;
}
/** 依赖包总数。
*
* @return count */
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
public ListDependenciesResponse withDependencies(List dependencies) {
this.dependencies = dependencies;
return this;
}
public ListDependenciesResponse addDependenciesItem(ListDependenciesResult dependenciesItem) {
if (this.dependencies == null) {
this.dependencies = new ArrayList<>();
}
this.dependencies.add(dependenciesItem);
return this;
}
public ListDependenciesResponse withDependencies(Consumer> dependenciesSetter) {
if (this.dependencies == null) {
this.dependencies = new ArrayList<>();
}
dependenciesSetter.accept(this.dependencies);
return this;
}
/** 依赖包列表。
*
* @return dependencies */
public List getDependencies() {
return dependencies;
}
public void setDependencies(List dependencies) {
this.dependencies = dependencies;
}
public ListDependenciesResponse withNextMarker(Long nextMarker) {
this.nextMarker = nextMarker;
return this;
}
/** 下次读取位置。
*
* @return nextMarker */
public Long getNextMarker() {
return nextMarker;
}
public void setNextMarker(Long nextMarker) {
this.nextMarker = nextMarker;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ListDependenciesResponse listDependenciesResponse = (ListDependenciesResponse) o;
return Objects.equals(this.count, listDependenciesResponse.count)
&& Objects.equals(this.dependencies, listDependenciesResponse.dependencies)
&& Objects.equals(this.nextMarker, listDependenciesResponse.nextMarker);
}
@Override
public int hashCode() {
return Objects.hash(count, dependencies, nextMarker);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListDependenciesResponse {\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
sb.append(" dependencies: ").append(toIndentedString(dependencies)).append("\n");
sb.append(" nextMarker: ").append(toIndentedString(nextMarker)).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