com.aeontronix.enhancedmule.tools.application.api.SLATierCreateRequest Maven / Gradle / Ivy
/*
* Copyright (c) Aeontronix 2020
*/
package com.aeontronix.enhancedmule.tools.application.api;
import com.aeontronix.enhancedmule.tools.anypoint.api.API;
import com.aeontronix.enhancedmule.tools.anypoint.api.SLATierLimits;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.List;
public class SLATierCreateRequest {
@JsonProperty
private String apiVersionId;
@JsonProperty
private String name;
@JsonProperty
private String description;
@JsonProperty
private String status = "ACTIVE";
@JsonProperty
private boolean autoApprove;
@JsonProperty
private List limits = new ArrayList<>();
public SLATierCreateRequest() {
}
public SLATierCreateRequest(API api, String name, String description, boolean autoApprove, List limits) {
apiVersionId = api.getId();
this.name = name;
this.description = description;
this.autoApprove = autoApprove;
this.limits = limits;
}
public String getApiVersionId() {
return apiVersionId;
}
public void setApiVersionId(String apiVersionId) {
this.apiVersionId = apiVersionId;
}
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 String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
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;
}
}