com.volcengine.vefaas.model.ReleaseResponse Maven / Gradle / Ivy
/*
* vefaas
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: common-version
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.volcengine.vefaas.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
* ReleaseResponse
*/
public class ReleaseResponse extends com.volcengine.model.AbstractResponse {
@SerializedName("CurrentTrafficWeight")
private Integer currentTrafficWeight = null;
@SerializedName("ErrorCode")
private String errorCode = null;
@SerializedName("FailedInstanceLogs")
private String failedInstanceLogs = null;
@SerializedName("FunctionId")
private String functionId = null;
@SerializedName("NewRevisionNumber")
private Integer newRevisionNumber = null;
@SerializedName("OldRevisionNumber")
private Integer oldRevisionNumber = null;
@SerializedName("ReleaseRecordId")
private String releaseRecordId = null;
@SerializedName("StableRevisionNumber")
private Integer stableRevisionNumber = null;
@SerializedName("StartTime")
private String startTime = null;
@SerializedName("Status")
private String status = null;
@SerializedName("StatusMessage")
private String statusMessage = null;
@SerializedName("TargetTrafficWeight")
private Integer targetTrafficWeight = null;
public ReleaseResponse currentTrafficWeight(Integer currentTrafficWeight) {
this.currentTrafficWeight = currentTrafficWeight;
return this;
}
/**
* Get currentTrafficWeight
* @return currentTrafficWeight
**/
@Schema(description = "")
public Integer getCurrentTrafficWeight() {
return currentTrafficWeight;
}
public void setCurrentTrafficWeight(Integer currentTrafficWeight) {
this.currentTrafficWeight = currentTrafficWeight;
}
public ReleaseResponse errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* Get errorCode
* @return errorCode
**/
@Schema(description = "")
public String getErrorCode() {
return errorCode;
}
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
public ReleaseResponse failedInstanceLogs(String failedInstanceLogs) {
this.failedInstanceLogs = failedInstanceLogs;
return this;
}
/**
* Get failedInstanceLogs
* @return failedInstanceLogs
**/
@Schema(description = "")
public String getFailedInstanceLogs() {
return failedInstanceLogs;
}
public void setFailedInstanceLogs(String failedInstanceLogs) {
this.failedInstanceLogs = failedInstanceLogs;
}
public ReleaseResponse functionId(String functionId) {
this.functionId = functionId;
return this;
}
/**
* Get functionId
* @return functionId
**/
@Schema(description = "")
public String getFunctionId() {
return functionId;
}
public void setFunctionId(String functionId) {
this.functionId = functionId;
}
public ReleaseResponse newRevisionNumber(Integer newRevisionNumber) {
this.newRevisionNumber = newRevisionNumber;
return this;
}
/**
* Get newRevisionNumber
* @return newRevisionNumber
**/
@Schema(description = "")
public Integer getNewRevisionNumber() {
return newRevisionNumber;
}
public void setNewRevisionNumber(Integer newRevisionNumber) {
this.newRevisionNumber = newRevisionNumber;
}
public ReleaseResponse oldRevisionNumber(Integer oldRevisionNumber) {
this.oldRevisionNumber = oldRevisionNumber;
return this;
}
/**
* Get oldRevisionNumber
* @return oldRevisionNumber
**/
@Schema(description = "")
public Integer getOldRevisionNumber() {
return oldRevisionNumber;
}
public void setOldRevisionNumber(Integer oldRevisionNumber) {
this.oldRevisionNumber = oldRevisionNumber;
}
public ReleaseResponse releaseRecordId(String releaseRecordId) {
this.releaseRecordId = releaseRecordId;
return this;
}
/**
* Get releaseRecordId
* @return releaseRecordId
**/
@Schema(description = "")
public String getReleaseRecordId() {
return releaseRecordId;
}
public void setReleaseRecordId(String releaseRecordId) {
this.releaseRecordId = releaseRecordId;
}
public ReleaseResponse stableRevisionNumber(Integer stableRevisionNumber) {
this.stableRevisionNumber = stableRevisionNumber;
return this;
}
/**
* Get stableRevisionNumber
* @return stableRevisionNumber
**/
@Schema(description = "")
public Integer getStableRevisionNumber() {
return stableRevisionNumber;
}
public void setStableRevisionNumber(Integer stableRevisionNumber) {
this.stableRevisionNumber = stableRevisionNumber;
}
public ReleaseResponse startTime(String startTime) {
this.startTime = startTime;
return this;
}
/**
* Get startTime
* @return startTime
**/
@Schema(description = "")
public String getStartTime() {
return startTime;
}
public void setStartTime(String startTime) {
this.startTime = startTime;
}
public ReleaseResponse status(String status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@Schema(description = "")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public ReleaseResponse statusMessage(String statusMessage) {
this.statusMessage = statusMessage;
return this;
}
/**
* Get statusMessage
* @return statusMessage
**/
@Schema(description = "")
public String getStatusMessage() {
return statusMessage;
}
public void setStatusMessage(String statusMessage) {
this.statusMessage = statusMessage;
}
public ReleaseResponse targetTrafficWeight(Integer targetTrafficWeight) {
this.targetTrafficWeight = targetTrafficWeight;
return this;
}
/**
* Get targetTrafficWeight
* @return targetTrafficWeight
**/
@Schema(description = "")
public Integer getTargetTrafficWeight() {
return targetTrafficWeight;
}
public void setTargetTrafficWeight(Integer targetTrafficWeight) {
this.targetTrafficWeight = targetTrafficWeight;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ReleaseResponse releaseResponse = (ReleaseResponse) o;
return Objects.equals(this.currentTrafficWeight, releaseResponse.currentTrafficWeight) &&
Objects.equals(this.errorCode, releaseResponse.errorCode) &&
Objects.equals(this.failedInstanceLogs, releaseResponse.failedInstanceLogs) &&
Objects.equals(this.functionId, releaseResponse.functionId) &&
Objects.equals(this.newRevisionNumber, releaseResponse.newRevisionNumber) &&
Objects.equals(this.oldRevisionNumber, releaseResponse.oldRevisionNumber) &&
Objects.equals(this.releaseRecordId, releaseResponse.releaseRecordId) &&
Objects.equals(this.stableRevisionNumber, releaseResponse.stableRevisionNumber) &&
Objects.equals(this.startTime, releaseResponse.startTime) &&
Objects.equals(this.status, releaseResponse.status) &&
Objects.equals(this.statusMessage, releaseResponse.statusMessage) &&
Objects.equals(this.targetTrafficWeight, releaseResponse.targetTrafficWeight);
}
@Override
public int hashCode() {
return Objects.hash(currentTrafficWeight, errorCode, failedInstanceLogs, functionId, newRevisionNumber, oldRevisionNumber, releaseRecordId, stableRevisionNumber, startTime, status, statusMessage, targetTrafficWeight);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ReleaseResponse {\n");
sb.append(" currentTrafficWeight: ").append(toIndentedString(currentTrafficWeight)).append("\n");
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
sb.append(" failedInstanceLogs: ").append(toIndentedString(failedInstanceLogs)).append("\n");
sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n");
sb.append(" newRevisionNumber: ").append(toIndentedString(newRevisionNumber)).append("\n");
sb.append(" oldRevisionNumber: ").append(toIndentedString(oldRevisionNumber)).append("\n");
sb.append(" releaseRecordId: ").append(toIndentedString(releaseRecordId)).append("\n");
sb.append(" stableRevisionNumber: ").append(toIndentedString(stableRevisionNumber)).append("\n");
sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" statusMessage: ").append(toIndentedString(statusMessage)).append("\n");
sb.append(" targetTrafficWeight: ").append(toIndentedString(targetTrafficWeight)).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 - 2024 Weber Informatics LLC | Privacy Policy