com.huaweicloud.sdk.apm.v1.model.ShowAkSksResponse Maven / Gradle / Ivy
package com.huaweicloud.sdk.apm.v1.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 ShowAkSksResponse extends SdkResponse {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "access_ak_sk_models")
private List accessAkSkModels = null;
public ShowAkSksResponse withAccessAkSkModels(List accessAkSkModels) {
this.accessAkSkModels = accessAkSkModels;
return this;
}
public ShowAkSksResponse addAccessAkSkModelsItem(AccessAkskVO accessAkSkModelsItem) {
if (this.accessAkSkModels == null) {
this.accessAkSkModels = new ArrayList<>();
}
this.accessAkSkModels.add(accessAkSkModelsItem);
return this;
}
public ShowAkSksResponse withAccessAkSkModels(Consumer> accessAkSkModelsSetter) {
if (this.accessAkSkModels == null) {
this.accessAkSkModels = new ArrayList<>();
}
accessAkSkModelsSetter.accept(this.accessAkSkModels);
return this;
}
/**
* Get accessAkSkModels
* @return accessAkSkModels
*/
public List getAccessAkSkModels() {
return accessAkSkModels;
}
public void setAccessAkSkModels(List accessAkSkModels) {
this.accessAkSkModels = accessAkSkModels;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ShowAkSksResponse that = (ShowAkSksResponse) obj;
return Objects.equals(this.accessAkSkModels, that.accessAkSkModels);
}
@Override
public int hashCode() {
return Objects.hash(accessAkSkModels);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ShowAkSksResponse {\n");
sb.append(" accessAkSkModels: ").append(toIndentedString(accessAkSkModels)).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 ");
}
}