com.huaweicloud.sdk.cloudtest.v1.model.PlanCycle Maven / Gradle / Ivy
package com.huaweicloud.sdk.cloudtest.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* 计划周期信息
*/
public class PlanCycle {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "start_date")
private String startDate;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "end_date")
private String endDate;
public PlanCycle withStartDate(String startDate) {
this.startDate = startDate;
return this;
}
/**
* 计划开始时间,要求用UTC时间表示。如2020-03-04
* @return startDate
*/
public String getStartDate() {
return startDate;
}
public void setStartDate(String startDate) {
this.startDate = startDate;
}
public PlanCycle withEndDate(String endDate) {
this.endDate = endDate;
return this;
}
/**
* 计划结束时间,要求用UTC时间表示。如2020-03-31
* @return endDate
*/
public String getEndDate() {
return endDate;
}
public void setEndDate(String endDate) {
this.endDate = endDate;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
PlanCycle that = (PlanCycle) obj;
return Objects.equals(this.startDate, that.startDate) && Objects.equals(this.endDate, that.endDate);
}
@Override
public int hashCode() {
return Objects.hash(startDate, endDate);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PlanCycle {\n");
sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n");
sb.append(" endDate: ").append(toIndentedString(endDate)).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 ");
}
}