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

com.spotinst.sdkjava.model.bl.ocean.aks.ImportClusterDownSpecification Maven / Gradle / Ivy

There is a newer version: 1.0.121
Show newest version
package com.spotinst.sdkjava.model.bl.ocean.aks;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.HashSet;
import java.util.Set;

public class ImportClusterDownSpecification {

    @JsonIgnore
    private Set isSet;
    private Double      maxScaleDownPercentage;


    private ImportClusterDownSpecification() {
        isSet = new HashSet<>();
    }


    public Set getIsSet() {
        return isSet;
    }

    public void setIsSet(Set isSet) {
        this.isSet = isSet;
    }


    public Double getMaxScaleDownPercentage() {
        return maxScaleDownPercentage;
    }

    public void setMaxScaleDownPercentage(Double maxScaleDownPercentage) {
        isSet.add("maxScaleDownPercentage");
        this.maxScaleDownPercentage = maxScaleDownPercentage;
    }

    public static class Builder {
        private ImportClusterDownSpecification down;

        private Builder() {
            this.down = new ImportClusterDownSpecification();
        }

        public static ImportClusterDownSpecification.Builder get() {
            return new Builder();
        }

        public ImportClusterDownSpecification.Builder setMaxScaleDownPercentage(final Double maxScaleDownPercentage) {
            down.setMaxScaleDownPercentage(maxScaleDownPercentage);
            return this;
        }

        public ImportClusterDownSpecification build() {
            return down;
        }
    }

    @JsonIgnore
    public boolean isMaxScaleDownPercentageSet() {
        return isSet.contains("maxScaleDownPercentage");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy