com.huaweicloud.sdk.apm.v1.model.BusinessEnvRequest 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;
/**
* 获取Region环境入参。
*/
public class BusinessEnvRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "business_id")
private Long businessId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "region")
private String region;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "start_time")
private String startTime;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "end_time")
private String endTime;
public BusinessEnvRequest withBusinessId(Long businessId) {
this.businessId = businessId;
return this;
}
/**
* 应用id。
* @return businessId
*/
public Long getBusinessId() {
return businessId;
}
public void setBusinessId(Long businessId) {
this.businessId = businessId;
}
public BusinessEnvRequest withRegion(String region) {
this.region = region;
return this;
}
/**
* region英文名称。
* @return region
*/
public String getRegion() {
return region;
}
public void setRegion(String region) {
this.region = region;
}
public BusinessEnvRequest withStartTime(String startTime) {
this.startTime = startTime;
return this;
}
/**
* 开始时间。
* @return startTime
*/
public String getStartTime() {
return startTime;
}
public void setStartTime(String startTime) {
this.startTime = startTime;
}
public BusinessEnvRequest withEndTime(String endTime) {
this.endTime = endTime;
return this;
}
/**
* 结束时间。
* @return endTime
*/
public String getEndTime() {
return endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
BusinessEnvRequest that = (BusinessEnvRequest) obj;
return Objects.equals(this.businessId, that.businessId) && Objects.equals(this.region, that.region)
&& Objects.equals(this.startTime, that.startTime) && Objects.equals(this.endTime, that.endTime);
}
@Override
public int hashCode() {
return Objects.hash(businessId, region, startTime, endTime);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BusinessEnvRequest {\n");
sb.append(" businessId: ").append(toIndentedString(businessId)).append("\n");
sb.append(" region: ").append(toIndentedString(region)).append("\n");
sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n");
sb.append(" endTime: ").append(toIndentedString(endTime)).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 ");
}
}