
com.vmware.avi.sdk.model.OpsHistory Maven / Gradle / Ivy
/*
* Copyright 2021 VMware, Inc.
* SPDX-License-Identifier: Apache License 2.0
*/
package com.vmware.avi.sdk.model;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
/**
* The OpsHistory is a POJO class extends AviRestResource that used for creating
* OpsHistory.
*
* @version 1.0
* @since
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class OpsHistory {
@JsonProperty("duration")
private Integer duration;
@JsonProperty("end_time")
private String endTime;
@JsonProperty("ops")
private String ops;
@JsonProperty("patch_version")
private String patchVersion;
@JsonProperty("se_upgrade_events")
private List seUpgradeEvents;
@JsonProperty("seg_status")
private SeGroupStatus segStatus;
@JsonProperty("start_time")
private String startTime;
@JsonProperty("state")
private UpgradeOpsState state;
@JsonProperty("statediff_ref")
private String statediffRef;
@JsonProperty("upgrade_events")
private List upgradeEvents;
@JsonProperty("version")
private String version;
/**
* This is the getter method this will return the attribute value.
* Duration of upgrade operation in seconds.
* Field introduced in 20.1.4.
* Unit is sec.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return duration
*/
public Integer getDuration() {
return duration;
}
/**
* This is the setter method to the attribute.
* Duration of upgrade operation in seconds.
* Field introduced in 20.1.4.
* Unit is sec.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param duration set the duration.
*/
public void setDuration(Integer duration) {
this.duration = duration;
}
/**
* This is the getter method this will return the attribute value.
* End time of upgrade operation.
* Field introduced in 20.1.4.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return endTime
*/
public String getEndTime() {
return endTime;
}
/**
* This is the setter method to the attribute.
* End time of upgrade operation.
* Field introduced in 20.1.4.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param endTime set the endTime.
*/
public void setEndTime(String endTime) {
this.endTime = endTime;
}
/**
* This is the getter method this will return the attribute value.
* Upgrade operation performed.
* Enum options - UPGRADE, PATCH, ROLLBACK, ROLLBACKPATCH, SEGROUP_RESUME, EVAL_UPGRADE, EVAL_PATCH, EVAL_ROLLBACK, EVAL_ROLLBACKPATCH,
* EVAL_SEGROUP_RESUME, EVAL_RESTORE, RESTORE.
* Field introduced in 20.1.4.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return ops
*/
public String getOps() {
return ops;
}
/**
* This is the setter method to the attribute.
* Upgrade operation performed.
* Enum options - UPGRADE, PATCH, ROLLBACK, ROLLBACKPATCH, SEGROUP_RESUME, EVAL_UPGRADE, EVAL_PATCH, EVAL_ROLLBACK, EVAL_ROLLBACKPATCH,
* EVAL_SEGROUP_RESUME, EVAL_RESTORE, RESTORE.
* Field introduced in 20.1.4.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param ops set the ops.
*/
public void setOps(String ops) {
this.ops = ops;
}
/**
* This is the getter method this will return the attribute value.
* Patch after the upgrade operation.
* Field introduced in 20.1.4.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return patchVersion
*/
public String getPatchVersion() {
return patchVersion;
}
/**
* This is the setter method to the attribute.
* Patch after the upgrade operation.
* Field introduced in 20.1.4.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param patchVersion set the patchVersion.
*/
public void setPatchVersion(String patchVersion) {
this.patchVersion = patchVersion;
}
/**
* This is the getter method this will return the attribute value.
* Serviceenginegroup/se events for upgrade operation.
* Field introduced in 20.1.4.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return seUpgradeEvents
*/
public List getSeUpgradeEvents() {
return seUpgradeEvents;
}
/**
* This is the setter method. this will set the seUpgradeEvents
* Serviceenginegroup/se events for upgrade operation.
* Field introduced in 20.1.4.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return seUpgradeEvents
*/
public void setSeUpgradeEvents(List seUpgradeEvents) {
this.seUpgradeEvents = seUpgradeEvents;
}
/**
* This is the setter method this will set the seUpgradeEvents
* Serviceenginegroup/se events for upgrade operation.
* Field introduced in 20.1.4.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return seUpgradeEvents
*/
public OpsHistory addSeUpgradeEventsItem(SeUpgradeEvents seUpgradeEventsItem) {
if (this.seUpgradeEvents == null) {
this.seUpgradeEvents = new ArrayList();
}
this.seUpgradeEvents.add(seUpgradeEventsItem);
return this;
}
/**
* This is the getter method this will return the attribute value.
* Segroup status for the upgrade operation.
* Field introduced in 20.1.4.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return segStatus
*/
public SeGroupStatus getSegStatus() {
return segStatus;
}
/**
* This is the setter method to the attribute.
* Segroup status for the upgrade operation.
* Field introduced in 20.1.4.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param segStatus set the segStatus.
*/
public void setSegStatus(SeGroupStatus segStatus) {
this.segStatus = segStatus;
}
/**
* This is the getter method this will return the attribute value.
* Start time of upgrade operation.
* Field introduced in 20.1.4.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return startTime
*/
public String getStartTime() {
return startTime;
}
/**
* This is the setter method to the attribute.
* Start time of upgrade operation.
* Field introduced in 20.1.4.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param startTime set the startTime.
*/
public void setStartTime(String startTime) {
this.startTime = startTime;
}
/**
* This is the getter method this will return the attribute value.
* Upgrade operation status.
* Field introduced in 20.1.4.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return state
*/
public UpgradeOpsState getState() {
return state;
}
/**
* This is the setter method to the attribute.
* Upgrade operation status.
* Field introduced in 20.1.4.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param state set the state.
*/
public void setState(UpgradeOpsState state) {
this.state = state;
}
/**
* This is the getter method this will return the attribute value.
* Record of pre/post snapshot captured for current upgrade operation.
* It is a reference to an object of type statediffoperation.
* Field introduced in 21.1.3.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return statediffRef
*/
public String getStatediffRef() {
return statediffRef;
}
/**
* This is the setter method to the attribute.
* Record of pre/post snapshot captured for current upgrade operation.
* It is a reference to an object of type statediffoperation.
* Field introduced in 21.1.3.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param statediffRef set the statediffRef.
*/
public void setStatediffRef(String statediffRef) {
this.statediffRef = statediffRef;
}
/**
* This is the getter method this will return the attribute value.
* Controller events for upgrade operation.
* Field introduced in 20.1.4.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return upgradeEvents
*/
public List getUpgradeEvents() {
return upgradeEvents;
}
/**
* This is the setter method. this will set the upgradeEvents
* Controller events for upgrade operation.
* Field introduced in 20.1.4.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return upgradeEvents
*/
public void setUpgradeEvents(List upgradeEvents) {
this.upgradeEvents = upgradeEvents;
}
/**
* This is the setter method this will set the upgradeEvents
* Controller events for upgrade operation.
* Field introduced in 20.1.4.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return upgradeEvents
*/
public OpsHistory addUpgradeEventsItem(EventMap upgradeEventsItem) {
if (this.upgradeEvents == null) {
this.upgradeEvents = new ArrayList();
}
this.upgradeEvents.add(upgradeEventsItem);
return this;
}
/**
* This is the getter method this will return the attribute value.
* Image after the upgrade operation.
* Field introduced in 20.1.4.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return version
*/
public String getVersion() {
return version;
}
/**
* This is the setter method to the attribute.
* Image after the upgrade operation.
* Field introduced in 20.1.4.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param version set the version.
*/
public void setVersion(String version) {
this.version = version;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OpsHistory objOpsHistory = (OpsHistory) o;
return Objects.equals(this.ops, objOpsHistory.ops)&&
Objects.equals(this.state, objOpsHistory.state)&&
Objects.equals(this.version, objOpsHistory.version)&&
Objects.equals(this.patchVersion, objOpsHistory.patchVersion)&&
Objects.equals(this.segStatus, objOpsHistory.segStatus)&&
Objects.equals(this.upgradeEvents, objOpsHistory.upgradeEvents)&&
Objects.equals(this.seUpgradeEvents, objOpsHistory.seUpgradeEvents)&&
Objects.equals(this.startTime, objOpsHistory.startTime)&&
Objects.equals(this.endTime, objOpsHistory.endTime)&&
Objects.equals(this.duration, objOpsHistory.duration)&&
Objects.equals(this.statediffRef, objOpsHistory.statediffRef);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OpsHistory {\n");
sb.append(" duration: ").append(toIndentedString(duration)).append("\n");
sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n");
sb.append(" ops: ").append(toIndentedString(ops)).append("\n");
sb.append(" patchVersion: ").append(toIndentedString(patchVersion)).append("\n");
sb.append(" seUpgradeEvents: ").append(toIndentedString(seUpgradeEvents)).append("\n");
sb.append(" segStatus: ").append(toIndentedString(segStatus)).append("\n");
sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n");
sb.append(" state: ").append(toIndentedString(state)).append("\n");
sb.append(" statediffRef: ").append(toIndentedString(statediffRef)).append("\n");
sb.append(" upgradeEvents: ").append(toIndentedString(upgradeEvents)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).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 - 2025 Weber Informatics LLC | Privacy Policy