All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bonitasoft.web.client.model.PlatformLicense Maven / Gradle / Ivy

The newest version!
/** 
 * Copyright (C) 2024-2023 BonitaSoft S.A.
 * BonitaSoft, 32 rue Gustave Eiffel - 38000 Grenoble
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2.0 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see .
 */
package org.bonitasoft.web.client.model;

import java.io.Serializable;
import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

/**
 * 
 */
@JsonPropertyOrder({
        PlatformLicense.JSON_PROPERTY_LICENSE_START_DATE,
        PlatformLicense.JSON_PROPERTY_DURATION,
        PlatformLicense.JSON_PROPERTY_LICENSE_EXPIRATION_DATE,
        PlatformLicense.JSON_PROPERTY_NUMBER_OF_C_P_U_CORES,
        PlatformLicense.JSON_PROPERTY_EDITION,
        PlatformLicense.JSON_PROPERTY_LICENSE_MODE,
        PlatformLicense.JSON_PROPERTY_REQUEST_KEY,
        PlatformLicense.JSON_PROPERTY_SUBSCRIPTION_START_PERIOD,
        PlatformLicense.JSON_PROPERTY_SUBSCRIPTION_END_PERIOD,
        PlatformLicense.JSON_PROPERTY_CASE_COUNTER_LIMIT,
        PlatformLicense.JSON_PROPERTY_CASE_COUNTER
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0")
public class PlatformLicense implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final String JSON_PROPERTY_LICENSE_START_DATE = "licenseStartDate";
    private String licenseStartDate;

    public static final String JSON_PROPERTY_DURATION = "duration";
    private String duration;

    public static final String JSON_PROPERTY_LICENSE_EXPIRATION_DATE = "licenseExpirationDate";
    private String licenseExpirationDate;

    public static final String JSON_PROPERTY_NUMBER_OF_C_P_U_CORES = "numberOfCPUCores";
    private String numberOfCPUCores;

    public static final String JSON_PROPERTY_EDITION = "edition";
    private String edition;

    public static final String JSON_PROPERTY_LICENSE_MODE = "licenseMode";
    private String licenseMode;

    public static final String JSON_PROPERTY_REQUEST_KEY = "requestKey";
    private String requestKey;

    public static final String JSON_PROPERTY_SUBSCRIPTION_START_PERIOD = "subscriptionStartPeriod";
    private String subscriptionStartPeriod;

    public static final String JSON_PROPERTY_SUBSCRIPTION_END_PERIOD = "subscriptionEndPeriod";
    private String subscriptionEndPeriod;

    public static final String JSON_PROPERTY_CASE_COUNTER_LIMIT = "caseCounterLimit";
    private Long caseCounterLimit;

    public static final String JSON_PROPERTY_CASE_COUNTER = "caseCounter";
    private Long caseCounter;

    public PlatformLicense() {
    }

    public PlatformLicense licenseStartDate(String licenseStartDate) {

        this.licenseStartDate = licenseStartDate;
        return this;
    }

    /**
     * date with format `yyyy-MM-dd` - first day (included) of license file validity
     * 
     * @return licenseStartDate
     */
    @jakarta.annotation.Nullable
    @JsonProperty(JSON_PROPERTY_LICENSE_START_DATE)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

    public String getLicenseStartDate() {
        return licenseStartDate;
    }

    @JsonProperty(JSON_PROPERTY_LICENSE_START_DATE)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setLicenseStartDate(String licenseStartDate) {
        this.licenseStartDate = licenseStartDate;
    }

    public PlatformLicense duration(String duration) {

        this.duration = duration;
        return this;
    }

    /**
     * number of days for license file validity
     * 
     * @return duration
     */
    @jakarta.annotation.Nullable
    @JsonProperty(JSON_PROPERTY_DURATION)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

    public String getDuration() {
        return duration;
    }

    @JsonProperty(JSON_PROPERTY_DURATION)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setDuration(String duration) {
        this.duration = duration;
    }

    public PlatformLicense licenseExpirationDate(String licenseExpirationDate) {

        this.licenseExpirationDate = licenseExpirationDate;
        return this;
    }

    /**
     * date with format `yyyy-MM-dd` - last day (included) of license file validity
     * 
     * @return licenseExpirationDate
     */
    @jakarta.annotation.Nullable
    @JsonProperty(JSON_PROPERTY_LICENSE_EXPIRATION_DATE)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

    public String getLicenseExpirationDate() {
        return licenseExpirationDate;
    }

    @JsonProperty(JSON_PROPERTY_LICENSE_EXPIRATION_DATE)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setLicenseExpirationDate(String licenseExpirationDate) {
        this.licenseExpirationDate = licenseExpirationDate;
    }

    public PlatformLicense numberOfCPUCores(String numberOfCPUCores) {

        this.numberOfCPUCores = numberOfCPUCores;
        return this;
    }

    /**
     * number of CPUs
     * 
     * @return numberOfCPUCores
     */
    @jakarta.annotation.Nullable
    @JsonProperty(JSON_PROPERTY_NUMBER_OF_C_P_U_CORES)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

    public String getNumberOfCPUCores() {
        return numberOfCPUCores;
    }

    @JsonProperty(JSON_PROPERTY_NUMBER_OF_C_P_U_CORES)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setNumberOfCPUCores(String numberOfCPUCores) {
        this.numberOfCPUCores = numberOfCPUCores;
    }

    public PlatformLicense edition(String edition) {

        this.edition = edition;
        return this;
    }

    /**
     * name of the Bonita edition enabled by the license
     * 
     * @return edition
     */
    @jakarta.annotation.Nullable
    @JsonProperty(JSON_PROPERTY_EDITION)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

    public String getEdition() {
        return edition;
    }

    @JsonProperty(JSON_PROPERTY_EDITION)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setEdition(String edition) {
        this.edition = edition;
    }

    public PlatformLicense licenseMode(String licenseMode) {

        this.licenseMode = licenseMode;
        return this;
    }

    /**
     * available mode enabled by the license
     * 
     * @return licenseMode
     */
    @jakarta.annotation.Nullable
    @JsonProperty(JSON_PROPERTY_LICENSE_MODE)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

    public String getLicenseMode() {
        return licenseMode;
    }

    @JsonProperty(JSON_PROPERTY_LICENSE_MODE)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setLicenseMode(String licenseMode) {
        this.licenseMode = licenseMode;
    }

    public PlatformLicense requestKey(String requestKey) {

        this.requestKey = requestKey;
        return this;
    }

    /**
     * request key to use to generate a new license on the customer portal If you have a subscription that specifies case-counter licensing, additional fields are
     * present:
     * 
     * @return requestKey
     */
    @jakarta.annotation.Nullable
    @JsonProperty(JSON_PROPERTY_REQUEST_KEY)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

    public String getRequestKey() {
        return requestKey;
    }

    @JsonProperty(JSON_PROPERTY_REQUEST_KEY)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setRequestKey(String requestKey) {
        this.requestKey = requestKey;
    }

    public PlatformLicense subscriptionStartPeriod(String subscriptionStartPeriod) {

        this.subscriptionStartPeriod = subscriptionStartPeriod;
        return this;
    }

    /**
     * date with format `yyyy-MM-dd` - first day (included) of current period for number of process instances provisioned
     * 
     * @return subscriptionStartPeriod
     */
    @jakarta.annotation.Nullable
    @JsonProperty(JSON_PROPERTY_SUBSCRIPTION_START_PERIOD)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

    public String getSubscriptionStartPeriod() {
        return subscriptionStartPeriod;
    }

    @JsonProperty(JSON_PROPERTY_SUBSCRIPTION_START_PERIOD)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setSubscriptionStartPeriod(String subscriptionStartPeriod) {
        this.subscriptionStartPeriod = subscriptionStartPeriod;
    }

    public PlatformLicense subscriptionEndPeriod(String subscriptionEndPeriod) {

        this.subscriptionEndPeriod = subscriptionEndPeriod;
        return this;
    }

    /**
     * date with format `yyyy-MM-dd` - last day (included) of current period for number of process instances provisioned
     * 
     * @return subscriptionEndPeriod
     */
    @jakarta.annotation.Nullable
    @JsonProperty(JSON_PROPERTY_SUBSCRIPTION_END_PERIOD)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

    public String getSubscriptionEndPeriod() {
        return subscriptionEndPeriod;
    }

    @JsonProperty(JSON_PROPERTY_SUBSCRIPTION_END_PERIOD)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setSubscriptionEndPeriod(String subscriptionEndPeriod) {
        this.subscriptionEndPeriod = subscriptionEndPeriod;
    }

    public PlatformLicense caseCounterLimit(Long caseCounterLimit) {

        this.caseCounterLimit = caseCounterLimit;
        return this;
    }

    /**
     * number of process instances provisioned for period between `subscriptionStartPeriod` and `subscriptionEndPeriod`
     * 
     * @return caseCounterLimit
     */
    @jakarta.annotation.Nullable
    @JsonProperty(JSON_PROPERTY_CASE_COUNTER_LIMIT)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

    public Long getCaseCounterLimit() {
        return caseCounterLimit;
    }

    @JsonProperty(JSON_PROPERTY_CASE_COUNTER_LIMIT)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setCaseCounterLimit(Long caseCounterLimit) {
        this.caseCounterLimit = caseCounterLimit;
    }

    public PlatformLicense caseCounter(Long caseCounter) {

        this.caseCounter = caseCounter;
        return this;
    }

    /**
     * number of consumed process instances for period between `subscriptionStartPeriod` and `subscriptionEndPeriod`
     * 
     * @return caseCounter
     */
    @jakarta.annotation.Nullable
    @JsonProperty(JSON_PROPERTY_CASE_COUNTER)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

    public Long getCaseCounter() {
        return caseCounter;
    }

    @JsonProperty(JSON_PROPERTY_CASE_COUNTER)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setCaseCounter(Long caseCounter) {
        this.caseCounter = caseCounter;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        PlatformLicense platformLicense = (PlatformLicense) o;
        return Objects.equals(this.licenseStartDate, platformLicense.licenseStartDate) &&
                Objects.equals(this.duration, platformLicense.duration) &&
                Objects.equals(this.licenseExpirationDate, platformLicense.licenseExpirationDate) &&
                Objects.equals(this.numberOfCPUCores, platformLicense.numberOfCPUCores) &&
                Objects.equals(this.edition, platformLicense.edition) &&
                Objects.equals(this.licenseMode, platformLicense.licenseMode) &&
                Objects.equals(this.requestKey, platformLicense.requestKey) &&
                Objects.equals(this.subscriptionStartPeriod, platformLicense.subscriptionStartPeriod) &&
                Objects.equals(this.subscriptionEndPeriod, platformLicense.subscriptionEndPeriod) &&
                Objects.equals(this.caseCounterLimit, platformLicense.caseCounterLimit) &&
                Objects.equals(this.caseCounter, platformLicense.caseCounter);
    }

    @Override
    public int hashCode() {
        return Objects.hash(licenseStartDate, duration, licenseExpirationDate, numberOfCPUCores, edition, licenseMode,
                requestKey, subscriptionStartPeriod, subscriptionEndPeriod, caseCounterLimit, caseCounter);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class PlatformLicense {\n");
        sb.append("    licenseStartDate: ").append(toIndentedString(licenseStartDate)).append("\n");
        sb.append("    duration: ").append(toIndentedString(duration)).append("\n");
        sb.append("    licenseExpirationDate: ").append(toIndentedString(licenseExpirationDate)).append("\n");
        sb.append("    numberOfCPUCores: ").append(toIndentedString(numberOfCPUCores)).append("\n");
        sb.append("    edition: ").append(toIndentedString(edition)).append("\n");
        sb.append("    licenseMode: ").append(toIndentedString(licenseMode)).append("\n");
        sb.append("    requestKey: ").append(toIndentedString(requestKey)).append("\n");
        sb.append("    subscriptionStartPeriod: ").append(toIndentedString(subscriptionStartPeriod)).append("\n");
        sb.append("    subscriptionEndPeriod: ").append(toIndentedString(subscriptionEndPeriod)).append("\n");
        sb.append("    caseCounterLimit: ").append(toIndentedString(caseCounterLimit)).append("\n");
        sb.append("    caseCounter: ").append(toIndentedString(caseCounter)).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(Object o) {
        if (o == null) {
            return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy