Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 63.1.6-v202409101657
*
*
* 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 com.seeq.model.LicensedFeatureStatusOutputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* LicenseStatusOutputV1
*/
public class LicenseStatusOutputV1 {
@JsonProperty("additionalFeatures")
private List additionalFeatures = new ArrayList();
@JsonProperty("companyName")
private String companyName = null;
@JsonProperty("contractNumber")
private String contractNumber = null;
@JsonProperty("daysToExpiration")
private Integer daysToExpiration = null;
@JsonProperty("hostname")
private String hostname = null;
@JsonProperty("level")
private String level = null;
@JsonProperty("userCount")
private Long userCount = null;
@JsonProperty("userLimitRestrict")
private Long userLimitRestrict = null;
@JsonProperty("userLimitWarn")
private Long userLimitWarn = null;
@JsonProperty("validThrough")
private String validThrough = null;
/**
* The validity of the license
*/
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 LicenseStatusOutputV1 additionalFeatures(List additionalFeatures) {
this.additionalFeatures = additionalFeatures;
return this;
}
public LicenseStatusOutputV1 addAdditionalFeaturesItem(LicensedFeatureStatusOutputV1 additionalFeaturesItem) {
if (this.additionalFeatures == null) {
this.additionalFeatures = new ArrayList();
}
this.additionalFeatures.add(additionalFeaturesItem);
return this;
}
/**
* Additionally licensed features
* @return additionalFeatures
**/
@Schema(description = "Additionally licensed features")
public List getAdditionalFeatures() {
return additionalFeatures;
}
public void setAdditionalFeatures(List additionalFeatures) {
this.additionalFeatures = additionalFeatures;
}
public LicenseStatusOutputV1 companyName(String companyName) {
this.companyName = companyName;
return this;
}
/**
* The company/organization name associated with this license
* @return companyName
**/
@Schema(description = "The company/organization name associated with this license")
public String getCompanyName() {
return companyName;
}
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
public LicenseStatusOutputV1 contractNumber(String contractNumber) {
this.contractNumber = contractNumber;
return this;
}
/**
* The Seeq Contract Number associated with this license.
* @return contractNumber
**/
@Schema(description = "The Seeq Contract Number associated with this license.")
public String getContractNumber() {
return contractNumber;
}
public void setContractNumber(String contractNumber) {
this.contractNumber = contractNumber;
}
public LicenseStatusOutputV1 daysToExpiration(Integer daysToExpiration) {
this.daysToExpiration = daysToExpiration;
return this;
}
/**
* The number of days left before the current license will expire
* @return daysToExpiration
**/
@Schema(description = "The number of days left before the current license will expire")
public Integer getDaysToExpiration() {
return daysToExpiration;
}
public void setDaysToExpiration(Integer daysToExpiration) {
this.daysToExpiration = daysToExpiration;
}
public LicenseStatusOutputV1 hostname(String hostname) {
this.hostname = hostname;
return this;
}
/**
* The server hostname that is licensed
* @return hostname
**/
@Schema(description = "The server hostname that is licensed")
public String getHostname() {
return hostname;
}
public void setHostname(String hostname) {
this.hostname = hostname;
}
public LicenseStatusOutputV1 level(String level) {
this.level = level;
return this;
}
/**
* The level of the license installed on this server. Possibilities: 'Trial', 'Standard'
* @return level
**/
@Schema(description = "The level of the license installed on this server. Possibilities: 'Trial', 'Standard'")
public String getLevel() {
return level;
}
public void setLevel(String level) {
this.level = level;
}
public LicenseStatusOutputV1 userCount(Long userCount) {
this.userCount = userCount;
return this;
}
/**
* The number of Seeq users
* @return userCount
**/
@Schema(description = "The number of Seeq users")
public Long getUserCount() {
return userCount;
}
public void setUserCount(Long userCount) {
this.userCount = userCount;
}
public LicenseStatusOutputV1 userLimitRestrict(Long userLimitRestrict) {
this.userLimitRestrict = userLimitRestrict;
return this;
}
/**
* The number of users at which to restrict creating new user accounts
* @return userLimitRestrict
**/
@Schema(description = "The number of users at which to restrict creating new user accounts")
public Long getUserLimitRestrict() {
return userLimitRestrict;
}
public void setUserLimitRestrict(Long userLimitRestrict) {
this.userLimitRestrict = userLimitRestrict;
}
public LicenseStatusOutputV1 userLimitWarn(Long userLimitWarn) {
this.userLimitWarn = userLimitWarn;
return this;
}
/**
* The number of users at which to warn about running out of available user accounts
* @return userLimitWarn
**/
@Schema(description = "The number of users at which to warn about running out of available user accounts")
public Long getUserLimitWarn() {
return userLimitWarn;
}
public void setUserLimitWarn(Long userLimitWarn) {
this.userLimitWarn = userLimitWarn;
}
public LicenseStatusOutputV1 validThrough(String validThrough) {
this.validThrough = validThrough;
return this;
}
/**
* The final day this license will be valid for
* @return validThrough
**/
@Schema(description = "The final day this license will be valid for")
public String getValidThrough() {
return validThrough;
}
public void setValidThrough(String validThrough) {
this.validThrough = validThrough;
}
public LicenseStatusOutputV1 validity(ValidityEnum validity) {
this.validity = validity;
return this;
}
/**
* The validity of the license
* @return validity
**/
@Schema(description = "The validity of the license")
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;
}
LicenseStatusOutputV1 licenseStatusOutputV1 = (LicenseStatusOutputV1) o;
return Objects.equals(this.additionalFeatures, licenseStatusOutputV1.additionalFeatures) &&
Objects.equals(this.companyName, licenseStatusOutputV1.companyName) &&
Objects.equals(this.contractNumber, licenseStatusOutputV1.contractNumber) &&
Objects.equals(this.daysToExpiration, licenseStatusOutputV1.daysToExpiration) &&
Objects.equals(this.hostname, licenseStatusOutputV1.hostname) &&
Objects.equals(this.level, licenseStatusOutputV1.level) &&
Objects.equals(this.userCount, licenseStatusOutputV1.userCount) &&
Objects.equals(this.userLimitRestrict, licenseStatusOutputV1.userLimitRestrict) &&
Objects.equals(this.userLimitWarn, licenseStatusOutputV1.userLimitWarn) &&
Objects.equals(this.validThrough, licenseStatusOutputV1.validThrough) &&
Objects.equals(this.validity, licenseStatusOutputV1.validity);
}
@Override
public int hashCode() {
return Objects.hash(additionalFeatures, companyName, contractNumber, daysToExpiration, hostname, level, userCount, userLimitRestrict, userLimitWarn, validThrough, validity);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class LicenseStatusOutputV1 {\n");
sb.append(" additionalFeatures: ").append(toIndentedString(additionalFeatures)).append("\n");
sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n");
sb.append(" contractNumber: ").append(toIndentedString(contractNumber)).append("\n");
sb.append(" daysToExpiration: ").append(toIndentedString(daysToExpiration)).append("\n");
sb.append(" hostname: ").append(toIndentedString(hostname)).append("\n");
sb.append(" level: ").append(toIndentedString(level)).append("\n");
sb.append(" userCount: ").append(toIndentedString(userCount)).append("\n");
sb.append(" userLimitRestrict: ").append(toIndentedString(userLimitRestrict)).append("\n");
sb.append(" userLimitWarn: ").append(toIndentedString(userLimitWarn)).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 ");
}
}