com.seeq.model.LicensedFeatureStatusOutputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 64.3.0-v202405012032
*
*
* 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.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* Additionally licensed features
*/
@Schema(description = "Additionally licensed features")
public class LicensedFeatureStatusOutputV1 {
@JsonProperty("daysToExpiration")
private Integer daysToExpiration = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("validThrough")
private String validThrough = null;
/**
* Validity status
*/
public enum ValidityEnum {
UNKNOWNERROR("UnknownError"),
VALID("Valid"),
NOLICENSE("NoLicense"),
EXPIRED("Expired"),
WRONGHOST("WrongHost"),
BADSIGNATURE("BadSignature"),
CLOCKTAMPERING("ClockTampering"),
OVERLIMIT("OverLimit");
private String value;
ValidityEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static ValidityEnum fromValue(String input) {
for (ValidityEnum b : ValidityEnum.values()) {
if (b.value.equals(input)) {
return b;
}
}
return null;
}
} @JsonProperty("validity")
private ValidityEnum validity = null;
public LicensedFeatureStatusOutputV1 daysToExpiration(Integer daysToExpiration) {
this.daysToExpiration = daysToExpiration;
return this;
}
/**
* The number of days left before the current licensed feature will expire
* @return daysToExpiration
**/
@Schema(description = "The number of days left before the current licensed feature will expire")
public Integer getDaysToExpiration() {
return daysToExpiration;
}
public void setDaysToExpiration(Integer daysToExpiration) {
this.daysToExpiration = daysToExpiration;
}
public LicensedFeatureStatusOutputV1 name(String name) {
this.name = name;
return this;
}
/**
* The licensed feature name
* @return name
**/
@Schema(description = "The licensed feature name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public LicensedFeatureStatusOutputV1 validThrough(String validThrough) {
this.validThrough = validThrough;
return this;
}
/**
* The final day this licensed feature will be valid for
* @return validThrough
**/
@Schema(description = "The final day this licensed feature will be valid for")
public String getValidThrough() {
return validThrough;
}
public void setValidThrough(String validThrough) {
this.validThrough = validThrough;
}
public LicensedFeatureStatusOutputV1 validity(ValidityEnum validity) {
this.validity = validity;
return this;
}
/**
* Validity status
* @return validity
**/
@Schema(description = "Validity status")
public ValidityEnum getValidity() {
return validity;
}
public void setValidity(ValidityEnum validity) {
this.validity = validity;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
LicensedFeatureStatusOutputV1 licensedFeatureStatusOutputV1 = (LicensedFeatureStatusOutputV1) o;
return Objects.equals(this.daysToExpiration, licensedFeatureStatusOutputV1.daysToExpiration) &&
Objects.equals(this.name, licensedFeatureStatusOutputV1.name) &&
Objects.equals(this.validThrough, licensedFeatureStatusOutputV1.validThrough) &&
Objects.equals(this.validity, licensedFeatureStatusOutputV1.validity);
}
@Override
public int hashCode() {
return Objects.hash(daysToExpiration, name, validThrough, validity);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class LicensedFeatureStatusOutputV1 {\n");
sb.append(" daysToExpiration: ").append(toIndentedString(daysToExpiration)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" validThrough: ").append(toIndentedString(validThrough)).append("\n");
sb.append(" validity: ").append(toIndentedString(validity)).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 ");
}
}