com.volcengine.tos.model.bucket.Progress Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ve-tos-java-sdk Show documentation
Show all versions of ve-tos-java-sdk Show documentation
The VolcEngine TOS SDK for Java
package com.volcengine.tos.model.bucket;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Progress {
@JsonProperty("HistoricalObject")
private double historicalObject;
@JsonProperty("NewObject")
private String newObject;
public double getHistoricalObject() {
return historicalObject;
}
public Progress setHistoricalObject(double historicalObject) {
this.historicalObject = historicalObject;
return this;
}
public String getNewObject() {
return newObject;
}
public Progress setNewObject(String newObject) {
this.newObject = newObject;
return this;
}
@Override
public String toString() {
return "Progress{" +
"historicalObject=" + historicalObject +
", newObject='" + newObject + '\'' +
'}';
}
public static ProgressBuilder builder() {
return new ProgressBuilder();
}
public static final class ProgressBuilder {
private double historicalObject;
private String newObject;
private ProgressBuilder() {
}
public ProgressBuilder historicalObject(double historicalObject) {
this.historicalObject = historicalObject;
return this;
}
public ProgressBuilder newObject(String newObject) {
this.newObject = newObject;
return this;
}
public Progress build() {
Progress progress = new Progress();
progress.setHistoricalObject(historicalObject);
progress.setNewObject(newObject);
return progress;
}
}
}