
com.vmware.avi.sdk.model.StatediffEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of avisdk Show documentation
Show all versions of avisdk Show documentation
Avi SDK is a java API which creates a session with controller and perform CRUD operations.
/*
* 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 StatediffEvent is a POJO class extends AviRestResource that used for creating
* StatediffEvent.
*
* @version 1.0
* @since
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class StatediffEvent {
@JsonProperty("duration")
private Integer duration;
@JsonProperty("end_time")
private String endTime;
@JsonProperty("message")
private String message;
@JsonProperty("start_time")
private String startTime;
@JsonProperty("status")
private String status = "FB_INIT";
@JsonProperty("task_name")
private String taskName;
/**
* This is the getter method this will return the attribute value.
* Time taken to complete statediff event in seconds.
* Field introduced in 21.1.3.
* 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.
* Time taken to complete statediff event in seconds.
* Field introduced in 21.1.3.
* 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.
* Task end time.
* 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 endTime
*/
public String getEndTime() {
return endTime;
}
/**
* This is the setter method to the attribute.
* Task end time.
* 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 endTime set the endTime.
*/
public void setEndTime(String endTime) {
this.endTime = endTime;
}
/**
* This is the getter method this will return the attribute value.
* Statediff event message if any.
* 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 message
*/
public String getMessage() {
return message;
}
/**
* This is the setter method to the attribute.
* Statediff event message if any.
* 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 message set the message.
*/
public void setMessage(String message) {
this.message = message;
}
/**
* This is the getter method this will return the attribute value.
* Task start time.
* 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 startTime
*/
public String getStartTime() {
return startTime;
}
/**
* This is the setter method to the attribute.
* Task start time.
* 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 startTime set the startTime.
*/
public void setStartTime(String startTime) {
this.startTime = startTime;
}
/**
* This is the getter method this will return the attribute value.
* Statediff event status.
* Enum options - FB_INIT, FB_IN_PROGRESS, FB_COMPLETED, FB_FAILED, FB_COMPLETED_WITH_ERRORS.
* 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 "FB_INIT".
* @return status
*/
public String getStatus() {
return status;
}
/**
* This is the setter method to the attribute.
* Statediff event status.
* Enum options - FB_INIT, FB_IN_PROGRESS, FB_COMPLETED, FB_FAILED, FB_COMPLETED_WITH_ERRORS.
* 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 "FB_INIT".
* @param status set the status.
*/
public void setStatus(String status) {
this.status = status;
}
/**
* This is the getter method this will return the attribute value.
* Name of statediff task.
* 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 taskName
*/
public String getTaskName() {
return taskName;
}
/**
* This is the setter method to the attribute.
* Name of statediff task.
* 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 taskName set the taskName.
*/
public void setTaskName(String taskName) {
this.taskName = taskName;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
StatediffEvent objStatediffEvent = (StatediffEvent) o;
return Objects.equals(this.taskName, objStatediffEvent.taskName)&&
Objects.equals(this.startTime, objStatediffEvent.startTime)&&
Objects.equals(this.endTime, objStatediffEvent.endTime)&&
Objects.equals(this.status, objStatediffEvent.status)&&
Objects.equals(this.message, objStatediffEvent.message)&&
Objects.equals(this.duration, objStatediffEvent.duration);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class StatediffEvent {\n");
sb.append(" duration: ").append(toIndentedString(duration)).append("\n");
sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" taskName: ").append(toIndentedString(taskName)).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