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

me.snowdrop.istio.api.model.v1.routing.Throttle Maven / Gradle / Ivy


package me.snowdrop.istio.api.model.v1.routing;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import javax.validation.Valid;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.fabric8.kubernetes.api.model.Doneable;
import io.sundr.builder.annotations.Buildable;
import io.sundr.builder.annotations.Inline;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import me.snowdrop.istio.api.model.Duration;


/**
 * 
 * 
 */
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
    "apiVersion",
    "kind",
    "metadata",
    "ThrottleAfter",
    "downstreamLimitBps",
    "percent",
    "throttleForPeriod",
    "upstreamLimitBps"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@ToString
@EqualsAndHashCode
@Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done"))
public class Throttle implements Serializable
{

    @JsonProperty("ThrottleAfter")
    private Object throttleAfter;
    /**
     * 
     * 
     */
    @JsonProperty("downstreamLimitBps")
    @JsonPropertyDescription("")
    private Long downstreamLimitBps;
    /**
     * 
     * 
     */
    @JsonProperty("percent")
    @JsonPropertyDescription("")
    private Double percent;
    /**
     * 
     * 
     */
    @JsonProperty("throttleForPeriod")
    @JsonPropertyDescription("")
    @Valid
    private Duration throttleForPeriod;
    /**
     * 
     * 
     */
    @JsonProperty("upstreamLimitBps")
    @JsonPropertyDescription("")
    private Long upstreamLimitBps;
    @JsonIgnore
    @Valid
    private Map additionalProperties = new HashMap();
    private final static long serialVersionUID = -332864798422107249L;

    /**
     * No args constructor for use in serialization
     * 
     */
    public Throttle() {
    }

    /**
     * 
     * @param throttleAfter
     * @param downstreamLimitBps
     * @param throttleForPeriod
     * @param percent
     * @param upstreamLimitBps
     */
    public Throttle(Object throttleAfter, Long downstreamLimitBps, Double percent, Duration throttleForPeriod, Long upstreamLimitBps) {
        super();
        this.throttleAfter = throttleAfter;
        this.downstreamLimitBps = downstreamLimitBps;
        this.percent = percent;
        this.throttleForPeriod = throttleForPeriod;
        this.upstreamLimitBps = upstreamLimitBps;
    }

    @JsonProperty("ThrottleAfter")
    public Object getThrottleAfter() {
        return throttleAfter;
    }

    @JsonProperty("ThrottleAfter")
    public void setThrottleAfter(Object throttleAfter) {
        this.throttleAfter = throttleAfter;
    }

    /**
     * 
     * 
     */
    @JsonProperty("downstreamLimitBps")
    public Long getDownstreamLimitBps() {
        return downstreamLimitBps;
    }

    /**
     * 
     * 
     */
    @JsonProperty("downstreamLimitBps")
    public void setDownstreamLimitBps(Long downstreamLimitBps) {
        this.downstreamLimitBps = downstreamLimitBps;
    }

    /**
     * 
     * 
     */
    @JsonProperty("percent")
    public Double getPercent() {
        return percent;
    }

    /**
     * 
     * 
     */
    @JsonProperty("percent")
    public void setPercent(Double percent) {
        this.percent = percent;
    }

    /**
     * 
     * 
     */
    @JsonProperty("throttleForPeriod")
    public Duration getThrottleForPeriod() {
        return throttleForPeriod;
    }

    /**
     * 
     * 
     */
    @JsonProperty("throttleForPeriod")
    public void setThrottleForPeriod(Duration throttleForPeriod) {
        this.throttleForPeriod = throttleForPeriod;
    }

    /**
     * 
     * 
     */
    @JsonProperty("upstreamLimitBps")
    public Long getUpstreamLimitBps() {
        return upstreamLimitBps;
    }

    /**
     * 
     * 
     */
    @JsonProperty("upstreamLimitBps")
    public void setUpstreamLimitBps(Long upstreamLimitBps) {
        this.upstreamLimitBps = upstreamLimitBps;
    }

    @JsonAnyGetter
    public Map getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy