com.aeontronix.enhancedmule.tools.anypoint.api.SLATierList Maven / Gradle / Ivy
/*
* Copyright (c) Aeontronix 2019
*/
package com.aeontronix.enhancedmule.tools.anypoint.api;
import com.aeontronix.enhancedmule.tools.util.HttpException;
import com.aeontronix.enhancedmule.tools.util.PaginatedList;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.aeontronix.commons.URLBuilder;
import org.jetbrains.annotations.NotNull;
import java.util.List;
public class SLATierList extends PaginatedList {
public SLATierList(API api) throws HttpException {
super(api);
download();
}
@NotNull
@Override
protected URLBuilder buildUrl() {
return new URLBuilder("/apimanager/api/v1/organizations/" + parent.getParent().getParent().getId() +
"/environments/" + parent.getParent().getId() + "/apis/" + parent.getId() + "/tiers");
}
@JsonProperty
public List getTiers() {
return list;
}
public void setTiers(List tiers) {
this.list = tiers;
}
}