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

com.aeontronix.enhancedmule.tools.application.api.SLATierDescriptor Maven / Gradle / Ivy

There is a newer version: 2.0.0-alpha4
Show newest version
/*
 * Copyright (c) Aeontronix 2020
 */

package com.aeontronix.enhancedmule.tools.application.api;

import com.aeontronix.enhancedmule.tools.anypoint.api.SLATierLimits;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Arrays;
import java.util.List;

public class SLATierDescriptor {
    @JsonProperty(required = true)
    private String name;
    @JsonProperty
    private String description;
    @JsonProperty
    private boolean autoApprove;
    @JsonProperty(required = true)
    private List limits;

    public SLATierDescriptor() {
    }

    public SLATierDescriptor(String name, String description, boolean autoApprove, SLATierLimits... limits) {
        this.name = name;
        this.description = description;
        this.autoApprove = autoApprove;
        if (limits != null) {
            this.limits = Arrays.asList(limits);
        }
    }

    public SLATierDescriptor(String name, boolean autoApprove, SLATierLimits... limits) {
        this(name, null, autoApprove, limits);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean isAutoApprove() {
        return autoApprove;
    }

    public void setAutoApprove(boolean autoApprove) {
        this.autoApprove = autoApprove;
    }

    public List getLimits() {
        return limits;
    }

    public void setLimits(List limits) {
        this.limits = limits;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy