package io.cattle.platform.configitem.request;
public class ConfigUpdateItem {
String name;
Long requestedVersion;
Long setVersion;
boolean apply = true;
boolean increment = true;
boolean checkInSyncOnly = false;
public ConfigUpdateItem() {
}
public ConfigUpdateItem(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ConfigUpdateItem withName(String name) {
this.name = name;
return this;
}
public Long getRequestedVersion() {
return requestedVersion;
}
public void setRequestedVersion(Long requestedVersion) {
this.requestedVersion = requestedVersion;
}
public ConfigUpdateItem withRequestedVersion(Long requestedVersion) {
this.requestedVersion = requestedVersion;
return this;
}
public boolean isApply() {
return apply;
}
public void setApply(boolean apply) {
this.apply = apply;
}
public ConfigUpdateItem withApply(boolean apply) {
this.apply = apply;
return this;
}
public boolean isIncrement() {
return increment;
}
public void setIncrement(boolean increment) {
this.increment = increment;
}
public ConfigUpdateItem withIncrement(boolean increment) {
this.increment = increment;
return this;
}
public boolean isCheckInSyncOnly() {
return checkInSyncOnly;
}
public void setCheckInSyncOnly(boolean checkInSync) {
this.checkInSyncOnly = checkInSync;
}
public ConfigUpdateItem withCheckInSyncOnly(boolean checkInSync) {
this.checkInSyncOnly = checkInSync;
return this;
}
@Override
public String toString() {
return "ConfigUpdateItem [name=" + name + ", requestedVersion=" + requestedVersion + ", apply=" + apply + ", increment=" + increment
+ ", checkInSyncOnly=" + checkInSyncOnly + "]";
}
public Long getSetVersion() {
return setVersion;
}
public void setSetVersion(Long setVersion) {
this.setVersion = setVersion;
}
public ConfigUpdateItem withSetVersion(Long setVersion) {
this.setVersion = setVersion;
return this;
}
}