com.huaweicloud.sdk.apm.v1.model.DeleteAppRequest Maven / Gradle / Ivy
package com.huaweicloud.sdk.apm.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* Request Object
*/
public class DeleteAppRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "application_id")
private Long applicationId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "x-business-id")
private Long xBusinessId;
public DeleteAppRequest withApplicationId(Long applicationId) {
this.applicationId = applicationId;
return this;
}
/**
* 组件id。
* @return applicationId
*/
public Long getApplicationId() {
return applicationId;
}
public void setApplicationId(Long applicationId) {
this.applicationId = applicationId;
}
public DeleteAppRequest withXBusinessId(Long xBusinessId) {
this.xBusinessId = xBusinessId;
return this;
}
/**
* 应用id,用于鉴权。
* @return xBusinessId
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "x-business-id")
public Long getXBusinessId() {
return xBusinessId;
}
public void setXBusinessId(Long xBusinessId) {
this.xBusinessId = xBusinessId;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
DeleteAppRequest that = (DeleteAppRequest) obj;
return Objects.equals(this.applicationId, that.applicationId)
&& Objects.equals(this.xBusinessId, that.xBusinessId);
}
@Override
public int hashCode() {
return Objects.hash(applicationId, xBusinessId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DeleteAppRequest {\n");
sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n");
sb.append(" xBusinessId: ").append(toIndentedString(xBusinessId)).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 ");
}
}